Accepting request 1143775 from home:dimstar:Factory

- Use python3-base to build instead of python-base (aka python2):
  waf uses a /usr/bin/env python shebang, but the script is fully
  compatible with python3. Call it explicitly as python3 waf.

OBS-URL: https://build.opensuse.org/request/show/1143775
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/non-ntk?expand=0&rev=22
This commit is contained in:
Edgar Aichinger 2024-02-03 10:12:08 +00:00 committed by Git OBS Bridge
parent 1d3d96048f
commit a2d945fc8a
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Feb 3 10:08:33 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use python3-base to build instead of python-base (aka python2):
waf uses a /usr/bin/env python shebang, but the script is fully
compatible with python3. Call it explicitly as python3 waf.
-------------------------------------------------------------------
Thu Aug 3 13:06:03 UTC 2023 - Edgar Aichinger <edogawa@aon.at>

View File

@ -1,7 +1,7 @@
#
# spec file for package non-ntk
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -39,8 +39,8 @@ BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(xft)
# needed by ./waf
BuildRequires: python-base
# ./waf has a env python shebang, but is also compatible with python3
BuildRequires: python3-base
BuildRequires: gcc-c++
%if 0%{?suse_version}
BuildRequires: update-desktop-files
@ -84,12 +84,12 @@ sed -i -e "s|append_value('C\(.*\)FLAGS', CFLAGS|append_value('C\1FLAGS','%{optf
wscript
%build
LDFLAGS="%{?__global_ldflags}" ./waf -v configure --prefix=%{_prefix} \
LDFLAGS="%{?__global_ldflags}" python3 ./waf -v configure --prefix=%{_prefix} \
--libdir=%{_libdir} --enable-gl
./waf -v %{?_smp_mflags}
python3 ./waf -v %{?_smp_mflags}
%install
./waf -v install --destdir=%{buildroot}
python3 ./waf -v install --destdir=%{buildroot}
install -d -m 0755 %{buildroot}%{_datadir}/applications
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/ntk-fluid.desktop
rm %{buildroot}%{_libdir}/libntk*.a*