Add epel7 package

- Using python3_pkgversion to support python34 package in el7
- Build Python3 package for el7+
This commit is contained in:
Avram Lubkin 2016-01-30 16:06:24 +08:00
parent 25cbe54498
commit be10c570ad

View File

@ -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 <aviso@fedoraproject.org> - 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 <rel-eng@lists.fedoraproject.org> - 1.12.0GIT465785f-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5