7569aaa34536e8cac78daf347faab338cfbdb6e9
[packages/evas.git] / evas.spec
1 #
2 # Conditional build:
3 %bcond_without  mmx             # without MMX and MMX2
4 %bcond_without  sse             # without SSE
5 %bcond_without  altivec         # without altivec
6 #
7 %ifnarch i586 i686 athlon
8 %undefine       with_mmx
9 %endif
10 %ifnarch i686 athlon
11 %undefine       with_sse
12 %endif
13 %ifnarch ppc
14 %undefine       with_altivec
15 %endif
16 #
17 Summary:        Multi-platform Canvas Library
18 Summary(pl):    Wieloplatformowa biblioteka do rysowania
19 Name:           evas
20 Version:        0.9.9.020
21 Release:        1
22 License:        BSD
23 Group:          Libraries
24 Source0:        http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
25 # Source0-md5:  8dce18134e2ca1922bab69387741f4e7
26 Patch0:         %{name}-missing_m4.patch
27 URL:            http://enlightenment.org/Libraries/Evas/
28 BuildRequires:  DirectFB-devel
29 BuildRequires:  OpenGL-devel
30 BuildRequires:  autoconf
31 BuildRequires:  automake
32 BuildRequires:  edb-devel
33 BuildRequires:  eet-devel
34 BuildRequires:  freetype-devel
35 BuildRequires:  libjpeg-devel
36 BuildRequires:  libpng-devel
37 BuildRequires:  libtool
38 BuildRequires:  pkgconfig
39 Requires:       %{name}-libs = %{version}-%{release}
40 Requires:       fonts-TTF-bitstream-vera
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 Evas is a clean display canvas API for several target display systems
45 that can draw anti-aliased text, smooth super and sub-sampled scaled
46 images, alpha-blend objects much and more.
47
48 %description -l pl
49 Evas to czyste API "p³ótna obrazu" dla ró¿nych systemów wy¶wietlania,
50 bêd±ce w stanie rysowaæ tekst z antyaliasingiem, wyg³adzane, skalowane
51 obrazy, obiekty z alpha-blendingiem i inne elementy.
52
53 %package libs
54 Summary:        Evas library
55 Summary(pl):    Biblioteka evas
56 Group:          X11/Libraries
57
58 %description libs
59 Evas library.
60
61 %description libs -l pl
62 Biblioteka evas.
63
64 %package devel
65 Summary:        Evas header files
66 Summary(pl):    Pliki nag³ówkowe Evas
67 Group:          Development/Libraries
68 Requires:       %{name}-libs = %{version}-%{release}
69 Requires:       DirectFB-devel
70 Requires:       OpenGL-devel
71 Requires:       edb-devel
72 Requires:       eet-devel
73 Requires:       freetype-devel
74 Requires:       libjpeg-devel
75 Requires:       libpng-devel
76
77 %description devel
78 Header files for Evas.
79
80 %description devel -l pl
81 Pliki nag³ówkowe Evas.
82
83 %package static
84 Summary:        Static Evas library
85 Summary(pl):    Statyczna biblioteka Evas
86 Group:          Development/Libraries
87 Requires:       %{name}-devel = %{version}-%{release}
88
89 %description static
90 Static Evas library.
91
92 %description static -l pl
93 Statyczna biblioteka Evas.
94
95 %prep
96 %setup -q
97 %patch0 -p1
98
99 %build
100 %{__libtoolize}
101 %{__aclocal}
102 %{__autoconf}
103 %{__autoheader}
104 %{__automake}
105 %configure \
106         --enable-software-x11   \
107         --disable-software-xcb  \
108         --enable-direct-fb      \
109         --enable-fb             \
110         --enable-buffer         \
111         --disable-software-qtopia \
112         --enable-gl-x11         \
113         --enable-image-loader-png       \
114         --enable-image-loader-jpeg      \
115         --enable-image-loader-eet       \
116         --enable-font-loader-eet        \
117         --enable-image-loader-edb       \
118 %if %{with mmx}
119         --enable-cpu-mmx        \
120 %else
121         --disable-cpu-mmx       \
122 %endif
123 %if %{with sse}
124         --enable-cpu-sse        \
125 %else
126         --disable-cpu-sse       \
127 %endif
128 %if %{with altivec}
129         --enable-cpu-altivec    \
130 %else
131         --disable-cpu-altivec   \
132 %endif
133         --enable-cpu-c
134
135 %{__make}
136
137 %install
138 rm -rf $RPM_BUILD_ROOT
139
140 %{__make} install \
141         DESTDIR=$RPM_BUILD_ROOT
142
143 cd $RPM_BUILD_ROOT%{_datadir}/%{name}
144 VERA=$(ls Vera*.ttf)
145 for FONT in $VERA; do
146         rm -f $FONT
147         ln -s %{_fontsdir}/TTF/$FONT .
148 done
149
150 %clean
151 rm -rf $RPM_BUILD_ROOT
152
153 %post   libs -p /sbin/ldconfig
154 %postun libs -p /sbin/ldconfig
155
156 %files
157 %defattr(644,root,root,755)
158 %doc AUTHORS COPYING COPYING-PLAIN INSTALL README
159 %attr(755,root,root) %{_bindir}/evas_*
160 %{_datadir}/%{name}
161
162 %files libs
163 %defattr(644,root,root,755)
164 %attr(755,root,root) %{_libdir}/libevas.so.*.*.*
165
166 %files devel
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_bindir}/evas-config
169 %attr(755,root,root) %{_libdir}/libevas.so
170 %{_libdir}/libevas.la
171 %{_pkgconfigdir}/evas.pc
172 %{_includedir}/Evas*
173
174 %files static
175 %defattr(644,root,root,755)
176 %{_libdir}/libevas.a
This page took 0.062407 seconds and 2 git commands to generate.