]>
Commit | Line | Data |
---|---|---|
a464224c | 1 | # |
626e1e76 | 2 | # Conditional build: |
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 | |
7 | # | |
8 | %ifnarch i586 i686 pentium3 pentium4 athlon %{x8664} | |
9 | %undefine with_mmx | |
10 | %endif | |
11 | %ifnarch i686 pentium3 pentium4 athlon %{x8664} | |
12 | %undefine with_sse | |
13 | %endif | |
14 | %ifnarch ppc | |
15 | %undefine with_altivec | |
16 | %endif | |
17 | ||
a464224c | 18 | Summary: Data types library (list, hash, etc.) |
735af905 | 19 | Summary(pl.UTF-8): Biblioteka struktur danych (lista, hasz, itp.) |
626e1e76 | 20 | Name: eina |
a464224c | 21 | Version: 1.0.0 |
16358d8d | 22 | Release: 1 |
626e1e76 | 23 | License: LGPL v2.1 |
24 | Group: Libraries | |
16358d8d | 25 | Source0: http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2 |
26 | # Source0-md5: 036243f1f8cf2e725a326d45603417a3 | |
a464224c JB |
27 | URL: http://trac.enlightenment.org/e/wiki/Eina |
28 | BuildRequires: pkgconfig | |
626e1e76 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
a464224c | 32 | Data types library (list, hash, etc.) |
626e1e76 | 33 | |
34 | %description -l pl.UTF-8 | |
a464224c | 35 | Bilblioteka struktur danych (lista, hasz, itp.). |
626e1e76 | 36 | |
37 | %package devel | |
38 | Summary: Eina header files | |
a464224c | 39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Eina |
626e1e76 | 40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for Eina. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
a464224c | 47 | Pliki nagłówkowe biblioteki Eina. |
626e1e76 | 48 | |
49 | %package static | |
50 | Summary: Static Eina library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka Eina | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static Eina library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka Eina. | |
60 | ||
61 | %prep | |
16358d8d | 62 | %setup -q |
626e1e76 | 63 | |
64 | %build | |
626e1e76 | 65 | %configure \ |
a464224c | 66 | --disable-silent-rules \ |
626e1e76 | 67 | %{?with_static_libs:--enable-static} \ |
d29a2d98 JB |
68 | --enable-cpu-mmx%{!?with_mmx:=no} \ |
69 | --enable-cpu-sse%{!?with_sse:=no} \ | |
16358d8d | 70 | --enable-cpu-altivec%{!?with_altives:=no} |
626e1e76 | 71 | |
d29a2d98 | 72 | %{__make} |
626e1e76 | 73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
a464224c JB |
88 | %doc AUTHORS README |
89 | %attr(755,root,root) %{_libdir}/libeina.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libeina.so.1 | |
626e1e76 | 91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
a464224c | 94 | %attr(755,root,root) %{_libdir}/libeina.so |
626e1e76 | 95 | %{_libdir}/libeina.la |
a464224c JB |
96 | %{_includedir}/eina-1 |
97 | %{_pkgconfigdir}/eina.pc | |
626e1e76 | 98 | |
99 | %if %{with static_libs} | |
100 | %files static | |
101 | %defattr(644,root,root,755) | |
102 | %{_libdir}/libeina.a | |
103 | %endif |