[python-pydns] update to latest upstream, modernize spec

Adam Williamson adamwill at fedoraproject.org
Wed Aug 7 21:36:00 UTC 2013


commit fbc33cb570ae4fa3f427f67843c094b7c3220bd1
Author: Adam Williamson <awilliam at redhat.com>
Date:   Wed Aug 7 14:35:44 2013 -0700

    update to latest upstream, modernize spec

 .gitignore        |    1 +
 python-pydns.spec |   17 +++++++----------
 sources           |    2 +-
 3 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4c9117e..2b2b113 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 pydns-2.3.3.tar.gz
+/pydns-2.3.6.tar.gz
diff --git a/python-pydns.spec b/python-pydns.spec
index f16e336..bc1d76f 100644
--- a/python-pydns.spec
+++ b/python-pydns.spec
@@ -1,18 +1,17 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%global namewithoutpythonprefix %(echo %{name} | sed 's/^python-//')
 
 Name:           python-pydns
-Version:        2.3.3
-Release:        11%{?dist}
+Version:        2.3.6
+Release:        1%{?dist}
 Summary:        Python module for DNS (Domain Name Service)
 
 Group:          Development/Languages
 License:        Python
 URL:            http://pydns.sourceforge.net/
 Source0:        http://download.sourceforge.net/pydns/pydns-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
-BuildRequires:  python-devel
+BuildRequires:  python2-devel
 
 %description
 This is a another release of the pydns code, as originally written by
@@ -23,7 +22,6 @@ This package contains a module (dnslib) that implements a DNS
 (Domain Name Server) client, plus additional modules that define some
 symbolic constants used by DNS (dnstype, dnsclass, dnsopcode).
 
-%define namewithoutpythonprefix %(echo %{name} | sed 's/^python-//')
 %prep
 %setup -q -n %{namewithoutpythonprefix}-%{version}
 
@@ -47,10 +45,6 @@ rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
 %defattr(-,root,root,-)
 %doc CREDITS.txt PKG-INFO README-guido.txt README.txt
@@ -59,6 +53,9 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitelib}/pydns-%{version}-py*.egg-info
 
 %changelog
+* Wed Aug 07 2013 Adam Williamson <awilliam at redhat.com> - 2.3.6-1
+- update to latest upstream, modernize spec
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.3-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index 37c6d17..7223830 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-40001fb178de5920e7d67c000a782d6a  pydns-2.3.3.tar.gz
+d12ca75251854ab6fcabbaff6909b690  pydns-2.3.6.tar.gz


More information about the scm-commits mailing list