- Do not use old compat macros for python directories
OBS-URL: https://build.opensuse.org/package/show/Java:packages/antlr?expand=0&rev=55
This commit is contained in:
parent
0cc4cfa2fd
commit
88e4bc0106
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 20 15:27:49 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Do not use old compat macros for python directories
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 15 05:54:51 UTC 2018 - fstrba@suse.com
|
||||
|
||||
|
10
antlr.spec
10
antlr.spec
@ -147,11 +147,11 @@ install -m 0755 scripts/%{name}-config %{buildroot}%{_bindir}/
|
||||
|
||||
### python runtime ###
|
||||
%if %{with python2}
|
||||
install -d -m 0755 %{buildroot}%{py_sitedir}/%{name}
|
||||
cp -a lib/python/antlr/* %{buildroot}%{py_sitedir}/%{name}
|
||||
install -d -m 0755 %{buildroot}%{python_sitearch}/%{name}
|
||||
cp -a lib/python/antlr/* %{buildroot}%{python_sitearch}/%{name}
|
||||
# compat symlink
|
||||
ln -s -f %{py_sitedir}/%{name}/*.py %{buildroot}%{_datadir}/%{name}-%{version}/
|
||||
ln -s -f %{py_sitedir}/%{name}/*.pyc %{buildroot}%{_datadir}/%{name}-%{version}/
|
||||
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 ###
|
||||
@ -189,7 +189,7 @@ find doc -type f | xargs chmod 0644
|
||||
%dir %{_datadir}/%{name}-%{version}
|
||||
%{_datadir}/%{name}-%{version}/*py
|
||||
%{_datadir}/%{name}-%{version}/*pyc
|
||||
%{py_sitedir}/%{name}
|
||||
%{python_sitearch}/%{name}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user