From f3deed80609a5de77bbfcbc35a198e6f11d8f380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=8Cestm=C3=ADr=20Kalina?= Date: Wed, 14 Oct 2020 15:09:58 +0200 Subject: [PATCH] Remove Python 2 relevant chunks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves: #1885256 Signed-off-by: Čestmír Kalina --- ddiskit.spec | 39 +++++---------------------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/ddiskit.spec b/ddiskit.spec index 8216994..2b6c46e 100644 --- a/ddiskit.spec +++ b/ddiskit.spec @@ -11,7 +11,7 @@ Version: 3.6 %forgemeta -i -Release: 9%{?dist} +Release: 10%{?dist} Summary: Tool for Red Hat Enterprise Linux Driver Update Disk creation License: GPLv3 @@ -19,28 +19,13 @@ URL: %{forgeurl} Source0: %{forgesource} BuildArch: noarch -%if 0%{?fedora} >= 25 -%if 0%{?fedora} >= 30 BuildRequires: python3-devel BuildRequires: python3-setuptools -%else -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%endif -%else -BuildRequires: python2-devel -BuildRequires: python-setuptools -%endif Requires: rpm createrepo genisoimage -%if 0%{?fedora} >= 23 Suggests: quilt git Recommends: kernel-devel redhat-rpm-config rpm-build Recommends: mock -%else -Requires: kernel-devel redhat-rpm-config rpm-build -Requires: mock -%endif %description -n %{name} Ddiskit is a little framework for simplifying creation of proper @@ -51,37 +36,19 @@ kernel modules. %forgesetup %build -%if 0%{?fedora} >= 30 -sed -i "s|/usr/bin/python$|/usr/bin/python3|g" bin/ddiskit -sed -i "s|/usr/bin/python$|/usr/bin/python3|g" setup.py %py3_build -%else -%py2_build -%endif %install -%if 0%{?fedora} >= 30 %py3_install -%else -%py2_install -%endif find %{buildroot} -size 0 -delete %check -%if 0%{?fedora} >= 30 %{__python3} setup.py test -%else -%{__python2} setup.py test -%endif %files -n %{name} %doc README %license COPYING -%if 0%{?fedora} >= 30 %{python3_sitelib}/* -%else -%{python2_sitelib}/* -%endif %{_bindir}/ddiskit %{_mandir}/man1/ddiskit.1* %{_datadir}/bash-completion/completions/ddiskit @@ -100,6 +67,10 @@ find %{buildroot} -size 0 -delete %config(noreplace) /etc/ddiskit.config %changelog +* Wed Oct 14 2020 Cestmir Kalina - 3.6-10 +- Remove Python 2 relevant chunks +- Fixes #1885256 + * Mon Jul 27 2020 Fedora Release Engineering - Packaging variables read or set by %forgemeta - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild