!2 update package from 3.0.1 to 3.1.1
Merge pull request !2 from Captain.Wei/master
This commit is contained in:
commit
fbaae802c6
Binary file not shown.
BIN
scons-3.1.1.tar.gz
Normal file
BIN
scons-3.1.1.tar.gz
Normal file
Binary file not shown.
BIN
scons-doc-3.1.1.tar.gz
Normal file
BIN
scons-doc-3.1.1.tar.gz
Normal file
Binary file not shown.
230
scons.spec
230
scons.spec
@ -1,146 +1,164 @@
|
|||||||
%global _description\
|
Name: scons
|
||||||
SCons is an Open Source software construction tool—that is, a next-generation \
|
Version: 3.1.1
|
||||||
build tool. Think of SCons as an improved, cross-platform substitute for the \
|
Release: 2
|
||||||
classic Make utility with integrated functionality similar to autoconf/automake \
|
Summary: An Open Source software construction tool
|
||||||
and compiler caches such as ccache. In short, SCons is an easier, more reliable \
|
License: MIT
|
||||||
|
URL: http://www.scons.org
|
||||||
|
Source0: https://github.com/SCons/scons/archive/scons-%{version}.tar.gz
|
||||||
|
Source1: https://scons.org/doc/%{version}/scons-doc-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
SCons is an Open Source software construction tool—that is, a next-generation
|
||||||
|
build tool. Think of SCons as an improved, cross-platform substitute for the
|
||||||
|
classic Make utility with integrated functionality similar to autoconf/automake
|
||||||
|
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.
|
||||||
|
|
||||||
Name: scons
|
%package doc
|
||||||
Version: 3.0.1
|
Summary: An Open Source software construction tool
|
||||||
Release: 10
|
BuildArch: noarch
|
||||||
Summary: A software construction tool
|
|
||||||
License: MIT
|
|
||||||
URL: http://www.scons.org
|
|
||||||
Source: http://prdownloads.sourceforge.net/scons/scons-%{version}.tar.gz
|
|
||||||
|
|
||||||
BuildArch: noarch
|
%description doc
|
||||||
|
Scons HTML documentation.
|
||||||
|
|
||||||
%description %_description
|
%package -n python2-%{name}
|
||||||
|
Summary: An Open Source software construction tool
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
%{?python_provide:%python_provide python2-%{name}}
|
||||||
|
Provides: scons-python2 = 0:%{version}-%{release}
|
||||||
|
|
||||||
%package -n python2-scons
|
%description -n python2-%{name}
|
||||||
Summary: A software construction tool
|
SCons is an Open Source software construction tool—that is, a next-generation
|
||||||
BuildRequires: python2-devel
|
build tool. Think of SCons as an improved, cross-platform substitute for the
|
||||||
Provides: scons = %{version}-%{release}
|
classic Make utility with integrated functionality similar to autoconf/automake
|
||||||
Obsoletes: scons < 3.0.1-4
|
and compiler caches such as ccache. In short, SCons is an easier, more reliable
|
||||||
%{?python_provide:%python_provide python2-scons}
|
and faster way to build software.
|
||||||
|
|
||||||
%description -n python2-scons %_description
|
%package -n python3-%{name}
|
||||||
|
Summary: An Open Source software construction tool
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
%package -n python3-scons
|
Provides: scons = 0:%{version}-%{release}
|
||||||
Summary: A software construction tool
|
Provides: scons-python3
|
||||||
BuildRequires: python3-devel
|
Obsoletes: scons < 0:5.0.3-3
|
||||||
Provides: scons-python3 = %{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python3-%{name}}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
|
|
||||||
%description -n python3-scons %_description
|
%description -n python3-%{name}
|
||||||
|
SCons is an Open Source software construction tool—that is, a next-generation
|
||||||
%package help
|
build tool. Think of SCons as an improved, cross-platform substitute for the
|
||||||
Summary: Documents for python-scons
|
classic Make utility with integrated functionality similar to autoconf/automake
|
||||||
Buildarch: noarch
|
and compiler caches such as ccache. In short, SCons is an easier, more reliable
|
||||||
|
and faster way to build software.
|
||||||
%description help
|
|
||||||
Man pages and other related documents.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -c
|
%autosetup -c -a 1 -p1
|
||||||
|
|
||||||
|
# Remove unused doc directories
|
||||||
|
rm -rf PDF PS EPUB TEXT
|
||||||
|
|
||||||
|
# Convert to UTF-8
|
||||||
|
for file in %{name}-%{version}/src/*.txt; do
|
||||||
|
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
|
||||||
|
touch -r $file $file.new && \
|
||||||
|
mv $file.new $file
|
||||||
|
done
|
||||||
|
|
||||||
cp -a %{name}-%{version} %{name}-%{version}-py3
|
cp -a %{name}-%{version} %{name}-%{version}-py3
|
||||||
sed -i 's|/usr/bin/env python|%{__python2}|' %{name}-%{version}/script/*
|
sed -i 's|/usr/bin/env python|%{__python2}|' %{name}-%{version}/bootstrap.py
|
||||||
sed -i 's|/usr/bin/env python|%{__python3}|' %{name}-%{version}-py3/script/*
|
sed -i 's|/usr/bin/env python|%{__python2}|' %{name}-%{version}/src/script/*.py
|
||||||
|
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
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{name}-%{version}
|
pushd %{name}-%{version}-py3
|
||||||
%py2_build
|
%{__python3} bootstrap.py --bootstrap_dir=build/scons
|
||||||
cd -
|
popd
|
||||||
cd %{name}-%{version}-py3
|
|
||||||
%py3_build
|
pushd %{name}-%{version}
|
||||||
cd -
|
%{__python2} bootstrap.py --bootstrap_dir=build/scons
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{name}-%{version}-py3
|
pushd %{name}-%{version}/build/scons
|
||||||
%py3_install \
|
|
||||||
--standard-lib \
|
|
||||||
--install-scripts=%{_bindir} \
|
|
||||||
--install-data=%{_datadir} \
|
|
||||||
--no-install-bat \
|
|
||||||
--no-version-script
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
pushd %{buildroot}%{_bindir}
|
|
||||||
mv %{name} %{name}-3
|
|
||||||
mv %{name}-configure-cache %{name}-configure-cache-3
|
|
||||||
mv %{name}ign %{name}ign-3
|
|
||||||
mv %{name}-time %{name}-time-3
|
|
||||||
|
|
||||||
for link in %{name}-v%{version}-%{python3_version} \
|
|
||||||
%{name}-%{python3_version}; do
|
|
||||||
ln -fs %{_bindir}/%{name}-3 $link
|
|
||||||
done
|
|
||||||
for link in %{name}ign-v%{version}-%{python3_version} \
|
|
||||||
%{name}ign-%{python3_version}; do
|
|
||||||
ln -fs %{_bindir}/%{name}ign-3 $link
|
|
||||||
done
|
|
||||||
for link in %{name}-time-v%{version}-%{python3_version} \
|
|
||||||
%{name}-time-%{python3_version}; do
|
|
||||||
ln -fs %{_bindir}/%{name}-time-3 $link
|
|
||||||
done
|
|
||||||
for link in %{name}-configure-cache-v%{version}-%{python3_version} \
|
|
||||||
%{name}-configure-cache-%{python3_version}; do
|
|
||||||
ln -fs %{_bindir}/%{name}-configure-cache-3 $link
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
|
|
||||||
cd %{name}-%{version}
|
|
||||||
%py2_install \
|
%py2_install \
|
||||||
--standard-lib \
|
--standard-lib --no-install-bat --no-version-script \
|
||||||
--no-install-bat \
|
--install-scripts=%{_bindir} --install-data=%{_datadir}
|
||||||
--no-version-script \
|
popd
|
||||||
--install-scripts=%{_bindir} \
|
|
||||||
--install-data=%{_datadir}
|
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-2
|
||||||
cd ..
|
mv %{buildroot}%{_bindir}/%{name}-configure-cache %{buildroot}%{_bindir}/%{name}-configure-cache-2
|
||||||
|
mv %{buildroot}%{_bindir}/%{name}ign %{buildroot}%{_bindir}/%{name}ign-2
|
||||||
|
mv %{buildroot}%{_bindir}/%{name}-time %{buildroot}%{_bindir}/%{name}-time-2
|
||||||
|
|
||||||
pushd %{buildroot}%{_bindir}
|
pushd %{buildroot}%{_bindir}
|
||||||
for link in %{name}-2 %{name}-%{python2_version} \
|
for i in %{name}-%{python2_version} %{name}-v%{version}-%{python2_version}; do
|
||||||
%{name}-v%{version}-%{python2_version}; do
|
ln -fs %{_bindir}/%{name}-2 %{buildroot}%{_bindir}/$i
|
||||||
ln -fs %{_bindir}/%{name} $link
|
|
||||||
done
|
done
|
||||||
for link in %{name}ign-2 %{name}ign-%{python2_version} \
|
for i in %{name}ign-%{python2_version} %{name}ign-v%{version}-%{python2_version}; do
|
||||||
%{name}ign-v%{version}-%{python2_version}; do
|
ln -fs %{_bindir}/%{name}ign-2 %{buildroot}%{_bindir}/$i
|
||||||
ln -fs %{_bindir}/%{name}ign $link
|
|
||||||
done
|
done
|
||||||
for link in %{name}-time-2 %{name}-time-%{python2_version} \
|
for i in %{name}-time-%{python2_version} %{name}-time-v%{version}-%{python2_version}; do
|
||||||
%{name}-time-v%{version}-%{python2_version}; do
|
ln -fs %{_bindir}/%{name}-time-2 %{buildroot}%{_bindir}/$i
|
||||||
ln -fs %{_bindir}/%{name}-time $link
|
|
||||||
done
|
done
|
||||||
for link in %{name}-configure-cache-2 %{name}-configure-cache-%{python2_version} \
|
for i in %{name}-configure-cache-%{python2_version} %{name}-configure-cache-v%{version}-%{python2_version}; do
|
||||||
%{name}-configure-cache-v%{version}-%{python2_version}; do
|
ln -fs %{_bindir}/%{name}-configure-cache-2 %{buildroot}%{_bindir}/$i
|
||||||
ln -fs %{_bindir}/%{name}-configure-cache $link
|
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files -n python2-scons
|
pushd %{name}-%{version}-py3/build/scons
|
||||||
%license %{name}-%{version}/LICENSE.txt
|
%py3_install \
|
||||||
%{_bindir}/%{name}
|
--standard-lib --no-install-bat --no-version-script \
|
||||||
%{_bindir}/%{name}ign
|
--install-scripts=%{_bindir} --install-data=%{_datadir}
|
||||||
%{_bindir}/%{name}-time
|
popd
|
||||||
%{_bindir}/%{name}-configure-cache
|
pushd %{buildroot}%{_bindir}
|
||||||
|
for i in %{name}-3 %{name}-v%{version}-%{python3_version} %{name}-%{python3_version}; do
|
||||||
|
ln -fs %{_bindir}/%{name} %{buildroot}%{_bindir}/$i
|
||||||
|
done
|
||||||
|
for i in %{name}ign-3 %{name}ign-v%{version}-%{python3_version} %{name}ign-%{python3_version}; do
|
||||||
|
ln -fs %{_bindir}/%{name}ign %{buildroot}%{_bindir}/$i
|
||||||
|
done
|
||||||
|
for i in %{name}-time-3 %{name}-time-v%{version}-%{python3_version} %{name}-time-%{python3_version}; do
|
||||||
|
ln -fs %{_bindir}/%{name}-time %{buildroot}%{_bindir}/$i
|
||||||
|
done
|
||||||
|
for i in %{name}-configure-cache-3 %{name}-configure-cache-v%{version}-%{python3_version} %{name}-configure-cache-%{python3_version}; do
|
||||||
|
ln -fs %{_bindir}/%{name}-configure-cache %{buildroot}%{_bindir}/$i
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd %{name}-%{version}-py3
|
||||||
|
%{__python3} runtest.py -P %{__python3} --passed --quit-on-failure src/engine/SCons/BuilderTests.py
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd %{name}-%{version}
|
||||||
|
%{__python2} runtest.py -P %{__python2} --passed --quit-on-failure src/engine/SCons/BuilderTests.py
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files -n python2-%{name}
|
||||||
|
%doc %{name}-%{version}/src/CHANGES.txt %{name}-%{version}/src/README.txt %{name}-%{version}/src/RELEASE.txt
|
||||||
|
%license %{name}-%{version}/src/LICENSE.txt
|
||||||
%{_bindir}/%{name}*-2
|
%{_bindir}/%{name}*-2
|
||||||
%{_bindir}/%{name}*-%{python2_version}
|
%{_bindir}/%{name}*-%{python2_version}
|
||||||
%{python2_sitelib}/SCons/
|
%{python2_sitelib}/SCons/
|
||||||
%{python2_sitelib}/scons-%{version}*.egg-info
|
%{python2_sitelib}/scons-%{version}*.egg-info
|
||||||
|
%{_mandir}/man?/*
|
||||||
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%license %{name}-%{version}-py3/LICENSE.txt
|
%doc %{name}-%{version}-py3/src/CHANGES.txt %{name}-%{version}-py3/src/README.txt %{name}-%{version}-py3/src/RELEASE.txt
|
||||||
|
%license %{name}-%{version}-py3/src/LICENSE.txt
|
||||||
%{_bindir}/%{name}*-3
|
%{_bindir}/%{name}*-3
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_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}/scons-%{version}*.egg-info
|
||||||
|
|
||||||
%files help
|
|
||||||
%doc %{name}-%{version}/{CHANGES,README,RELEASE}.txt
|
|
||||||
%{_mandir}/man?/*
|
%{_mandir}/man?/*
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc HTML
|
||||||
|
%license %{name}-%{version}/src/LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Nov 30 2019 zhouyihang <zhouyihang1@huawei.com> - 3.0.1-10
|
* Thu Jun 4 2020 Captain Wei <captain.a.wei@gmail.com> - 3.1.1-2
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user