2007-01-15 23:36:24 +00:00
|
|
|
#
|
2011-10-27 11:52:53 +00:00
|
|
|
# spec file for package scons
|
2007-01-15 23:36:24 +00:00
|
|
|
#
|
2016-04-20 07:43:30 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:36:24 +00:00
|
|
|
#
|
2008-09-08 14:30:40 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:36:24 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-10-27 11:52:53 +00:00
|
|
|
# Potential build fix for SLE11 SLE11SP1
|
|
|
|
%if 0%{?suse_version} <= 1120
|
2014-09-29 12:43:54 +00:00
|
|
|
%{!?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))")}
|
2011-10-27 11:52:53 +00:00
|
|
|
%endif
|
2007-01-15 23:36:24 +00:00
|
|
|
Name: scons
|
2016-04-20 07:43:30 +00:00
|
|
|
Version: 2.5.0
|
2014-09-29 12:43:54 +00:00
|
|
|
Release: 0
|
2007-11-12 17:43:05 +00:00
|
|
|
Summary: Replacement for Make
|
2012-10-16 10:54:54 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Tools/Building
|
2014-09-29 12:43:54 +00:00
|
|
|
Url: http://www.scons.org/
|
2013-07-22 06:26:03 +00:00
|
|
|
Source0: http://prdownloads.sourceforge.net/scons/%{name}-%{version}.tar.gz
|
|
|
|
#http://www.scons.org/doc/%%{version}/HTML/scons-user.html
|
|
|
|
Source1: scons-user.html-%{version}.tar.bz2
|
2011-10-27 11:52:53 +00:00
|
|
|
# rpmlintrc
|
|
|
|
Source99: %{name}-rpmlintrc
|
|
|
|
# Sets _mandir to _datadir/man instead of _prefix/man
|
|
|
|
Patch0: %{name}-1.2.0-fix-install.patch
|
|
|
|
Patch1: %{name}-1.2.0-noenv.patch
|
|
|
|
BuildRequires: fdupes
|
2016-04-20 07:43:30 +00:00
|
|
|
BuildRequires: python-devel >= 2.7
|
2014-09-29 12:43:54 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-10-05 19:42:02 +00:00
|
|
|
%if 0%{?suse_version} > 1110
|
2013-07-22 06:26:03 +00:00
|
|
|
BuildArch: noarch
|
2014-10-05 19:42:02 +00:00
|
|
|
%endif
|
2015-09-24 16:53:23 +00:00
|
|
|
%if 0%{?suse_version} >= 1110
|
|
|
|
%py_requires
|
2013-07-22 06:26:03 +00:00
|
|
|
%endif
|
2007-01-15 23:36:24 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
SCons is a make replacement that provides a range of enhanced features,
|
2007-05-31 19:13:46 +00:00
|
|
|
such as automated dependency generation and built-in compilation cache
|
2007-11-12 17:43:05 +00:00
|
|
|
support. SCons rule sets are Python scripts, which means that SCons
|
|
|
|
provides itself as well as the features. SCons allows you to use the
|
|
|
|
full power of Python to control compilation.
|
2007-01-15 23:36:24 +00:00
|
|
|
|
|
|
|
%prep
|
2013-07-22 06:26:03 +00:00
|
|
|
%setup -q -a1
|
2014-04-10 09:08:28 +00:00
|
|
|
%patch0 -p1
|
2015-09-24 16:53:23 +00:00
|
|
|
%patch1 -p0
|
2014-08-07 19:25:13 +00:00
|
|
|
|
2007-11-12 17:43:05 +00:00
|
|
|
# fix libdir for qt
|
2007-01-15 23:36:24 +00:00
|
|
|
patch -p0 <<EOF
|
|
|
|
--- engine/SCons/Tool/qt.py
|
|
|
|
+++ engine/SCons/Tool/qt.py
|
2009-01-22 12:17:23 +00:00
|
|
|
@@ -247,1 +247,1 @@
|
2007-01-15 23:36:24 +00:00
|
|
|
- QT_LIBPATH = os.path.join('\$QTDIR', 'lib'),
|
2015-09-24 16:53:23 +00:00
|
|
|
+ QT_LIBPATH = os.path.join('\$QTDIR', '%{_lib}'),
|
2007-01-15 23:36:24 +00:00
|
|
|
EOF
|
|
|
|
|
2015-09-24 16:53:23 +00:00
|
|
|
sed -i 's|%{_bindir}/env python|%{_bindir}/python|' script/*
|
2014-09-29 12:43:54 +00:00
|
|
|
|
2007-01-15 23:36:24 +00:00
|
|
|
%build
|
2014-09-29 12:43:54 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2007-01-15 23:36:24 +00:00
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
2014-04-10 09:08:28 +00:00
|
|
|
python setup.py \install \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--root=%{buildroot} \
|
|
|
|
--install-lib=%{python_sitelib} \
|
|
|
|
--no-version-script
|
2011-10-27 11:52:53 +00:00
|
|
|
%fdupes %{buildroot}%{_bindir}
|
2007-01-15 23:36:24 +00:00
|
|
|
|
2011-10-27 11:52:53 +00:00
|
|
|
%files
|
2007-01-15 23:36:24 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGES.txt LICENSE.txt README.txt RELEASE.txt scons-user.html
|
2011-10-27 11:52:53 +00:00
|
|
|
%{_bindir}/*
|
2013-07-22 06:26:03 +00:00
|
|
|
%{python_sitelib}/SCons/
|
|
|
|
%{python_sitelib}/*.egg-info
|
2011-10-27 11:52:53 +00:00
|
|
|
%{_mandir}/man1/*.gz
|
2008-04-23 23:53:21 +00:00
|
|
|
|
2007-05-31 19:13:46 +00:00
|
|
|
%changelog
|