2007-01-16 00:36:24 +01:00
|
|
|
#
|
2011-10-27 13:52:53 +02:00
|
|
|
# spec file for package scons
|
2007-01-16 00:36:24 +01:00
|
|
|
#
|
2017-10-04 20:52:25 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:36:24 +01:00
|
|
|
#
|
2008-09-08 16:30:40 +02: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-16 00:36:24 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: scons
|
2017-11-15 16:57:05 +01:00
|
|
|
Version: 3.0.1
|
2014-09-29 14:43:54 +02:00
|
|
|
Release: 0
|
2007-11-12 18:43:05 +01:00
|
|
|
Summary: Replacement for Make
|
2012-10-16 12:54:54 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Tools/Building
|
2014-09-29 14:43:54 +02:00
|
|
|
Url: http://www.scons.org/
|
2013-07-22 08:26:03 +02: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 13:52:53 +02:00
|
|
|
# Sets _mandir to _datadir/man instead of _prefix/man
|
2017-10-04 20:52:25 +02:00
|
|
|
Patch0: %{name}-3.0.0-fix-install.patch
|
2011-10-27 13:52:53 +02:00
|
|
|
BuildRequires: fdupes
|
2017-11-03 12:34:01 +01:00
|
|
|
BuildRequires: python3-devel >= 3.5
|
2013-07-22 08:26:03 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:36:24 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
SCons is a make replacement that provides a range of enhanced features,
|
2007-05-31 21:13:46 +02:00
|
|
|
such as automated dependency generation and built-in compilation cache
|
2007-11-12 18:43:05 +01: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-16 00:36:24 +01:00
|
|
|
|
|
|
|
%prep
|
2013-07-22 08:26:03 +02:00
|
|
|
%setup -q -a1
|
2014-04-10 11:08:28 +02:00
|
|
|
%patch0 -p1
|
2014-08-07 21:25:13 +02:00
|
|
|
|
2007-11-12 18:43:05 +01:00
|
|
|
# fix libdir for qt
|
2007-01-16 00:36:24 +01:00
|
|
|
patch -p0 <<EOF
|
|
|
|
--- engine/SCons/Tool/qt.py
|
|
|
|
+++ engine/SCons/Tool/qt.py
|
2009-01-22 13:17:23 +01:00
|
|
|
@@ -247,1 +247,1 @@
|
2007-01-16 00:36:24 +01:00
|
|
|
- QT_LIBPATH = os.path.join('\$QTDIR', 'lib'),
|
2015-09-24 18:53:23 +02:00
|
|
|
+ QT_LIBPATH = os.path.join('\$QTDIR', '%{_lib}'),
|
2007-01-16 00:36:24 +01:00
|
|
|
EOF
|
|
|
|
|
2017-11-03 12:34:01 +01:00
|
|
|
sed -i 's|%{_bindir}/env python|%{_bindir}/python3|' script/*
|
2014-09-29 14:43:54 +02:00
|
|
|
|
2007-01-16 00:36:24 +01:00
|
|
|
%build
|
2014-09-29 14:43:54 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
2017-11-03 12:34:01 +01:00
|
|
|
%python3_build
|
2007-01-16 00:36:24 +01:00
|
|
|
|
|
|
|
%install
|
2017-11-03 12:34:01 +01:00
|
|
|
%python3_install
|
2011-10-27 13:52:53 +02:00
|
|
|
%fdupes %{buildroot}%{_bindir}
|
2007-01-16 00:36:24 +01:00
|
|
|
|
2011-10-27 13:52:53 +02:00
|
|
|
%files
|
2007-01-16 00:36:24 +01:00
|
|
|
%doc CHANGES.txt LICENSE.txt README.txt RELEASE.txt scons-user.html
|
2011-10-27 13:52:53 +02:00
|
|
|
%{_bindir}/*
|
2017-11-03 12:34:01 +01:00
|
|
|
%{_libexecdir}/scons-%{version}
|
|
|
|
%{_mandir}/man1/*%{ext_man}
|
2008-04-24 01:53:21 +02:00
|
|
|
|
2007-05-31 21:13:46 +02:00
|
|
|
%changelog
|