- 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/package/show/Java:packages/antlr?expand=0&rev=58
This commit is contained in:
parent
ddb6390687
commit
a68836f895
@ -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
|
Fri Jul 20 15:27:49 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
10
antlr.spec
10
antlr.spec
@ -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
|
This package provides the C++ runtime (libantlr.a) and a headers files
|
||||||
of antlr
|
of antlr
|
||||||
|
|
||||||
%package -n python-%{name}
|
%package -n python2-%{name}
|
||||||
Summary: ANother Tool for Language Recognition (python runtime)
|
Summary: ANother Tool for Language Recognition (python runtime)
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
Requires: antlr
|
Requires: antlr
|
||||||
|
Provides: python-%{name}
|
||||||
|
|
||||||
%description -n python-%{name}
|
%description -n python2-%{name}
|
||||||
Python support for generating your Lexers, Parsers and TreeParsers in Python.
|
Python support for generating your Lexers, Parsers and TreeParsers in Python.
|
||||||
This feature extends the benefits of ANTLR's predicated-LL(k) parsing
|
This feature extends the benefits of ANTLR's predicated-LL(k) parsing
|
||||||
technology to the Python language and platform.
|
technology to the Python language and platform.
|
||||||
@ -149,9 +150,6 @@ install -m 0755 scripts/%{name}-config %{buildroot}%{_bindir}/
|
|||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
install -d -m 0755 %{buildroot}%{python_sitearch}/%{name}
|
install -d -m 0755 %{buildroot}%{python_sitearch}/%{name}
|
||||||
cp -a lib/python/antlr/* %{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
|
%endif
|
||||||
|
|
||||||
### cpp runtime ###
|
### cpp runtime ###
|
||||||
@ -186,7 +184,7 @@ find doc -type f | xargs chmod 0644
|
|||||||
%{_includedir}/%{name}
|
%{_includedir}/%{name}
|
||||||
|
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
%files -n python-%{name}
|
%files -n python2-%{name}
|
||||||
%dir %{_datadir}/%{name}-%{version}
|
%dir %{_datadir}/%{name}-%{version}
|
||||||
%{_datadir}/%{name}-%{version}/*py
|
%{_datadir}/%{name}-%{version}/*py
|
||||||
%{_datadir}/%{name}-%{version}/*pyc
|
%{_datadir}/%{name}-%{version}/*pyc
|
||||||
|
Loading…
Reference in New Issue
Block a user