Accepting request 538655 from home:pluskalm:branches:devel:tools:building
- Switch to python3 OBS-URL: https://build.opensuse.org/request/show/538655 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/scons?expand=0&rev=50
This commit is contained in:
parent
9f4f0f0277
commit
1a0a443ae6
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 3 11:22:45 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Switch to python3
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 4 19:09:07 UTC 2017 - astieger@suse.com
|
Wed Oct 4 19:09:07 UTC 2017 - astieger@suse.com
|
||||||
|
|
||||||
|
29
scons.spec
29
scons.spec
@ -16,11 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
# Potential build fix for SLE11 SLE11SP1
|
|
||||||
%if 0%{?suse_version} <= 1120
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
||||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
||||||
%endif
|
|
||||||
Name: scons
|
Name: scons
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -35,14 +30,8 @@ Source1: scons-user.html-%{version}.tar.bz2
|
|||||||
Patch0: %{name}-3.0.0-fix-install.patch
|
Patch0: %{name}-3.0.0-fix-install.patch
|
||||||
Patch1: scons-3.0.0-support-python-2-prints.patch
|
Patch1: scons-3.0.0-support-python-2-prints.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-devel >= 2.7
|
BuildRequires: python3-devel >= 3.5
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} >= 1110
|
|
||||||
%py_requires
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
SCons is a make replacement that provides a range of enhanced features,
|
SCons is a make replacement that provides a range of enhanced features,
|
||||||
@ -65,26 +54,20 @@ patch -p0 <<EOF
|
|||||||
+ QT_LIBPATH = os.path.join('\$QTDIR', '%{_lib}'),
|
+ QT_LIBPATH = os.path.join('\$QTDIR', '%{_lib}'),
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sed -i 's|%{_bindir}/env python|%{_bindir}/python|' script/*
|
sed -i 's|%{_bindir}/env python|%{_bindir}/python3|' script/*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
python setup.py build
|
%python3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py \install \
|
%python3_install
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--root=%{buildroot} \
|
|
||||||
--install-lib=%{python_sitelib} \
|
|
||||||
--no-version-script
|
|
||||||
%fdupes %{buildroot}%{_bindir}
|
%fdupes %{buildroot}%{_bindir}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc CHANGES.txt LICENSE.txt README.txt RELEASE.txt scons-user.html
|
%doc CHANGES.txt LICENSE.txt README.txt RELEASE.txt scons-user.html
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{python_sitelib}/SCons/
|
%{_libexecdir}/scons-%{version}
|
||||||
%{python_sitelib}/*.egg-info
|
%{_mandir}/man1/*%{ext_man}
|
||||||
%{_mandir}/man1/*.gz
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user