packages: libtalloc/libtalloc.spec - updated to 2.0.5 - project has switche...

qboosh qboosh at pld-linux.org
Tue Jan 11 21:04:58 CET 2011


Author: qboosh                       Date: Tue Jan 11 20:04:58 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 2.0.5
- project has switched to waf; -static is gone
- package python binding

---- Files affected:
packages/libtalloc:
   libtalloc.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: packages/libtalloc/libtalloc.spec
diff -u packages/libtalloc/libtalloc.spec:1.12 packages/libtalloc/libtalloc.spec:1.13
--- packages/libtalloc/libtalloc.spec:1.12	Mon Oct 25 20:48:13 2010
+++ packages/libtalloc/libtalloc.spec	Tue Jan 11 21:04:52 2011
@@ -2,17 +2,18 @@
 Summary:	The talloc library - a hierarchical pool based memory system
 Summary(pl.UTF-8):	Biblioteka talloc - system przydzielania pamięci oparty na hierarchicznej puli
 Name:		libtalloc
-Version:	2.0.1
-Release:	5
+Version:	2.0.5
+Release:	1
 Epoch:		2
 License:	LGPL v3+
 Group:		Libraries
 Source0:	http://samba.org/ftp/talloc/talloc-%{version}.tar.gz
-# Source0-md5:	c6e736540145ca58cb3dcb42f91cf57b
+# Source0-md5:	6e3fdfbc43dde8ccba27b6af894b8fb2
 URL:		http://talloc.samba.org/
-BuildRequires:	autoconf >= 2.50
 BuildRequires:	docbook-style-xsl
 BuildRequires:	libxslt-progs
+BuildRequires:	python >= 1:2.4.2
+BuildRequires:	python-devel >= 1:2.4.2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -28,6 +29,7 @@
 Summary(pl.UTF-8):	Pliki programistyczne biblioteki talloc
 Group:		Development/Libraries
 Requires:	%{name} = %{epoch}:%{version}-%{release}
+Obsoletes:	libtalloc-static
 
 %description devel
 Development files needed to create programs that link against the
@@ -37,26 +39,47 @@
 Pliki programistyczne potrzebne do tworzenia programów używających
 biblioteki talloc.
 
-%package static
-Summary:	Static talloc library
-Summary(pl.UTF-8):	Statyczna biblioteka talloc
+%package -n python-talloc
+Summary:	Python binding for talloc library
+Summary(pl.UTF-8):	Wiązanie Pythona do biblioteki talloc
+Group:		Libraries/Python
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	python-libs >= 1:2.4.2
+
+%description -n python-talloc
+Python binding for talloc library.
+
+%description -n python-talloc -l pl.UTF-8
+Wiązanie Pythona do biblioteki talloc.
+
+%package -n python-talloc-devel
+Summary:	Development files for pytalloc-util library
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki pytalloc-util
 Group:		Development/Libraries
 Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+Requires:	python-talloc = %{epoch}:%{version}-%{release}
+Requires:	python-devel >= 1:2.4.2
 
-%description static
-Static talloc library.
+%description -n python-talloc-devel
+Development files for pytalloc-util library.
 
-%description static -l pl.UTF-8
-Statyczna biblioteka talloc.
+%description -n python-talloc-devel -l pl.UTF-8
+Pliki programistyczne biblioteki pytalloc-util.
 
 %prep
 %setup -q -n talloc-%{version}
 
 %build
-%{__autoconf} -I libreplace
-%{__autoheader} -I libreplace
-%configure
-%{__make}
+# note: configure in fact is waf call
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
+PYTHONDIR=%{py_sitedir} \
+./configure \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir}
+
+%{__make} \
+	V=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -64,11 +87,6 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-ln -sf libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so
-ln -sf libtalloc.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtalloc.so.2
-
-%{__rm} $RPM_BUILD_ROOT%{_datadir}/swig/*/talloc.i
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -86,14 +104,23 @@
 
 %files devel
 %defattr(644,root,root,755)
+%doc talloc_guide.txt
 %attr(755,root,root) %{_libdir}/libtalloc.so
 %{_includedir}/talloc.h
 %{_pkgconfigdir}/talloc.pc
 %{_mandir}/man3/talloc.3*
 
-%files static
+%files -n python-talloc
 %defattr(644,root,root,755)
-%{_libdir}/libtalloc.a
+%attr(755,root,root) %{_libdir}/libpytalloc-util.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.so.2
+%attr(755,root,root) %{py_sitedir}/talloc.so
+
+%files -n python-talloc-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libpytalloc-util.so
+%{_includedir}/pytalloc.h
+%{_pkgconfigdir}/pytalloc-util.pc
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -101,6 +128,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2011/01/11 20:04:52  qboosh
+- updated to 2.0.5
+- project has switched to waf; -static is gone
+- package python binding
+
 Revision 1.12  2010/10/25 18:48:13  qboosh
 - fixed base group
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libtalloc/libtalloc.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list