# TODO # - static package Summary: The talloc library Name: libtalloc Version: 2.0.1 Release: 3 Epoch: 2 License: LGPL v3+ Group: Daemons URL: http://talloc.samba.org/ Source0: http://samba.org/ftp/talloc/talloc-%{version}.tar.gz # Source0-md5: c6e736540145ca58cb3dcb42f91cf57b BuildRequires: autoconf BuildRequires: docbook-style-xsl BuildRequires: libxslt BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description A library that implements a hierarchical allocator with destructors. %package devel Summary: Developer tools for the Talloc library Group: Development/Libraries Requires: libtalloc = %{epoch}:%{version}-%{release} Provides: pkgconfig(talloc) %description devel Header files needed to develop programs that link against the Talloc library. %prep %setup -q -n talloc-%{version} %build ./autogen.sh %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so.2 rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a rm -f $RPM_BUILD_ROOT%{_datadir}/swig/*/talloc.i %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.* %files devel %defattr(644,root,root,755) %{_includedir}/talloc.h %attr(755,root,root) %{_libdir}/libtalloc.so %{_pkgconfigdir}/talloc.pc %{_mandir}/man3/talloc.3*