From 292f3030702b9cbd6c50a4d574ed016908aef45d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 19 Aug 2017 19:08:59 -0400 Subject: [PATCH] Python 3 binary package renamed to python3-libreport --- libreport.spec | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/libreport.spec b/libreport.spec index 2ddb6d6..569eaea 100644 --- a/libreport.spec +++ b/libreport.spec @@ -6,7 +6,7 @@ Summary: Generic library for reporting various problems Name: libreport Version: 2.9.1 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv2+ URL: https://abrt.readthedocs.org/ Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz @@ -92,10 +92,6 @@ Requires: libreport-web = %{version}-%{release} Development headers for libreport-web %package -n python2-libreport -%{?python_provide:%python_provide python2-libreport} -# Remove before F30 -Provides: %{name}-python%{?_isa} = %{version}-%{release} -Obsoletes: %{name}-python < %{version}-%{release} Summary: Python bindings for report-libs # Is group correct here? - Requires: libreport = %{version}-%{release} @@ -107,11 +103,16 @@ Obsoletes: report < 0:0.23-1 %if 0%{?rhel} == 6 Requires: libreport-plugin-rhtsupport = %{version}-%{release} %endif +%{?python_provide:%python_provide python2-libreport} +# Remove before F30 +Provides: %{name}-python = %{version}-%{release} +Provides: %{name}-python%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python < %{version}-%{release} %description -n python2-libreport Python bindings for report-libs. -%package python3 +%package -n python3-libreport Summary: Python 3 bindings for report-libs %if 0%{?_module_build} # This is required for F26 Boltron (the modular release) @@ -125,8 +126,13 @@ Requires: libreport >= %{version}-%{distfreerelease} Requires: libreport = %{version}-%{release} %endif Requires: dnf +%{?python_provide:%python_provide python3-libreport} +# Remove before F30 +Provides: %{name}-python3 = %{version}-%{release} +Provides: %{name}-python3%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python3 < %{version}-%{release} -%description python3 +%description -n python3-libreport Python 3 bindings for report-libs. %package cli @@ -512,7 +518,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{python_sitearch}/report/* %{python_sitearch}/reportclient/* -%files python3 +%files -n python3-libreport %{python3_sitearch}/report/* %{python3_sitearch}/reportclient/* @@ -737,6 +743,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.9.1-6 +- Python 3 binary package renamed to python3-libreport +- Missing Provides wihtout %%_isa added in python 2 binary package + * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.9.1-5 - Python 2 binary package renamed to python2-libreport See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3