Enable python dependency generator

References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-01-11 13:38:59 +01:00
parent 4189e41d45
commit 73b575ea0c
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -1,3 +1,4 @@
%{?python_enable_dependency_generator}
%global py2_build_dir %{_builddir}/%{name}-%{version}-%{release}-python2
%if 0%{?rhel} > 7 || 0%{?fedora} > 28
@ -8,9 +9,8 @@
Name: pywbem
Version: 0.12.6
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Python WBEM client interface and related utilities
Group: Development/Libraries
License: LGPLv2
URL: https://github.com/pywbem/pywbem
Source0: https://github.com/pywbem/pywbem/archive/v%{version}/%{name}-%{version}.tar.gz
@ -53,10 +53,8 @@ Obsoletes: pywbem < %{version}-%{release}
%endif
%package -n python3-pywbem
Group: Development/Libraries
Summary: Python3 WBEM Client and Provider Interface
BuildArch: noarch
Requires: python3-PyYAML python3-six python3-ply python3-mock python3-pbr
%description -n python3-pywbem
A WBEM client allows issuing operations to a WBEM server, using the CIM
@ -67,7 +65,6 @@ for more information about WBEM.
%if %{with python2}
%package twisted
Group: Development/Libraries
Summary: WBEM client bindings for Twisted Python
Requires: python2-twisted
Requires: %{name} = %{version}-%{release}
@ -136,6 +133,9 @@ rm -rf %{buildroot}/usr/bin/*.bat
%doc README.rst
%changelog
* Fri Jan 11 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.12.6-2
- Enable python dependency generator
* Wed Dec 26 2018 Gris Ge <fge@redhat.com> - 0.12.6-1
- Upgrade to 0.12.6