1.11.0
This commit is contained in:
parent
2ab9b18094
commit
6df45c3662
4
.gitignore
vendored
4
.gitignore
vendored
@ -2,3 +2,7 @@
|
||||
/dnspython-1.10.0.tar.gz.asc
|
||||
/dnspython3-1.10.0.tar.gz
|
||||
/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
|
||||
|
102
python-dns.spec
102
python-dns.spec
@ -5,8 +5,8 @@
|
||||
%endif
|
||||
|
||||
Name: python-dns
|
||||
Version: 1.10.0
|
||||
Release: 3%{?dist}
|
||||
Version: 1.11.0
|
||||
Release: 1%{?dist}
|
||||
Summary: DNS toolkit for Python
|
||||
|
||||
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
|
||||
Source2: http://www.dnspython.org/kits3/%{version}/dnspython3-%{version}.tar.gz
|
||||
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)
|
||||
|
||||
BuildArch: noarch
|
||||
%if 0%{?fedora} >= 8
|
||||
BuildRequires: python-setuptools-devel
|
||||
%else
|
||||
BuildRequires: python-setuptools
|
||||
%endif
|
||||
|
||||
BuildRequires: python2-devel
|
||||
# for tests
|
||||
BuildRequires: python-crypto
|
||||
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
# for tests
|
||||
BuildRequires: python3-crypto
|
||||
%endif
|
||||
|
||||
# for DNSSEC support
|
||||
Requires: python-crypto
|
||||
|
||||
%description
|
||||
dnspython is a DNS toolkit for Python. It supports almost all record
|
||||
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
|
||||
Group: Development/Languages
|
||||
|
||||
# for DNSSEC support
|
||||
Requires: python3-crypto
|
||||
|
||||
%description -n python3-dns
|
||||
dnspython3 is a DNS toolkit for Python 3. It supports almost all record
|
||||
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.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n dnspython-%{version}
|
||||
%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
|
||||
%setup -q -T -c -n dnspython-%{version} -a 0 -a 2
|
||||
|
||||
# strip executable permissions so that we don't pick up dependencies
|
||||
# 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
|
||||
CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
|
||||
pushd dnspython-%{version}
|
||||
%{__python} setup.py build
|
||||
popd
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
CFLAGS="%{optflags}" %{__python3} setup.py build
|
||||
pushd dnspython3-%{version}
|
||||
%{__python3} setup.py build
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
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}
|
||||
pushd %{py3dir}
|
||||
%{__python3} -c 'import setuptools; exec(open("setup.py").read())' install \
|
||||
--skip-build --root %{buildroot}
|
||||
pushd dnspython3-%{version}
|
||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%check
|
||||
pushd tests
|
||||
pushd dnspython-%{version}/tests
|
||||
# skip one test because it queries the network
|
||||
for py in *.py
|
||||
do
|
||||
@ -106,26 +105,27 @@ do
|
||||
PYTHONPATH=%{buildroot}%{python_sitelib} %{__python} $py
|
||||
fi
|
||||
done
|
||||
popd
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}/tests
|
||||
pushd dnspython3-%{version}/tests
|
||||
# skip one test because it queries the network
|
||||
for py in *.py
|
||||
do
|
||||
if [ $py != resolver.py ]
|
||||
then
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} $py
|
||||
fi
|
||||
if [ $py != resolver.py ]
|
||||
then
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} $py
|
||||
fi
|
||||
done
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog LICENSE README examples
|
||||
%doc dnspython-%{version}/{ChangeLog,LICENSE,README,examples}
|
||||
|
||||
%{python_sitelib}/*egg-info
|
||||
%{python_sitelib}/dns
|
||||
@ -139,8 +139,32 @@ rm -rf %{buildroot}
|
||||
%{python3_sitelib}/dns
|
||||
%endif
|
||||
|
||||
|
||||
%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
|
||||
- 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
|
||||
- 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
|
||||
|
||||
* Tue Oct 9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.5.0-2
|
||||
|
8
sources
8
sources
@ -1,4 +1,4 @@
|
||||
b4f60852fd7ba64fc7c3a1fa239eba33 dnspython-1.10.0.tar.gz
|
||||
81d7579e66ca37d0b03dce051b60324d dnspython-1.10.0.tar.gz.asc
|
||||
17d0ec54f83df3e95846fc4e20224a96 dnspython3-1.10.0.tar.gz
|
||||
d5534b68ef5fc8c9b68fed019bc148d5 dnspython3-1.10.0.tar.gz.asc
|
||||
7b582963b1af099e3e85977513300d11 dnspython-1.11.0.tar.gz
|
||||
8883880dc5cc11e846da7f8076aaaaad dnspython-1.11.0.tar.gz.asc
|
||||
8ed2ca258d20626ecc7bef090a7a5aee dnspython3-1.11.0.tar.gz
|
||||
5a54ef8c20ee1663d6b5c0e51c29ea54 dnspython3-1.11.0.tar.gz.asc
|
||||
|
Loading…
Reference in New Issue
Block a user