From 0d2f9b87312cf9da8abf2869074308947ba464c9 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sun, 23 Aug 2015 12:19:33 +0200 Subject: [PATCH] Rename liblouis-python3 to python3-louis As per latest Fedora packaging guidelines, Python 3 modules must all have python3- prefix, followed by the module name. https://fedoraproject.org/wiki/Packaging:Python --- liblouis.spec | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/liblouis.spec b/liblouis.spec index c35e1fe..f42cce1 100644 --- a/liblouis.spec +++ b/liblouis.spec @@ -6,7 +6,7 @@ Name: liblouis Version: 2.6.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Braille translation and back-translation library Group: System Environment/Libraries @@ -61,7 +61,7 @@ developing applications that use %{name}. Summary: Command-line utilities to test %{name} Group: Applications/Text Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: %{name}-python = %{version}-%{release} +Requires: python-louis = %{version}-%{release} License: GPLv3+ %description utils @@ -69,24 +69,28 @@ Six test programs are provided as part of the liblouis package. They are intended for testing liblouis and for debugging tables. None of them is suitable for braille transcription. -%package python +%package -n python-louis Summary: Python 2 language bindings for %{name} Group: Development/Languages BuildArch: noarch Requires: %{name} = %{version}-%{release} +Obsoletes: %{name}-python < 2.6.2-3 +Provides: %{name}-python = %{version}-%{release} -%description python +%description -n python-louis This package provides Python 2 language bindings for %{name}. %if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7) -%package python3 +%package -n python3-louis Summary: Python 3 language bindings for %{name} Group: Development/Languages BuildArch: noarch Requires: %{name} = %{version}-%{release} +Obsoletes: %{name}-python3 < 2.6.2-3 +Provides: %{name}-python3 = %{version}-%{release} -%description python3 +%description -n python3-louis This package provides Python 3 language bindings for %{name}. %endif @@ -179,13 +183,13 @@ fi %{_bindir}/lou_* %{_mandir}/man1/lou_*.1* -%files python +%files -n python-louis %defattr(-,root,root,-) %doc python/README %{python_sitelib}/louis/ %if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7) -%files python3 +%files -n python3-louis %defattr(-,root,root,-) %{python3_sitelib}/louis/ %endif @@ -195,6 +199,9 @@ fi %changelog +* Sun Aug 23 2015 Kalev Lember - 2.6.2-3 +- Rename liblouis-python3 to python3-louis, as per latest packaging guidelines + * Wed Jun 17 2015 Fedora Release Engineering - 2.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild