From 75ffe45bbbcee5bca52816f38c5204d3058d1f34 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Thu, 2 Feb 2023 18:20:07 +0900 Subject: [PATCH] Upgrade to 4.4.0 version Change-Id: Icb91bc420573984d00b1412ae2395932f8f3191b Signed-off-by: biao716.wang --- packaging/scons.spec | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/packaging/scons.spec b/packaging/scons.spec index aa0070bd..0626af20 100644 --- a/packaging/scons.spec +++ b/packaging/scons.spec @@ -18,13 +18,14 @@ Name: scons Summary: Replacement for Make License: MIT Group: Development/Tools/Building -Version: 2.2.0 +Version: 4.4.0 Release: 0 Source0: http://freefr.dl.sourceforge.net/project/scons/scons/%{version}/%{name}-%{version}.tar.gz Source1001: scons.manifest Url: http://www.scons.org/ BuildRequires: fdupes -BuildRequires: python-devel +BuildRequires: pkgconfig(python3) +BuildRequires: python3-setuptools %if ! %{?license:0} %define license %doc @@ -39,23 +40,26 @@ full power of Python to control compilation. %prep %setup -q + +sed -i -e '/QT_LIBPATH = os.path.join.*QTDIR/s/lib/%{_lib}/' \ + SCons/Tool/qt.py cp %{SOURCE1001} . %build export CFLAGS="$RPM_OPT_FLAGS" -python setup.py build +%{_bindir}/python3 setup.py build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-lib=%{python_sitearch} +%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} %fdupes %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_mandir}/man1 +mv -v %{buildroot}%{_prefix}/*.1 %{buildroot}%{_mandir}/man1 %files %manifest %{name}.manifest %defattr(-,root,root) %license LICENSE.txt %{_bindir}/* -%{python_sitearch}/SCons/ -%{python_sitearch}/*.egg-info -%{_mandir}/man1/*.gz -%{_libdir}/* - +%{python3_sitearch}/SCons +%{python3_sitearch}/SCons-%{version}-py*.egg-info +%{_mandir}/man1/* -- 2.34.1