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): Bilblioteka 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: b83de59ed0b2263378c3dc5f22ccfe62
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} \
80 --enable-cpu-altivec \
82 --disable-cpu-altivec \
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/libeina.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libeina.so.1
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libeina.so
108 %{_libdir}/libeina.la
109 %{_includedir}/eina-1
110 %{_pkgconfigdir}/eina.pc
112 %if %{with static_libs}
114 %defattr(644,root,root,755)