Fix macros to reflect changes in packaging guide

This commit is contained in:
Robert Kuska 2014-03-03 16:16:29 +01:00
parent c4b8edbcc1
commit 3b9aab5db2

View File

@ -52,7 +52,7 @@ cp -a . %{py3dir}
%endif
%build
%{__python} setup.py build
%{__python2} setup.py build
sphinx-build docs/source docs/html
rm -f docs/html/.buildinfo
rm -rf docs/html/.doctrees
@ -66,7 +66,7 @@ popd
%endif
%check
%{__python} setup.py test
%{__python2} setup.py test
%if 0%{with_python3}
pushd %{py3dir}
@ -75,7 +75,7 @@ popd
%endif
%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}
pushd %{py3dir}
@ -85,8 +85,8 @@ popd
%files
%doc docs/html/ README.txt LICENSE.txt
%{python_sitelib}/*.egg-info/
%{python_sitelib}/whoosh
%{python2_sitelib}/*.egg-info/
%{python2_sitelib}/whoosh
%if 0%{?with_python3}
%files -n python3-whoosh