3 Summary: The talloc library
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
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 A library that implements a hierarchical allocator with destructors.
22 Summary: Developer tools for the Talloc library
23 Group: Development/Libraries
24 Requires: libtalloc = %{epoch}:%{version}-%{release}
27 Header files needed to develop programs that link against the Talloc
31 %setup -q -n talloc-%{version}
39 rm -rf $RPM_BUILD_ROOT
42 DESTDIR=$RPM_BUILD_ROOT
44 ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so
45 ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so.2
47 rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a
48 rm -f $RPM_BUILD_ROOT%{_datadir}/swig/*/talloc.i
51 rm -rf $RPM_BUILD_ROOT
53 %post -p /sbin/ldconfig
54 %postun -p /sbin/ldconfig
57 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.*
59 %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2
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*