From 98a5e3700f94186ebab71b96aba468c7a48f6a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 19 Aug 2017 09:43:35 -0400 Subject: [PATCH] Python 2 binary package renamed to python2-pyusb --- pyusb.spec | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/pyusb.spec b/pyusb.spec index b182363..d3ab2d7 100644 --- a/pyusb.spec +++ b/pyusb.spec @@ -7,7 +7,7 @@ Name: pyusb Version: 1.0.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Python bindings for libusb Group: Development/Languages License: BSD @@ -20,10 +20,21 @@ BuildRequires: python3-devel BuildRequires: libusb-devel BuildArch: noarch -%description -PyUSB provides easy USB access to python. The module contains classes and +%global _description\ +PyUSB provides easy USB access to python. The module contains classes and\ methods to support most USB operations. +%description %_description + +%package -n python2-pyusb +Summary: %summary +%{?python_provide:%python_provide python2-pyusb} +# Remove before F30 +Provides: pyusb%{?_isa} = %{version}-%{release} +Obsoletes: pyusb < %{version}-%{release} + +%description -n python2-pyusb %_description + %if 0%{?with_python3} %package -n python3-pyusb Summary: Python 3 bindings for libusb @@ -65,7 +76,7 @@ pushd %{py3dir} %{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -%files +%files -n python2-pyusb %doc README.rst LICENSE %{python_sitelib}/* @@ -76,6 +87,10 @@ pushd %{py3dir} %endif # with_python3 %changelog +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.0.0-6 +- Python 2 binary package renamed to python2-pyusb + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild