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