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