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