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
|
Summary: ANother Tool for Language Recognition
|
||||||
Name: antlr
|
Name: antlr
|
||||||
Version: 2.7.7
|
Version: 2.7.7
|
||||||
Release: 47%{?dist}
|
Release: 48%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://www.antlr2.org/
|
URL: http://www.antlr2.org/
|
||||||
@ -33,8 +33,8 @@ BuildRequires: javapackages-local
|
|||||||
BuildRequires: doxygen graphviz
|
BuildRequires: doxygen graphviz
|
||||||
%if %{with python}
|
%if %{with python}
|
||||||
# Do not support Python3
|
# Do not support Python3
|
||||||
BuildRequires: python-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python2-setuptools
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -87,11 +87,17 @@ This package contains the documentation for the C++ bindings for parsers
|
|||||||
generated by ANTLR2.
|
generated by ANTLR2.
|
||||||
|
|
||||||
%if %{with python}
|
%if %{with python}
|
||||||
%package python
|
%package -n python2-%{name}
|
||||||
Summary: Python runtime support for ANTLR-generated parsers
|
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
|
BuildArch: noarch
|
||||||
|
|
||||||
%description python
|
%description -n python2-%{name}
|
||||||
Python runtime support for ANTLR-generated parsers
|
Python runtime support for ANTLR-generated parsers
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -183,13 +189,16 @@ cd ../..
|
|||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
%if %{with python}
|
%if %{with python}
|
||||||
%files python
|
%files -n python2-%{name}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%{python2_sitelib}/antlr/*
|
%{python2_sitelib}/antlr/*
|
||||||
%{python2_sitelib}/antlr-*
|
%{python2_sitelib}/antlr-*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Feb 16 2017 Michael Simacek <msimacek@redhat.com> - 0:2.7.7-47
|
||||||
- Add conditional for python
|
- Add conditional for python
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user