Forráskód Böngészése

python-dns-1.16.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12103 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 5 éve
szülő
commit
94e0919f49
1 módosított fájl, 44 hozzáadás és 17 törlés
  1. 44 17
      p/python-dns/python-dns-vl.spec

+ 44 - 17
p/python-dns/python-dns-vl.spec

@@ -1,6 +1,6 @@
 Name:           python-dns
 Name:           python-dns
-Version:        1.10.0
-Release:        3%{?_dist_release}
+Version:        1.16.0
+Release:        1%{?_dist_release}
 Summary:        DNS toolkit for Python
 Summary:        DNS toolkit for Python
 Summary(ja):    Python 用 DNS ツールキット
 Summary(ja):    Python 用 DNS ツールキット
 
 
@@ -14,6 +14,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildArch:      noarch
 BuildArch:      noarch
 BuildRequires: python-setuptools
 BuildRequires: python-setuptools
 BuildRequires: python-devel
 BuildRequires: python-devel
+BuildRequires: python-rpm-macros
+BuildRequires: python3-setuptools
+BuildRequires: python3-devel
+BuildRequires: python3-rpm-macros
+
+BuildRequires:  python-crypto
 
 
 Vendor: Project Vine
 Vendor: Project Vine
 Distribution: Vine Linux
 Distribution: Vine Linux
@@ -28,6 +34,21 @@ level classes perform queries for data of a given name, type, and
 class, and return an answer set. The low level classes allow direct
 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.
 
 
+%package -n python3-dns
+Summary:        DNS toolkit for Python 3
+%{?python_provide:%python_provide python3-dns}
+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
+updates. It supports TSIG authenticated messages and EDNS0.
+
+dnspython3 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.
+
 %prep
 %prep
 %setup0 -q -n dnspython-%{version}
 %setup0 -q -n dnspython-%{version}
 
 
@@ -36,34 +57,40 @@ manipulation of DNS zones, messages, names, and records.
 find examples -type f | xargs chmod a-x
 find examples -type f | xargs chmod a-x
 
 
 %build
 %build
-CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
+%py_build
+%py3_build
 
 
 %install
 %install
 rm -rf %{buildroot}
 rm -rf %{buildroot}
-%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
-
-%check
-pushd tests
-# skip one test because it queries the network
-for py in *.py
-do
-	if [ $py != resolver.py ]
-	then
-		PYTHONPATH=%{buildroot}%{python_sitelib} %{__python} $py
-	fi
-done
+%py_install
+%py3_install
+
+#%check
+#%{__python} setup.py test
+#%{__python3} setup.py test
 
 
 %clean
 %clean
 rm -rf %{buildroot}
 rm -rf %{buildroot}
 
 
 %files
 %files
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
-%doc ChangeLog LICENSE README examples
-
+%license LICENSE
+%doc README* examples
 %{python_sitelib}/*egg-info
 %{python_sitelib}/*egg-info
 %{python_sitelib}/dns
 %{python_sitelib}/dns
 
 
+%files -n python3-dns
+%defattr(-,root,root,-)
+%license LICENSE
+%doc README* examples
+%{python3_sitelib}/*egg-info
+%{python3_sitelib}/dns
+
 %changelog
 %changelog
+* Tue May 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.0-1
+- new upstream release.
+- added python3 support.
+
 * Sun Jan 12 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10.0-3
 * Sun Jan 12 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10.0-3
 - rebuild with VineSeed environment
 - rebuild with VineSeed environment