rpms/ldns/devel ldns.spec,1.53,1.54
Paul Wouters
pwouters at fedoraproject.org
Wed Jan 20 16:32:50 UTC 2010
Author: pwouters
Update of /cvs/extras/rpms/ldns/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17188
Modified Files:
ldns.spec
Log Message:
* Wed Jan 20 2010 Paul Wouters <paul at xelerance.com> - 1.6.4-1
- Upgraded to 1.6.4.
- Added ldns-python sub package
Index: ldns.spec
===================================================================
RCS file: /cvs/extras/rpms/ldns/devel/ldns.spec,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -p -r1.53 -r1.54
--- ldns.spec 4 Dec 2009 18:12:04 -0000 1.53
+++ ldns.spec 20 Jan 2010 16:32:49 -0000 1.54
@@ -1,6 +1,13 @@
+%{?!with_python: %global with_python 1}
+
+%if %{with_python}
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%endif
+
Summary: Lowlevel DNS(SEC) library with API
Name: ldns
-Version: 1.6.3
+Version: 1.6.4
Release: 1%{?dist}
License: BSD
Url: http://www.nlnetlabs.nl/%{name}/
@@ -10,6 +17,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version
BuildRequires: libtool, autoconf, automake, gcc-c++, doxygen,
BuildRequires: perl, libpcap-devel, openssl-devel
+%if %{with_python}
+BuildRequires: python-devel, swig
+%endif
+
%description
ldns is a library with the aim to simplify DNS programing in C. All
lowlevel DNS/DNSSEC operations are supported. We also define a higher
@@ -24,6 +35,17 @@ Requires: %{name} = %{version}-%{release
%description devel
The devel package contains the ldns library and the include files
+%if %{with_python}
+%package python
+Summary: Python extensions for ldns
+Group: Applications/System
+Requires: %{name}-libs = %{version}-%{release}
+
+%description python
+Python extensions for ldns
+%endif
+
+
%prep
%setup -q
# To built svn snapshots
@@ -32,7 +54,11 @@ The devel package contains the ldns libr
#autoreconf
%build
-%configure --disable-rpath --with-sha2
+%configure --disable-rpath --with-sha2 \
+%if %{with_python}
+ --with-pyldns
+%endif
+
(cd drill ; %configure --disable-rpath --with-ldns=%{buildroot}/lib/ )
(cd examples ; %configure --disable-rpath --with-ldns=%{buildroot}/lib/ )
@@ -47,6 +73,11 @@ rm -rf %{buildroot}
make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install
make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install-doc
+%if %{with_python}
+# remove execute perms from python files
+chmod a-x %{buildroot}%{python_sitelib}/ldns/*py
+%endif
+
# don't package building script in doc
rm doc/doxyparse.pl
#remove doc stubs
@@ -55,7 +86,7 @@ rm -rf doc/.svn
rm -rf doc/man
# remove .la files
-rm -rf %{buildroot}%{_libdir}/*.la
+rm -rf %{buildroot}%{_libdir}/*.la %{buildroot}%{python_sitelib}/*.la
(cd drill ; make DESTDIR=%{buildroot} install)
(cd examples; make DESTDIR=%{buildroot} install)
@@ -83,11 +114,21 @@ rm -rf %{buildroot}
%{_includedir}/ldns/*.h
%doc doc Changelog README
+%if %{with_python}
+%files python
+%defattr(-,root,root)
+%{python_sitelib}/*
+%endif
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
+* Wed Jan 20 2010 Paul Wouters <paul at xelerance.com> - 1.6.4-1
+- Upgraded to 1.6.4.
+- Added ldns-python sub package
+
* Fri Dec 04 2009 Paul Wouters <paul at xelerance.com> - 1.6.3-1
- Upgraded to 1.6.3, which has minor bugfixes
More information about the scm-commits
mailing list