From a99587b61d95ac70a2a4759d5bac0a4977d767fe Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jul 12 2017 11:42:00 +0000 Subject: Proper python2 subpackage name Signed-off-by: Mikolaj Izdebski --- diff --git a/antlr.spec b/antlr.spec index f0a9a29..87eaa2d 100644 --- a/antlr.spec +++ b/antlr.spec @@ -6,7 +6,7 @@ Summary: ANother Tool for Language Recognition Name: antlr Version: 2.7.7 -Release: 47%{?dist} +Release: 48%{?dist} Epoch: 0 License: Public Domain URL: http://www.antlr2.org/ @@ -33,8 +33,8 @@ BuildRequires: javapackages-local BuildRequires: doxygen graphviz %if %{with python} # Do not support Python3 -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python2-devel +BuildRequires: python2-setuptools %endif %description @@ -87,11 +87,17 @@ This package contains the documentation for the C++ bindings for parsers generated by ANTLR2. %if %{with python} -%package python -Summary: Python runtime support for ANTLR-generated parsers +%package -n python2-%{name} +Summary: Python 2 untime support for ANTLR-generated parsers +%{?python_provide:%python_provide python2-%{name}} + +# This can be removed in Fedora 30 +Provides: %{name}-python == %{epoch}:%{version}-%{release} +Obsoletes: %{name}-python < 2.7.7-48 + BuildArch: noarch -%description python +%description -n python2-%{name} Python runtime support for ANTLR-generated parsers %endif @@ -183,13 +189,16 @@ cd ../.. %license LICENSE.txt %if %{with python} -%files python +%files -n python2-%{name} %license LICENSE.txt %{python2_sitelib}/antlr/* %{python2_sitelib}/antlr-* %endif %changelog +* Wed Jul 12 2017 Miro Hrončok - 0:2.7.7-48 +- Proper python2 subpackage name + * Thu Feb 16 2017 Michael Simacek - 0:2.7.7-47 - Add conditional for python