From 457aa08be4642376320d34d31fd907ec8089a139 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Jul 06 2009 13:33:06 +0000 Subject: Build talloc as a separate package in F-11 too. --- diff --git a/.cvsignore b/.cvsignore index e69de29..dae82a8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +talloc-1.3.1.tar.gz diff --git a/libtalloc.spec b/libtalloc.spec new file mode 100644 index 0000000..c46c21b --- /dev/null +++ b/libtalloc.spec @@ -0,0 +1,68 @@ +Name: libtalloc +Version: 1.3.1 +Release: 0%{?dist} +Group: System Environment/Daemons +Summary: The talloc library +License: LGPLv3+ +URL: http://talloc.samba.org/ +Source: http://samba.org/ftp/talloc/talloc-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: autoconf +BuildRequires: libxslt +BuildRequires: docbook-style-xsl + +%description +A library that implements a hierarchical allocator with destructors. + +%package devel +Group: Development/Libraries +Summary: Developer tools for the Talloc library +Requires: libtalloc = %{version}-%{release} + +%description devel +Header files needed to develop programs that link against the Talloc library. + +%prep +%setup -q -n talloc-%{version} + +%build +./autogen.sh +%configure --prefix=%{_usr} +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT + +ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so.1 +ln -s libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so + +rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a +rm -f $RPM_BUILD_ROOT/usr/share/swig/*/talloc.i + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_libdir}/libtalloc.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/talloc.h +%{_libdir}/libtalloc.so +%{_libdir}/pkgconfig/talloc.pc +%{_mandir}/man3/talloc.3.gz + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%changelog +* Mon Jul 6 2009 Simo Sorce - 1.3.1-0 +Build talloc as a separate package in F-11 too. diff --git a/sources b/sources index e69de29..3c04c37 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f8969802759bde2598f4f93e84fd38c5 talloc-1.3.1.tar.gz