Upgrade to version 4.3.0
This commit is contained in:
parent
eccb2e9084
commit
a448efa10b
@ -1,12 +1,13 @@
|
|||||||
Name: scons
|
Name: scons
|
||||||
Version: 3.1.1
|
Version: 4.3.0
|
||||||
Release: 4
|
Release: 1
|
||||||
Summary: An Open Source software construction tool
|
Summary: An Open Source software construction tool
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.scons.org
|
URL: http://www.scons.org
|
||||||
Source0: https://github.com/SCons/scons/archive/scons-%{version}.tar.gz
|
Source0: https://github.com/SCons/scons/archive/scons-%{version}.tar.gz
|
||||||
Source1: https://scons.org/doc/%{version}/scons-doc-%{version}.tar.gz
|
Source1: https://scons.org/doc/%{version}/scons-doc-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: make
|
||||||
|
|
||||||
%description
|
%description
|
||||||
SCons is an Open Source software construction tool—that is, a next-generation
|
SCons is an Open Source software construction tool—that is, a next-generation
|
||||||
@ -26,6 +27,10 @@ Scons HTML documentation.
|
|||||||
Summary: An Open Source software construction tool
|
Summary: An Open Source software construction tool
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-lxml
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: lynx
|
||||||
Provides: scons = 0:%{version}-%{release}
|
Provides: scons = 0:%{version}-%{release}
|
||||||
Provides: scons-python3
|
Provides: scons-python3
|
||||||
Obsoletes: scons < 0:5.0.3-3
|
Obsoletes: scons < 0:5.0.3-3
|
||||||
@ -39,10 +44,9 @@ and compiler caches such as ccache. In short, SCons is an easier, more reliable
|
|||||||
and faster way to build software.
|
and faster way to build software.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -c -a 1 -p1
|
%autosetup -n %{name}-%{version} -N
|
||||||
|
%setup -n %{name}-%{version} -q -T -D -a 1
|
||||||
# Remove unused doc directories
|
cd ..
|
||||||
rm -rf PDF PS EPUB TEXT
|
|
||||||
|
|
||||||
# Convert to UTF-8
|
# Convert to UTF-8
|
||||||
for file in %{name}-%{version}/src/*.txt; do
|
for file in %{name}-%{version}/src/*.txt; do
|
||||||
@ -51,22 +55,30 @@ for file in %{name}-%{version}/src/*.txt; do
|
|||||||
mv $file.new $file
|
mv $file.new $file
|
||||||
done
|
done
|
||||||
|
|
||||||
cp -a %{name}-%{version} %{name}-%{version}-py3
|
sed -i -e 's!env.AddPostAction(tgz_file, Delete(man_pages))! !g' %{name}-%{version}/SConstruct
|
||||||
sed -i 's|/usr/bin/env python|%{__python3}|' %{name}-%{version}-py3/bootstrap.py
|
|
||||||
sed -i 's|/usr/bin/env python|%{__python3}|' %{name}-%{version}-py3/src/script/*.py
|
pathfix.py -i %{__python3} -pn %{name}-%{version}/scripts/scons.py
|
||||||
|
|
||||||
|
###cp -a %{name}-%{version} %{name}-%{version}-py3
|
||||||
|
###sed -i 's|/usr/bin/env python|%{__python3}|' %{name}-%{version}-py3/scripts/scons.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd %{name}-%{version}-py3
|
%{__python3} scripts/scons.py
|
||||||
%{__python3} bootstrap.py --bootstrap_dir=build/scons
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd %{name}-%{version}-py3/build/scons
|
export LDFLAGS="%{build_ldflags}"
|
||||||
%py3_install \
|
export CFLAGS="%{build_cflags}"
|
||||||
--standard-lib --no-install-bat --no-version-script \
|
|
||||||
--install-scripts=%{_bindir} --install-data=%{_datadir}
|
%{_bindir}/python3 setup.py install -O1 --skip-build --root %{buildroot} \
|
||||||
popd
|
--install-scripts=%{_bindir} \
|
||||||
pushd %{buildroot}%{_bindir}
|
--install-data=%{_datadir}
|
||||||
|
|
||||||
|
# Install manpages
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
|
install -pm 644 build/doc/man/*.1 %{buildroot}%{_mandir}/man1/
|
||||||
|
rm -f %{buildroot}%{_datadir}/*.1
|
||||||
|
|
||||||
|
pushd %{buildroot}%{_bindir}
|
||||||
for i in %{name}-3 %{name}-v%{version}-%{python3_version} %{name}-%{python3_version}; do
|
for i in %{name}-3 %{name}-v%{version}-%{python3_version} %{name}-%{python3_version}; do
|
||||||
ln -fs %{_bindir}/%{name} %{buildroot}%{_bindir}/$i
|
ln -fs %{_bindir}/%{name} %{buildroot}%{_bindir}/$i
|
||||||
done
|
done
|
||||||
@ -82,26 +94,26 @@ done
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd %{name}-%{version}-py3
|
%{__python3} runtest.py -P %{__python3} --passed --quit-on-failure SCons/BuilderTests.py
|
||||||
%{__python3} runtest.py -P %{__python3} --passed --quit-on-failure src/engine/SCons/BuilderTests.py
|
|
||||||
popd
|
|
||||||
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%doc %{name}-%{version}-py3/src/CHANGES.txt %{name}-%{version}-py3/src/README.txt %{name}-%{version}-py3/src/RELEASE.txt
|
%doc CHANGES.txt RELEASE.*
|
||||||
%license %{name}-%{version}-py3/src/LICENSE.txt
|
%license LICENSE*
|
||||||
%{_bindir}/%{name}*-3
|
%{_bindir}/%{name}*-3
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_bindir}/%{name}{ign,-time,-configure-cache}
|
%{_bindir}/%{name}{ign,-time,-configure-cache}
|
||||||
%{_bindir}/%{name}*-%{python3_version}
|
%{_bindir}/%{name}*-%{python3_version}
|
||||||
%{python3_sitelib}/SCons/
|
%{python3_sitelib}/SCons/
|
||||||
%{python3_sitelib}/scons-%{version}*.egg-info
|
%{python3_sitelib}/*.egg-info
|
||||||
%{_mandir}/man?/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc HTML
|
%doc HTML PDF EPUB TEXT
|
||||||
%license %{name}-%{version}/src/LICENSE.txt
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 10 2022 SimpleUpdate Robot <tc@openeuler.org> - 4.3.0-1
|
||||||
|
- Upgrade to version 4.3.0
|
||||||
|
|
||||||
* Wed Dec 23 2020 lingsheng <lingsheng@huawei.com> - 3.1.1-4
|
* Wed Dec 23 2020 lingsheng <lingsheng@huawei.com> - 3.1.1-4
|
||||||
- Keep spec name same as package
|
- Keep spec name same as package
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
scons-4.3.0.tar.gz
Normal file
BIN
scons-4.3.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user