2006-12-11 11:40:19 +00:00
|
|
|
#
|
2011-03-24 18:49:15 +00:00
|
|
|
# spec file for package python-dnspython
|
2006-12-11 11:40:19 +00:00
|
|
|
#
|
2013-07-11 15:02:49 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-11 11:40:19 +00:00
|
|
|
#
|
2010-11-02 15:17:47 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2011-03-25 07:55:40 +00:00
|
|
|
|
2006-12-11 11:40:19 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2011-03-25 07:55:40 +00:00
|
|
|
|
2013-07-15 11:34:47 +00:00
|
|
|
Name: python-dnspython
|
2013-09-13 09:46:22 +00:00
|
|
|
Version: 1.11.1
|
2012-05-31 11:39:26 +00:00
|
|
|
Release: 0
|
|
|
|
|
Url: http://www.dnspython.org/
|
2011-03-24 18:49:15 +00:00
|
|
|
Summary: A DNS toolkit for Python
|
2012-05-31 14:50:45 +00:00
|
|
|
License: ISC
|
2011-03-24 18:49:15 +00:00
|
|
|
Group: Development/Languages/Python
|
2013-07-15 11:34:47 +00:00
|
|
|
Source: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.zip
|
2006-12-11 11:40:19 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-03-24 18:49:15 +00:00
|
|
|
BuildRequires: python-devel
|
2013-07-15 11:34:47 +00:00
|
|
|
BuildRequires: python-nose
|
2013-07-11 15:02:49 +00:00
|
|
|
BuildRequires: unzip
|
2013-07-15 11:34:47 +00:00
|
|
|
%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
|
2010-01-28 19:47:16 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
2006-12-11 11:40:19 +00:00
|
|
|
%description
|
|
|
|
|
dnspython is a DNS toolkit for Python. It supports almost all record
|
2011-03-24 18:49:15 +00:00
|
|
|
types. It can be used for queries, zone transfers,
|
|
|
|
|
and dynamic updates. It supports TSIG authenticated messages and EDNS0.
|
|
|
|
|
|
|
|
|
|
dnspython provides both high and low level access to DNS. The high level classes
|
|
|
|
|
perform queries for data of a given name, type, and class, and return an answer
|
|
|
|
|
set. The low level classes allow direct manipulation of DNS zones, messages,
|
|
|
|
|
names, and records.
|
2006-12-11 11:40:19 +00:00
|
|
|
|
|
|
|
|
%prep
|
2013-07-15 11:34:47 +00:00
|
|
|
%setup -q -n dnspython-%{version}
|
2006-12-11 11:40:19 +00:00
|
|
|
|
|
|
|
|
%build
|
2011-03-24 18:49:15 +00:00
|
|
|
python setup.py build
|
2006-12-11 11:40:19 +00:00
|
|
|
|
|
|
|
|
%install
|
2011-03-24 18:49:15 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2006-12-11 11:40:19 +00:00
|
|
|
|
2013-07-15 11:34:47 +00:00
|
|
|
%check
|
|
|
|
|
nosetests
|
|
|
|
|
|
2011-03-24 18:49:15 +00:00
|
|
|
%files
|
2012-05-31 11:39:26 +00:00
|
|
|
%defattr(-,root,root)
|
2013-07-15 11:34:47 +00:00
|
|
|
%doc LICENSE README examples
|
|
|
|
|
%{python_sitelib}/dns
|
|
|
|
|
%{python_sitelib}/dnspython-%{version}-py%{py_ver}.egg-info
|
2010-11-22 16:07:16 +00:00
|
|
|
|
2010-11-02 15:17:47 +00:00
|
|
|
%changelog
|