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