Browse Source

meson change python build commands

Signed-off-by: basebuilder_pel7ppc64bebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64bebuilder0 6 years ago
parent
commit
1a57bbd67c
  1. 4
      SPECS/meson.spec

4
SPECS/meson.spec

@ -33,10 +33,10 @@ find -type f -name '*.py' -executable -exec sed -i -e '1s|.*|#!%{__python3}|' {} @@ -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

Loading…
Cancel
Save