3 %bcond_without mmx # without MMX and MMX2
4 %bcond_without sse # without SSE
5 %bcond_without altivec # without altivec
6 %bcond_without static_libs # don't build static library
8 %ifnarch i586 i686 pentium3 pentium4 athlon %{x8664}
11 %ifnarch i686 pentium3 pentium4 athlon %{x8664}
15 %undefine with_altivec
18 Summary: Data types library (list, hash, etc.)
19 Summary(pl.UTF-8): Biblioteka struktur danych (lista, hasz, itp.)
23 Release: 0.%{subver}.1
26 Source0: http://download.enlightenment.org/releases/%{name}-%{version}.%{subver}.tar.bz2
27 # Source0-md5: 004454c013e53ad97aab72c22328da40
28 URL: http://trac.enlightenment.org/e/wiki/Eina
29 BuildRequires: pkgconfig
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Data types library (list, hash, etc.)
35 %description -l pl.UTF-8
36 Bilblioteka struktur danych (lista, hasz, itp.).
39 Summary: Eina header files
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Eina
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
45 Header files for Eina.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki Eina.
51 Summary: Static Eina library
52 Summary(pl.UTF-8): Statyczna biblioteka Eina
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
59 %description static -l pl.UTF-8
60 Statyczna biblioteka Eina.
63 %setup -q -n %{name}-%{version}.%{subver}
67 --disable-silent-rules \
68 %{?with_static_libs:--enable-static} \
69 --enable-cpu-mmx%{!?with_mmx:=no} \
70 --enable-cpu-sse%{!?with_sse:=no} \
71 --enable-cpu-altivec%{!?with_altives:=no}
76 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
82 rm -rf $RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
88 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_libdir}/libeina.so.*.*.*
91 %attr(755,root,root) %ghost %{_libdir}/libeina.so.1
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_libdir}/libeina.so
98 %{_pkgconfigdir}/eina.pc
100 %if %{with static_libs}
102 %defattr(644,root,root,755)