Define python_sitelib on RHEL 7
This commit is contained in:
parent
4dfb57602c
commit
fd4edda8f6
@ -9,9 +9,11 @@
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
%global python_prefix python3
|
||||
%global python_interpreter %{?__python3}%{!?__python3:dummy}
|
||||
%global python_sitelib %{python3_sitelib}
|
||||
%else
|
||||
%global python_prefix python
|
||||
%global python_interpreter %{?__python2}%{!?__python2:dummy}
|
||||
%global python_sitelib /usr/lib/python2.7/site-packages
|
||||
%global rpmmacrodir /etc/rpm
|
||||
%endif
|
||||
|
||||
@ -140,9 +142,9 @@ sed -i '/${mandir}/d' install
|
||||
%install
|
||||
./install
|
||||
|
||||
rm -rf %{buildroot}%{python3_sitelib}/javapackages-*.egg-info
|
||||
find %{buildroot}%{python3_sitelib}/javapackages -name __pycache__ | xargs rm -rf
|
||||
mv %{buildroot}%{python3_sitelib}/javapackages %{buildroot}%{_javadir}-utils/
|
||||
rm -rf %{buildroot}%{python_sitelib}/javapackages-*.egg-info
|
||||
find %{buildroot}%{python_sitelib}/javapackages -name __pycache__ | xargs rm -rf
|
||||
mv %{buildroot}%{python_sitelib}/javapackages %{buildroot}%{_javadir}-utils/
|
||||
|
||||
sed -i 's|mvn_build.py|& --xmvn-javadoc|' $(find %{buildroot} -name 'macros*.fjava')
|
||||
sed -e 's/.[17]$/&*/' -i files-*
|
||||
|
Loading…
Reference in New Issue
Block a user