Use %py_build and %py_install macros

The macros where introduced recently so use them in all .spec.j2 templates.

Change-Id: I0cb651405f7ac59ab25e3bdbcd0a1ca9a5fdeebf
This commit is contained in:
Thomas Bechtold
2016-07-11 23:07:31 +02:00
parent 815ad31a6f
commit 00f38aac7b
27 changed files with 54 additions and 54 deletions

View File

@@ -33,14 +33,14 @@ Documentation for python module name to package name map library.
%setup -q -n %{sname}-%{version}
%build
%{__python2} setup.py build
%{py2_build}
# generate html docs
%{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%{__python2} setup.py install --prefix=%{_prefix} --skip-build --root %{buildroot}
%{py2_install}
%check
%{__python2} setup.py test