- 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 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()")} Name: python-dnspython
%{!?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}
Version: 1.11.0 Version: 1.11.0
Release: 0 Release: 0
Url: http://www.dnspython.org/ Url: http://www.dnspython.org/
Summary: A DNS toolkit for Python Summary: A DNS toolkit for Python
License: ISC License: ISC
Group: Development/Languages/Python 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: unzip BuildRequires: unzip
%if 0%{?suse_version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%py_requires %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%if 0%{?suse_version} > 1110 %else
BuildArch: noarch BuildArch: noarch
%endif %endif
%endif
%description %description
dnspython is a DNS toolkit for Python. It supports almost all record 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. names, and records.
%prep %prep
%setup -q -n %{mod_name}-%{version} %setup -q -n dnspython-%{version}
%build %build
export CFLAGS="%{optflags}"
python setup.py build python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
nosetests
%files %files
%defattr(-,root,root) %defattr(-,root,root)
# You may have to add additional files here (documentation and binaries mostly) %doc LICENSE README examples
%python_sitelib/dns* %{python_sitelib}/dns
%if 0%{?sles_version} != 10 %{python_sitelib}/dnspython-%{version}-py%{py_ver}.egg-info
%python_sitelib/*.egg-info
%endif
%doc README ChangeLog
%doc examples
%doc tests
%changelog %changelog