3 %bcond_without mmx # without MMX and MMX2
4 %bcond_without sse # without SSE
5 %bcond_without altivec # without altivec
6 %bcond_without directfb # build without DirectFB support
7 %bcond_without static_libs # don't build static library
9 %ifnarch i586 i686 athlon %{x8664}
12 %ifnarch i686 athlon %{x8664}
16 %undefine with_altivec
19 Summary: Multi-platform Canvas Library
20 Summary(pl): Wieloplatformowa biblioteka do rysowania
26 Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
27 # Source0-md5: e363ee32718b209b66a3e0bcb4215e14
28 #Patch0: %{name}-missing_m4.patch
29 URL: http://enlightenment.org/Libraries/Evas/
30 %{?with_directfb:BuildRequires: DirectFB-devel}
31 BuildRequires: OpenGL-devel
32 BuildRequires: autoconf
33 BuildRequires: automake
34 BuildRequires: edb-devel
35 BuildRequires: eet-devel
36 BuildRequires: freetype-devel
37 BuildRequires: libjpeg-devel
38 BuildRequires: libpng-devel
39 BuildRequires: libtool
40 BuildRequires: pkgconfig
41 Requires: %{name}-libs = %{version}-%{release}
42 Requires: fonts-TTF-bitstream-vera
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Evas is a clean display canvas API for several target display systems
49 that can draw anti-aliased text, smooth super and sub-sampled scaled
50 images, alpha-blend objects much and more.
53 Evas to czyste API "p³ótna obrazu" dla ró¿nych systemów wy¶wietlania,
54 bêd±ce w stanie rysowaæ tekst z antyaliasingiem, wyg³adzane, skalowane
55 obrazy, obiekty z alpha-blendingiem i inne elementy.
59 Summary(pl): Biblioteka evas
65 %description libs -l pl
69 Summary: Evas header files
70 Summary(pl): Pliki nag³ówkowe Evas
71 Group: Development/Libraries
72 Requires: %{name}-libs = %{version}-%{release}
73 %{?with_directfb:Requires: DirectFB-devel}
74 Requires: OpenGL-devel
77 Requires: freetype-devel
78 Requires: libjpeg-devel
79 Requires: libpng-devel
82 Header files for Evas.
84 %description devel -l pl
85 Pliki nag³ówkowe Evas.
88 Summary: Static Evas library
89 Summary(pl): Statyczna biblioteka Evas
90 Group: Development/Libraries
91 Requires: %{name}-devel = %{version}-%{release}
96 %description static -l pl
97 Statyczna biblioteka Evas.
110 %{!?with_static_libs:--disable-static} \
111 --enable-software-x11 \
112 --disable-software-xcb \
113 --%{?with_directfb:en}%{!?with_directfb:dis}able-directfb \
116 --disable-software-qtopia \
118 --enable-xrender-x11 \
119 --enable-image-loader-png \
120 --enable-image-loader-jpeg \
121 --enable-image-loader-eet \
122 --enable-font-loader-eet \
123 --enable-image-loader-edb \
135 --enable-cpu-altivec \
137 --disable-cpu-altivec \
145 rm -rf $RPM_BUILD_ROOT
148 DESTDIR=$RPM_BUILD_ROOT
150 cd $RPM_BUILD_ROOT%{_datadir}/%{name}
152 for FONT in $VERA; do
154 ln -s %{_fontsdir}/TTF/$FONT .
158 rm -rf $RPM_BUILD_ROOT
160 %post libs -p /sbin/ldconfig
161 %postun libs -p /sbin/ldconfig
164 %defattr(644,root,root,755)
165 %doc AUTHORS COPYING COPYING-PLAIN INSTALL README
166 %attr(755,root,root) %{_bindir}/evas_*
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_libdir}/libevas.so.*.*.*
172 %dir %{_libdir}/%{name}
173 %dir %{_libdir}/%{name}/modules
174 %dir %{_libdir}/%{name}/modules/*
175 %dir %{_libdir}/%{name}/modules/*/*
176 %dir %{_libdir}/%{name}/modules/*/*/linux-gnu-*
177 %attr(755,root,root) %{_libdir}/%{name}/modules/*/*/linux-gnu-*/module.so
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_bindir}/evas-config
182 %attr(755,root,root) %{_libdir}/libevas.so
183 %{_libdir}/libevas.la
184 %{_pkgconfigdir}/evas.pc
187 %if %{with static_libs}
189 %defattr(644,root,root,755)