[packages/ldns] - updated to 1.6.13 - package Python binding - License is BSD

qboosh qboosh at pld-linux.org
Tue Oct 16 18:20:23 CEST 2012


commit fe4ba1884ba4d73bdaef5f1597d869c0fbacf806
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Oct 16 18:20:37 2012 +0200

    - updated to 1.6.13
    - package Python binding
    - License is BSD

 ldns.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 56 insertions(+), 16 deletions(-)
---
diff --git a/ldns.spec b/ldns.spec
index 0532a01..98c7325 100644
--- a/ldns.spec
+++ b/ldns.spec
@@ -1,22 +1,29 @@
 #
 # Conditional build:
-%bcond_without	static_libs # don't build static libraries
+%bcond_without	static_libs	# don't build static libraries
+%bcond_without	python		# Python modules
 #
 Summary:	ldns - a library with the aim to simplify DNS programing in C
 Summary(pl.UTF-8):	ldns - biblioteka mająca na celu uproszczenie programowania DNS w C
 Name:		ldns
-Version:	1.6.12
+Version:	1.6.13
 Release:	1
-License:	GPL
+License:	BSD
 Group:		Libraries
 Source0:	http://www.nlnetlabs.nl/downloads/ldns/%{name}-%{version}.tar.gz
-# Source0-md5:	e7428ed0d19baed02459e2c55660c9b3
+# Source0-md5:	bcada4f2e62aa40fcdd5d73aec46f284
 URL:		http://www.nlnetlabs.nl/ldns/
-BuildRequires:	autoconf
+BuildRequires:	autoconf >= 2.56
 BuildRequires:	automake
 BuildRequires:	doxygen
 BuildRequires:	libtool
 BuildRequires:	openssl-devel >= 1.0.0
+%if %{with python}
+BuildRequires:	python-devel >= 1:2.4.0
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	swig-python
+%endif
+Requires:	openssl >= 1.0.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -24,15 +31,16 @@ ldns is a library with the aim to simplify DNS programing in C. It is
 heavily based upon the Net::DNS module from perl.
 
 %description -l pl.UTF-8
-ldns jest biblioteka mającą na celu uproszczenie programowania w C.
-Jest w dużym stopniu oparta na module Perla Net::DNS.
+ldns jest biblioteka mającą na celu uproszczenie programowania
+związanego z usługą DNS w C. Jest w dużym stopniu oparta na module
+Perla Net::DNS.
 
 %package devel
 Summary:	Header files for ldns library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki ldns
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	openssl-devel
+Requires:	openssl-devel >= 1.0.0
 
 %description devel
 Header files for ldns library.
@@ -52,6 +60,18 @@ Static ldns library.
 %description static -l pl.UTF-8
 Statyczna biblioteka ldns.
 
+%package -n python-ldns
+Summary:	Python interface do ldns library
+Summary(pl.UTF-8):	Pythonowy interfejs do biblioteki ldns
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
+
+%description -n python-ldns
+Python interface do ldns library.
+
+%description -n python-ldns -l pl.UTF-8
+Pythonowy interfejs do biblioteki ldns.
+
 %prep
 %setup -q
 
@@ -61,7 +81,8 @@ Statyczna biblioteka ldns.
 %{__autoconf}
 %{__autoheader}
 %configure \
-	--enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
+	--enable-static%{!?with_static_libs:=no} \
+	%{?with_python:--with-pyldns}
 %{__make}
 %{__make} doc
 
@@ -69,7 +90,7 @@ Statyczna biblioteka ldns.
 cd doc/man/man3
 for f in `find . -type l`; do
 	d=`readlink $f`
-	rm -f $f
+	%{__rm} $f
 	echo ".so $d" > $f
 done
 
@@ -79,6 +100,16 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with python}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_ldns.la
+%if %{with static_libs}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_ldns.a
+%endif
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -87,21 +118,30 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changelog README
+%doc Changelog LICENSE README
 %attr(755,root,root) %{_libdir}/libldns.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libldns.so.1
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/ldns-config
 %doc doc/{*.html,dns-lib-implementations,function_manpages,ldns_manpages,CodingStyle}
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_bindir}/ldns-config
+%attr(755,root,root) %{_libdir}/libldns.so
+%{_libdir}/libldns.la
 %{_includedir}/%{name}
-%{_mandir}/man3/*.3*
+%{_mandir}/man1/ldns-config.1*
+%{_mandir}/man3/ldns_*.3*
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libldns.a
+%endif
+
+%if %{with python}
+%files -n python-ldns
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/_ldns.so*
+%{py_sitedir}/ldns.py[co]
+%{py_sitedir}/ldnsx.py[co]
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ldns.git/commitdiff/fe4ba1884ba4d73bdaef5f1597d869c0fbacf806



More information about the pld-cvs-commit mailing list