meson change python build commands

Signed-off-by: basebuilder_pel7ppc64bebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64bebuilder0 2019-04-08 10:18:37 +02:00
parent 198df8f113
commit 1a57bbd67c
1 changed files with 2 additions and 2 deletions

View File

@ -33,10 +33,10 @@ find -type f -name '*.py' -executable -exec sed -i -e '1s|.*|#!%{__python3}|' {}
sed -i -e "/^%%__meson /s| .*$| %{_bindir}/%{name}|" data/macros.%{name}

%build
%py3_build
%{__python3} setup.py build

%install
%py3_install
%{__python3} setup.py install --root %{buildroot} --optimize 2
install -Dpm0644 data/macros.%{name} %{buildroot}/usr/lib/rpm/macros.d/macros.%{name}

%files