3 %bcond_without mmx # without MMX and MMX2
4 %bcond_without sse # without SSE
5 %bcond_without sse2 # without SSE2
6 %bcond_without altivec # without altivec
7 %bcond_without static_libs # don't build static library
9 %ifnarch i586 i686 pentium3 pentium4 athlon %{x8664}
12 %ifnarch i686 pentium3 pentium4 athlon %{x8664}
15 %ifnarch pentium4 %{x8664}
19 %undefine with_altivec
22 Summary: Data types library (list, hash, etc.)
23 Summary(pl.UTF-8): Biblioteka struktur danych (lista, hasz, itp.)
29 Source0: http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2
30 # Source0-md5: 9c2a1d7133670de1206d1e1455a779e6
31 URL: http://trac.enlightenment.org/e/wiki/Eina
32 BuildRequires: pkgconfig >= 1:0.22
33 # ememoa-devel >= 0.0.26
34 # escape (for ps3 platform)
35 # evil >= 1.7.7 (for win32 platform)
36 # exotic (for ??? platforms)
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Data types library (list, hash, etc.)
42 %description -l pl.UTF-8
43 Bilblioteka struktur danych (lista, hasz, itp.).
46 Summary: Eina header files
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Eina
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
52 Header files for Eina.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki Eina.
58 Summary: Static Eina library
59 Summary(pl.UTF-8): Statyczna biblioteka Eina
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
66 %description static -l pl.UTF-8
67 Statyczna biblioteka Eina.
74 --disable-silent-rules \
75 %{?with_static_libs:--enable-static} \
76 --enable-cpu-mmx%{!?with_mmx:=no} \
77 --enable-cpu-sse%{!?with_sse:=no} \
78 --enable-cpu-sse2%{!?with_sse2:=no} \
79 --enable-cpu-altivec%{!?with_altivec:=no}
84 rm -rf $RPM_BUILD_ROOT
87 DESTDIR=$RPM_BUILD_ROOT
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog NEWS README
98 %attr(755,root,root) %{_libdir}/libeina.so.*.*.*
99 %attr(755,root,root) %ghost %{_libdir}/libeina.so.1
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libeina.so
104 %{_libdir}/libeina.la
105 %{_includedir}/eina-1
106 %{_pkgconfigdir}/eina.pc
108 %if %{with static_libs}
110 %defattr(644,root,root,755)