From be10c570adf03d9246cc0cf0e07f53cf402d90ca Mon Sep 17 00:00:00 2001 From: Avram Lubkin Date: Sat, 30 Jan 2016 16:06:24 +0800 Subject: [PATCH] Add epel7 package - Using python3_pkgversion to support python34 package in el7 - Build Python3 package for el7+ --- python-dns.spec | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/python-dns.spec b/python-dns.spec index 017ac35..50847c3 100644 --- a/python-dns.spec +++ b/python-dns.spec @@ -13,7 +13,7 @@ %{!?python26_sitelib: %global python26_sitelib %(%{__python26} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif -%if 0%{?fedora} > 12 +%if 0%{?fedora} > 12 || 0%{?epel} > 6 %global with_python3 1 %undefine py3dir %global py3dir %{_builddir}/dnspython/dnspython3-%{version} @@ -22,7 +22,7 @@ Name: python-dns Version: 1.12.0GIT465785f -Release: 2%{?dist} +Release: 3%{?dist} Summary: DNS toolkit for Python Group: Development/Languages @@ -59,9 +59,9 @@ BuildRequires: python26-crypto %endif %if 0%{?with_python3} -BuildRequires: python3-devel +BuildRequires: python%{python3_pkgversion}-devel # for tests -BuildRequires: python3-crypto +BuildRequires: python%{python3_pkgversion}-crypto %endif # for DNSSEC support @@ -97,14 +97,14 @@ manipulation of DNS zones, messages, names, and records. %endif %if 0%{?with_python3} -%package -n python3-dns +%package -n python%{python3_pkgversion}-dns Summary: DNS toolkit for Python 3 Group: Development/Languages # for DNSSEC support -Requires: python3-crypto +Requires: python%{python3_pkgversion}-crypto -%description -n python3-dns +%description -n python%{python3_pkgversion}-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. @@ -254,7 +254,7 @@ rm -rf %{buildroot} %endif %if 0%{?with_python3} -%files -n python3-dns +%files -n python%{python3_pkgversion}-dns %defattr(-,root,root,-) %doc dnspython3-%{version}/{ChangeLog,LICENSE,README,examples} @@ -263,6 +263,10 @@ rm -rf %{buildroot} %endif %changelog +* Fri Jan 22 2016 Avram Lubkin - 1.12.0GIT465785f-3 +- Using python3_pkgversion to support python34 package in el7 +- Build Python3 package for el7+ + * Tue Nov 10 2015 Fedora Release Engineering - 1.12.0GIT465785f-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5