Use %py3_build, %py3_install macros
This commit is contained in:
parent
e3d962ecb4
commit
724a45640a
@ -159,11 +159,11 @@ cp -p %{SOURCE2} README.fedora
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python3} setup.py build
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --init-system=systemd
|
%py3_install -- --init-system=systemd
|
||||||
|
|
||||||
# Don't ship the tests
|
# Don't ship the tests
|
||||||
rm -r $RPM_BUILD_ROOT%{python3_sitelib}/tests
|
rm -r $RPM_BUILD_ROOT%{python3_sitelib}/tests
|
||||||
|
Loading…
Reference in New Issue
Block a user