- Cleanup with spec-cleaner (minor whitespace)
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/scons?expand=0&rev=30
This commit is contained in:
parent
28947afe2c
commit
26b9c7cdde
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 29 12:43:29 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Cleanup with spec-cleaner (minor whitespace)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 28 20:46:40 UTC 2014 - andreas.stieger@gmx.de
|
Thu Aug 28 20:46:40 UTC 2014 - andreas.stieger@gmx.de
|
||||||
|
|
||||||
|
20
scons.spec
20
scons.spec
@ -18,16 +18,16 @@
|
|||||||
|
|
||||||
# Potential build fix for SLE11 SLE11SP1
|
# Potential build fix for SLE11 SLE11SP1
|
||||||
%if 0%{?suse_version} <= 1120
|
%if 0%{?suse_version} <= 1120
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
%{!?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))")}
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: scons
|
Name: scons
|
||||||
|
Version: 2.3.3
|
||||||
|
Release: 0
|
||||||
Summary: Replacement for Make
|
Summary: Replacement for Make
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
Version: 2.3.3
|
Url: http://www.scons.org/
|
||||||
Release: 0
|
|
||||||
Source0: http://prdownloads.sourceforge.net/scons/%{name}-%{version}.tar.gz
|
Source0: http://prdownloads.sourceforge.net/scons/%{name}-%{version}.tar.gz
|
||||||
#http://www.scons.org/doc/%%{version}/HTML/scons-user.html
|
#http://www.scons.org/doc/%%{version}/HTML/scons-user.html
|
||||||
Source1: scons-user.html-%{version}.tar.bz2
|
Source1: scons-user.html-%{version}.tar.bz2
|
||||||
@ -36,14 +36,12 @@ Source99: %{name}-rpmlintrc
|
|||||||
# Sets _mandir to _datadir/man instead of _prefix/man
|
# Sets _mandir to _datadir/man instead of _prefix/man
|
||||||
Patch0: %{name}-1.2.0-fix-install.patch
|
Patch0: %{name}-1.2.0-fix-install.patch
|
||||||
Patch1: %{name}-1.2.0-noenv.patch
|
Patch1: %{name}-1.2.0-noenv.patch
|
||||||
Url: http://www.scons.org/
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-devel >= 2.4
|
BuildRequires: python-devel >= 2.4
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} > 1110
|
%if 0%{?suse_version} > 1110
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
%{py_requires}
|
|
||||||
|
|
||||||
%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,
|
||||||
@ -66,8 +64,10 @@ patch -p0 <<EOF
|
|||||||
+ QT_LIBPATH = os.path.join('\$QTDIR', '%_lib'),
|
+ QT_LIBPATH = os.path.join('\$QTDIR', '%_lib'),
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
sed -i 's|/usr/bin/env python|/usr/bin/python|' script/*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="%{optflags}"
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -78,8 +78,6 @@ python setup.py \install \
|
|||||||
--no-version-script
|
--no-version-script
|
||||||
%fdupes %{buildroot}%{_bindir}
|
%fdupes %{buildroot}%{_bindir}
|
||||||
|
|
||||||
%check
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%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
|
||||||
|
Loading…
Reference in New Issue
Block a user