]>
Commit | Line | Data |
---|---|---|
626e1e76 | 1 | # Conditional build: |
2 | %bcond_without mmx # without MMX and MMX2 | |
3 | %bcond_without sse # without SSE | |
4 | %bcond_without altivec # without altivec | |
5 | %bcond_without static_libs # don't build static library | |
6 | # | |
7 | %ifnarch i586 i686 pentium3 pentium4 athlon %{x8664} | |
8 | %undefine with_mmx | |
9 | %endif | |
10 | %ifnarch i686 pentium3 pentium4 athlon %{x8664} | |
11 | %undefine with_sse | |
12 | %endif | |
13 | %ifnarch ppc | |
14 | %undefine with_altivec | |
15 | %endif | |
16 | ||
17 | %define _snapdate 2010-06-27 | |
18 | Summary: Data types library (List, hash, etc) | |
19 | Summary(pl.UTF-8): Bilblioteka typów danych (Lista, hasz, itd.) | |
20 | Name: eina | |
21 | Version: 0.9.9.49898 | |
22 | Release: 1 | |
23 | License: LGPL v2.1 | |
24 | Group: Libraries | |
25 | Source0: http://download.enlightenment.org/snapshots/%{_snapdate}/%{name}-%{version}.tar.bz2 | |
26 | # Source0-md5: d14bacce7d588524c12ddad1db9c7240 | |
27 | URL: http://enlightenment.org/p.php?p=about/libs/eina | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Data types library (List, hash, etc) | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Bilblioteka typów danych(Lista, hasz, itd.) | |
35 | ||
36 | %package devel | |
37 | Summary: Eina header files | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe Einy | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for Eina. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe Eina. | |
47 | ||
48 | %package static | |
49 | Summary: Static Eina library | |
50 | Summary(pl.UTF-8): Statyczna biblioteka Eina | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static Eina library. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka Eina. | |
59 | ||
60 | %prep | |
61 | %setup -q | |
62 | ||
63 | %build | |
64 | rm -rf autom4te.cache | |
65 | rm -f aclocal.m4 ltmain.sh | |
66 | %{__libtoolize} | |
67 | %{__aclocal} -I m4 | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
71 | %configure \ | |
72 | %{?with_static_libs:--enable-static} \ | |
73 | %if %{with mmx} | |
74 | --enable-cpu-mmx \ | |
75 | %else | |
76 | --disable-cpu-mmx \ | |
77 | %endif | |
78 | %if %{with sse} | |
79 | --enable-cpu-sse \ | |
80 | %else | |
81 | --disable-cpu-sse \ | |
82 | %endif | |
83 | %if %{with altivec} | |
84 | --enable-cpu-altivec \ | |
85 | %else | |
86 | --disable-cpu-altivec \ | |
87 | %endif | |
88 | ||
89 | %{__make} V=1 | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc AUTHORS | |
106 | %attr(755,root,root) %{_libdir}/libeina-ver-svn-06.so.0.9.9 | |
107 | %attr(755,root,root) %ghost %{_libdir}/libeina-ver-svn-06.so.0 | |
108 | ||
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
111 | %{_includedir}/eina-0 | |
112 | %{_libdir}/libeina.la | |
113 | %{_libdir}/libeina.so | |
114 | %{_pkgconfigdir}/eina-0.pc | |
115 | ||
116 | %if %{with static_libs} | |
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libeina.a | |
120 | %endif |