Fix macros to reflect changes in packaging guide
This commit is contained in:
parent
c4b8edbcc1
commit
3b9aab5db2
@ -52,7 +52,7 @@ cp -a . %{py3dir}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
%{__python2} setup.py build
|
||||||
sphinx-build docs/source docs/html
|
sphinx-build docs/source docs/html
|
||||||
rm -f docs/html/.buildinfo
|
rm -f docs/html/.buildinfo
|
||||||
rm -rf docs/html/.doctrees
|
rm -rf docs/html/.doctrees
|
||||||
@ -66,7 +66,7 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python} setup.py test
|
%{__python2} setup.py test
|
||||||
|
|
||||||
%if 0%{with_python3}
|
%if 0%{with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
@ -75,7 +75,7 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
@ -85,8 +85,8 @@ popd
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%doc docs/html/ README.txt LICENSE.txt
|
%doc docs/html/ README.txt LICENSE.txt
|
||||||
%{python_sitelib}/*.egg-info/
|
%{python2_sitelib}/*.egg-info/
|
||||||
%{python_sitelib}/whoosh
|
%{python2_sitelib}/whoosh
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n python3-whoosh
|
%files -n python3-whoosh
|
||||||
|
Loading…
Reference in New Issue
Block a user