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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user