Make utils depend on python module

This commit is contained in:
Petr Menšík 2017-06-29 20:21:41 +02:00
parent 3c983e38ec
commit b0ccd9af19

View File

@ -25,7 +25,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind
License: MPLv2.0
Version: 9.11.1
Release: 1%{?PATCHVER:.%{PATCHVER}}%{?PREVER:.%{PREVER}}%{?dist}
Release: 2%{?PATCHVER:.%{PATCHVER}}%{?PREVER:.%{PREVER}}%{?dist}
Epoch: 32
Url: http://www.isc.org/products/BIND/
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -98,8 +98,6 @@ Requires(preun): systemd
Requires(postun): systemd
Requires: coreutils
Requires(pre): shadow-utils
Requires: python3-ply
BuildRequires: python3-ply
Requires: bind-libs%{?_isa} = %{epoch}:%{version}-%{release}
Obsoletes: bind-config < 30:9.3.2-34.fc6
Provides: bind-config = 30:9.3.2-34.fc6
@ -112,12 +110,13 @@ BuildRequires: libidn-devel, libxml2-devel, GeoIP-devel
BuildRequires: systemd
# needed for %%{__python3} macro
BuildRequires: python3-devel
BuildRequires: python3-ply
%if %{SDB}
BuildRequires: openldap-devel, postgresql-devel, sqlite-devel, mysql-devel
BuildRequires: libdb-devel
%endif
%if %{test}
BuildRequires: net-tools
BuildRequires: net-tools perl(Net::DNS) perl(Net::DNS::Nameserver)
%endif
%if %{GSSTSIG}
BuildRequires: krb5-devel
@ -229,6 +228,7 @@ Contains license of the BIND DNS suite.
Summary: Utilities for querying DNS name servers
Group: Applications/System
Requires: bind-libs%{?_isa} = %{epoch}:%{version}-%{release}
Requires: python3-bind = %{epoch}:%{version}-%{release}
%description utils
Bind-utils contains a collection of utilities for querying DNS (Domain
@ -295,8 +295,10 @@ Based on the code from Jan "Yenya" Kasprzak <kas@fi.muni.cz>
Summary: A module allowing rndc commands to be sent from Python programs
Group: Applications/System
Requires: bind-license = %{epoch}:%{version}-%{release}
Requires: python3
Requires: python3 python3-ply %{py3_dist ply}
BuildArch: noarch
%{?python_provide:%python_provide python3-bind}
%{?python_provide:%python_provide python3-isc}
%description -n python3-bind
This package provides a module which allows commands to be sent to rndc directly from Python programs.
@ -1022,6 +1024,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{python3_sitelib}/isc/__pycache__/*py*
%changelog
* Thu Jun 29 2017 Petr Menšík <pemensik@redhat.com> - 32:9.11.1-2.P1
- dnssec-checkds and dnssec-coverage requires python module (#1466183)
* Thu Jun 15 2017 Petr Menšík <pemensik@redhat.com> - 32:9.11.1-1.P1
- Update to 9.11.1-P1