- 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
This commit is contained in:
Sascha Peilicke 2013-07-15 11:34:47 +00:00 committed by Git OBS Bridge
parent c93d773243
commit 6a702ac166
2 changed files with 20 additions and 21 deletions

View File

@ -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

View File

@ -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