This commit is contained in:
Jeffrey C. Ollie 2013-07-07 11:57:12 -05:00
parent 2ab9b18094
commit 6df45c3662
3 changed files with 71 additions and 43 deletions

4
.gitignore vendored
View File

@ -2,3 +2,7 @@
/dnspython-1.10.0.tar.gz.asc /dnspython-1.10.0.tar.gz.asc
/dnspython3-1.10.0.tar.gz /dnspython3-1.10.0.tar.gz
/dnspython3-1.10.0.tar.gz.asc /dnspython3-1.10.0.tar.gz.asc
/dnspython-1.11.0.tar.gz
/dnspython-1.11.0.tar.gz.asc
/dnspython3-1.11.0.tar.gz
/dnspython3-1.11.0.tar.gz.asc

View File

@ -5,8 +5,8 @@
%endif %endif
Name: python-dns Name: python-dns
Version: 1.10.0 Version: 1.11.0
Release: 3%{?dist} Release: 1%{?dist}
Summary: DNS toolkit for Python Summary: DNS toolkit for Python
Group: Development/Languages Group: Development/Languages
@ -16,21 +16,23 @@ Source0: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.ta
Source1: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz.asc Source1: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz.asc
Source2: http://www.dnspython.org/kits3/%{version}/dnspython3-%{version}.tar.gz Source2: http://www.dnspython.org/kits3/%{version}/dnspython3-%{version}.tar.gz
Source3: http://www.dnspython.org/kits3/%{version}/dnspython3-%{version}.tar.gz.asc Source3: http://www.dnspython.org/kits3/%{version}/dnspython3-%{version}.tar.gz.asc
Patch1: dnspython-1.10.1-tlsa.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
%if 0%{?fedora} >= 8
BuildRequires: python-setuptools-devel BuildRequires: python2-devel
%else # for tests
BuildRequires: python-setuptools BuildRequires: python-crypto
%endif
%if 0%{?with_python3} %if 0%{?with_python3}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools # for tests
BuildRequires: python3-crypto
%endif %endif
# for DNSSEC support
Requires: python-crypto
%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
types. It can be used for queries, zone transfers, and dynamic types. It can be used for queries, zone transfers, and dynamic
@ -47,6 +49,9 @@ manipulation of DNS zones, messages, names, and records.
Summary: DNS toolkit for Python 3 Summary: DNS toolkit for Python 3
Group: Development/Languages Group: Development/Languages
# for DNSSEC support
Requires: python3-crypto
%description -n python3-dns %description -n python3-dns
dnspython3 is a DNS toolkit for Python 3. It supports almost all record dnspython3 is a DNS toolkit for Python 3. It supports almost all record
types. It can be used for queries, zone transfers, and dynamic types. It can be used for queries, zone transfers, and dynamic
@ -58,46 +63,40 @@ class, and return an answer set. The low level classes allow direct
manipulation of DNS zones, messages, names, and records. manipulation of DNS zones, messages, names, and records.
%endif %endif
%prep %prep
%setup -q -n dnspython-%{version} %setup -q -T -c -n dnspython-%{version} -a 0 -a 2
%setup -T -D -a 2 -q -n dnspython-%{version}
%patch1 -p1 -b .tlsa
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a dnspython3-%{version} %{py3dir}
%endif
# strip executable permissions so that we don't pick up dependencies # strip executable permissions so that we don't pick up dependencies
# from documentation # from documentation
find examples -type f | xargs chmod a-x find dnspython-%{version}/examples -type f | xargs chmod a-x
find dnspython3-%{version}/examples -type f | xargs chmod a-x
%build %build
CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build pushd dnspython-%{version}
%{__python} setup.py build
popd
%if 0%{?with_python3} %if 0%{?with_python3}
pushd %{py3dir} pushd dnspython3-%{version}
CFLAGS="%{optflags}" %{__python3} setup.py build %{__python3} setup.py build
popd popd
%endif %endif
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
pushd dnspython-%{version}
%{__python} setup.py install --skip-build --root %{buildroot}
popd
%if 0%{?with_python3} %if 0%{?with_python3}
pushd %{py3dir} pushd dnspython3-%{version}
%{__python3} -c 'import setuptools; exec(open("setup.py").read())' install \ %{__python3} setup.py install --skip-build --root %{buildroot}
--skip-build --root %{buildroot}
popd popd
%endif %endif
%check %check
pushd tests pushd dnspython-%{version}/tests
# skip one test because it queries the network # skip one test because it queries the network
for py in *.py for py in *.py
do do
@ -106,26 +105,27 @@ do
PYTHONPATH=%{buildroot}%{python_sitelib} %{__python} $py PYTHONPATH=%{buildroot}%{python_sitelib} %{__python} $py
fi fi
done done
popd
%if 0%{?with_python3} %if 0%{?with_python3}
pushd %{py3dir}/tests pushd dnspython3-%{version}/tests
# skip one test because it queries the network
for py in *.py for py in *.py
do do
if [ $py != resolver.py ] if [ $py != resolver.py ]
then then
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} $py PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} $py
fi fi
done done
popd popd
%endif %endif
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc ChangeLog LICENSE README examples %doc dnspython-%{version}/{ChangeLog,LICENSE,README,examples}
%{python_sitelib}/*egg-info %{python_sitelib}/*egg-info
%{python_sitelib}/dns %{python_sitelib}/dns
@ -139,8 +139,32 @@ rm -rf %{buildroot}
%{python3_sitelib}/dns %{python3_sitelib}/dns
%endif %endif
%changelog %changelog
* Sun Jul 7 2013 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.11.0-1
- New since 1.10.0:
-
- $GENERATE support
-
- TLSA RR support
-
- Added set_flags() method to dns.resolver.Resolver
-
- Bugs fixed since 1.10.0:
-
- Names with offsets >= 2^14 are no longer added to the
- compression table.
-
- The "::" syntax is not used to shorten a single 16-bit section
- of the text form an IPv6 address.
-
- Caches are now locked.
-
- YXDOMAIN is raised if seen by the resolver.
-
- Empty rdatasets are not printed.
-
- DNSKEY key tags are no longer assumed to be unique.
* Sat Feb 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.10.0-3 * Sat Feb 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.10.0-3
- add python3-dns subpackage (rhbz#911933) - add python3-dns subpackage (rhbz#911933)
@ -359,7 +383,7 @@ rm -rf %{buildroot}
* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6.0-2 * Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6.0-2
- fix license tag - fix license tag
* Sat Dec 4 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.0-1 * Tue Dec 4 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.0-1
- Update to 1.6.0 - Update to 1.6.0
* Tue Oct 9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.5.0-2 * Tue Oct 9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.5.0-2

View File

@ -1,4 +1,4 @@
b4f60852fd7ba64fc7c3a1fa239eba33 dnspython-1.10.0.tar.gz 7b582963b1af099e3e85977513300d11 dnspython-1.11.0.tar.gz
81d7579e66ca37d0b03dce051b60324d dnspython-1.10.0.tar.gz.asc 8883880dc5cc11e846da7f8076aaaaad dnspython-1.11.0.tar.gz.asc
17d0ec54f83df3e95846fc4e20224a96 dnspython3-1.10.0.tar.gz 8ed2ca258d20626ecc7bef090a7a5aee dnspython3-1.11.0.tar.gz
d5534b68ef5fc8c9b68fed019bc148d5 dnspython3-1.10.0.tar.gz.asc 5a54ef8c20ee1663d6b5c0e51c29ea54 dnspython3-1.11.0.tar.gz.asc