]>
Commit | Line | Data |
---|---|---|
8d005b92 ER |
1 | # TODO |
2 | # - static package | |
e805f8fc AM |
3 | Summary: The talloc library |
4 | Name: libtalloc | |
5 | Version: 2.0.1 | |
5ac10cf3 | 6 | Release: 1 |
dea744ef | 7 | Epoch: 2 |
e805f8fc AM |
8 | License: LGPL v3+ |
9 | Group: Daemons | |
10 | URL: http://talloc.samba.org/ | |
11 | Source0: http://samba.org/ftp/talloc/talloc-%{version}.tar.gz | |
12 | # Source0-md5: c6e736540145ca58cb3dcb42f91cf57b | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: docbook-style-xsl | |
15 | BuildRequires: libxslt | |
8d005b92 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e805f8fc AM |
17 | |
18 | %description | |
19 | A library that implements a hierarchical allocator with destructors. | |
20 | ||
21 | %package devel | |
22 | Summary: Developer tools for the Talloc library | |
23 | Group: Development/Libraries | |
dea744ef | 24 | Requires: libtalloc = %{epoch}:%{version}-%{release} |
e805f8fc AM |
25 | |
26 | %description devel | |
27 | Header files needed to develop programs that link against the Talloc | |
28 | library. | |
29 | ||
30 | %prep | |
31 | %setup -q -n talloc-%{version} | |
32 | ||
33 | %build | |
34 | ./autogen.sh | |
35 | %configure | |
36 | %{__make} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
e805f8fc | 44 | ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so |
8d005b92 | 45 | ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so.2 |
e805f8fc AM |
46 | |
47 | rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a | |
48 | rm -f $RPM_BUILD_ROOT%{_datadir}/swig/*/talloc.i | |
49 | ||
e805f8fc AM |
50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
8d005b92 ER |
53 | %post -p /sbin/ldconfig |
54 | %postun -p /sbin/ldconfig | |
55 | ||
e805f8fc AM |
56 | %files |
57 | %defattr(644,root,root,755) | |
8d005b92 ER |
58 | %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.* |
59 | %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2 | |
e805f8fc AM |
60 | |
61 | %files devel | |
62 | %defattr(644,root,root,755) | |
63 | %{_includedir}/talloc.h | |
64 | %attr(755,root,root) %{_libdir}/libtalloc.so | |
65 | %{_pkgconfigdir}/talloc.pc | |
66 | %{_mandir}/man3/talloc.3* |