From 6a702ac16669656580ef40786980af8220986695018de3f29908ceea58f44e2f Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 15 Jul 2013 11:34:47 +0000 Subject: [PATCH] - Package LICENSE, use proper upstream URL - Run testsuite - Cleanup macro usage OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnspython?expand=0&rev=25 --- python-dnspython.changes | 7 +++++++ python-dnspython.spec | 34 +++++++++++++--------------------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/python-dnspython.changes b/python-dnspython.changes index 5c4d6ff..9beca92 100644 --- a/python-dnspython.changes +++ b/python-dnspython.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jul 15 11:37:52 UTC 2013 - speilicke@suse.com + +- Package LICENSE, use proper upstream URL +- Run testsuite +- Cleanup macro usage + ------------------------------------------------------------------- Thu Jul 11 14:23:49 UTC 2013 - dmueller@suse.com diff --git a/python-dnspython.spec b/python-dnspython.spec index ce903e8..f24a38c 100644 --- a/python-dnspython.spec +++ b/python-dnspython.spec @@ -16,28 +16,23 @@ # -%{!?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)")} - -%define mod_name dnspython - -Name: python-%{mod_name} +Name: python-dnspython Version: 1.11.0 Release: 0 Url: http://www.dnspython.org/ Summary: A DNS toolkit for Python License: ISC Group: Development/Languages/Python -Source: http://www.dnspython.org/kits/1.10.0/%{mod_name}-%{version}.zip +Source: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.zip BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel +BuildRequires: python-nose BuildRequires: unzip -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else BuildArch: noarch %endif -%endif %description dnspython is a DNS toolkit for Python. It supports almost all record @@ -50,24 +45,21 @@ set. The low level classes allow direct manipulation of DNS zones, messages, names, and records. %prep -%setup -q -n %{mod_name}-%{version} +%setup -q -n dnspython-%{version} %build -export CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%check +nosetests + %files %defattr(-,root,root) -# You may have to add additional files here (documentation and binaries mostly) -%python_sitelib/dns* -%if 0%{?sles_version} != 10 -%python_sitelib/*.egg-info -%endif -%doc README ChangeLog -%doc examples -%doc tests +%doc LICENSE README examples +%{python_sitelib}/dns +%{python_sitelib}/dnspython-%{version}-py%{py_ver}.egg-info %changelog