Accepting request 635760 from Java:packages

- Do not create compat symlink for python stuff as it was not working
  before anyway
- Rename python package to python2-antlr (provide old symbol)

OBS-URL: https://build.opensuse.org/request/show/635760
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/antlr?expand=0&rev=44
This commit is contained in:
Yuchen Lin 2018-09-17 12:25:51 +00:00 committed by Git OBS Bridge
commit 7aee767f3f
3 changed files with 13 additions and 10 deletions

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Sep 13 08:55:01 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Do not create compat symlink for python stuff as it was not working
before anyway
- Rename python package to python2-antlr (provide old symbol)
-------------------------------------------------------------------
Fri Jul 20 15:27:49 UTC 2018 - tchvatal@suse.com

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -93,12 +93,13 @@ or Java actions (you can use PCCTS 1.xx to generate C-based parsers).
This package provides the C++ runtime (libantlr.a) and a headers files
of antlr
%package -n python-%{name}
%package -n python2-%{name}
Summary: ANother Tool for Language Recognition (python runtime)
Group: Development/Tools/Other
Requires: antlr
Provides: python-%{name}
%description -n python-%{name}
%description -n python2-%{name}
Python support for generating your Lexers, Parsers and TreeParsers in Python.
This feature extends the benefits of ANTLR's predicated-LL(k) parsing
technology to the Python language and platform.
@ -149,9 +150,6 @@ install -m 0755 scripts/%{name}-config %{buildroot}%{_bindir}/
%if %{with python2}
install -d -m 0755 %{buildroot}%{python_sitearch}/%{name}
cp -a lib/python/antlr/* %{buildroot}%{python_sitearch}/%{name}
# compat symlink
ln -s -f %{python_sitearch}/%{name}/*.py %{buildroot}%{_datadir}/%{name}-%{version}/
ln -s -f %{python_sitearch}/%{name}/*.pyc %{buildroot}%{_datadir}/%{name}-%{version}/
%endif
### cpp runtime ###
@ -186,10 +184,8 @@ find doc -type f | xargs chmod 0644
%{_includedir}/%{name}
%if %{with python2}
%files -n python-%{name}
%files -n python2-%{name}
%dir %{_datadir}/%{name}-%{version}
%{_datadir}/%{name}-%{version}/*py
%{_datadir}/%{name}-%{version}/*pyc
%{python_sitearch}/%{name}
%endif