Use %py3_build, %py3_install macros

This commit is contained in:
Garrett Holmstrom 2017-04-17 16:15:46 -07:00
parent e3d962ecb4
commit 724a45640a

View File

@ -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