Proper python2 subpackage name
Signed-off-by: Mikolaj Izdebski <mizdebsk@redhat.com>
This commit is contained in:
parent
959218acb7
commit
58af9126b9
23
antlr.spec
23
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 <mhroncok@redhat.com> - 0:2.7.7-48
|
||||
- Proper python2 subpackage name
|
||||
|
||||
* Thu Feb 16 2017 Michael Simacek <msimacek@redhat.com> - 0:2.7.7-47
|
||||
- Add conditional for python
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user