]>
Commit | Line | Data |
---|---|---|
a9611b05 | 1 | # NOTE: for versions >= 1.8 see efl.spec |
a464224c | 2 | # |
626e1e76 | 3 | # Conditional build: |
4 | %bcond_without mmx # without MMX and MMX2 | |
5 | %bcond_without sse # without SSE | |
50f6ba0e | 6 | %bcond_without sse2 # without SSE2 |
626e1e76 | 7 | %bcond_without altivec # without altivec |
8 | %bcond_without static_libs # don't build static library | |
9 | # | |
10 | %ifnarch i586 i686 pentium3 pentium4 athlon %{x8664} | |
11 | %undefine with_mmx | |
12 | %endif | |
13 | %ifnarch i686 pentium3 pentium4 athlon %{x8664} | |
14 | %undefine with_sse | |
15 | %endif | |
50f6ba0e JB |
16 | %ifnarch pentium4 %{x8664} |
17 | %undefine with_sse2 | |
18 | %endif | |
626e1e76 | 19 | %ifnarch ppc |
20 | %undefine with_altivec | |
21 | %endif | |
22 | ||
a464224c | 23 | Summary: Data types library (list, hash, etc.) |
735af905 | 24 | Summary(pl.UTF-8): Biblioteka struktur danych (lista, hasz, itp.) |
626e1e76 | 25 | Name: eina |
f40dc0d2 | 26 | Version: 1.7.10 |
8cb64111 | 27 | Release: 2 |
547835f5 | 28 | License: LGPL v2.1+ |
626e1e76 | 29 | Group: Libraries |
16358d8d | 30 | Source0: http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2 |
f40dc0d2 | 31 | # Source0-md5: 60064b8ee520ccf106641e87ff24e9da |
a464224c | 32 | URL: http://trac.enlightenment.org/e/wiki/Eina |
dea44bb2 JB |
33 | BuildRequires: pkgconfig >= 1:0.22 |
34 | # ememoa-devel >= 0.0.26 | |
43dc5b14 | 35 | # escape (for ps3 platform) |
60d7e84f | 36 | # evil >= 1.7.9 (for win32 platform) |
43dc5b14 | 37 | # exotic (for ??? platforms) |
626e1e76 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
a464224c | 41 | Data types library (list, hash, etc.) |
626e1e76 | 42 | |
43 | %description -l pl.UTF-8 | |
a464224c | 44 | Bilblioteka struktur danych (lista, hasz, itp.). |
626e1e76 | 45 | |
46 | %package devel | |
47 | Summary: Eina header files | |
a464224c | 48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Eina |
626e1e76 | 49 | Group: Development/Libraries |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description devel | |
53 | Header files for Eina. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
a464224c | 56 | Pliki nagłówkowe biblioteki Eina. |
626e1e76 | 57 | |
58 | %package static | |
59 | Summary: Static Eina library | |
60 | Summary(pl.UTF-8): Statyczna biblioteka Eina | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static Eina library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka Eina. | |
69 | ||
70 | %prep | |
16358d8d | 71 | %setup -q |
626e1e76 | 72 | |
73 | %build | |
626e1e76 | 74 | %configure \ |
a464224c | 75 | --disable-silent-rules \ |
626e1e76 | 76 | %{?with_static_libs:--enable-static} \ |
d29a2d98 JB |
77 | --enable-cpu-mmx%{!?with_mmx:=no} \ |
78 | --enable-cpu-sse%{!?with_sse:=no} \ | |
50f6ba0e | 79 | --enable-cpu-sse2%{!?with_sse2:=no} \ |
f318f6c8 | 80 | --enable-cpu-altivec%{!?with_altivec:=no} |
626e1e76 | 81 | |
d29a2d98 | 82 | %{__make} |
626e1e76 | 83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
50f6ba0e | 98 | %doc AUTHORS ChangeLog NEWS README |
a464224c JB |
99 | %attr(755,root,root) %{_libdir}/libeina.so.*.*.* |
100 | %attr(755,root,root) %ghost %{_libdir}/libeina.so.1 | |
626e1e76 | 101 | |
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
a464224c | 104 | %attr(755,root,root) %{_libdir}/libeina.so |
626e1e76 | 105 | %{_libdir}/libeina.la |
a464224c JB |
106 | %{_includedir}/eina-1 |
107 | %{_pkgconfigdir}/eina.pc | |
626e1e76 | 108 | |
109 | %if %{with static_libs} | |
110 | %files static | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/libeina.a | |
113 | %endif |