2007-01-16 00:36:24 +01:00
|
|
|
#
|
2008-09-08 16:30:40 +02:00
|
|
|
# spec file for package scons (Version 1.0.1)
|
2007-01-16 00:36:24 +01:00
|
|
|
#
|
2008-04-24 01:53:21 +02:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-24 01:53:21 +02:00
|
|
|
|
2007-01-16 00:36:24 +01:00
|
|
|
Name: scons
|
2007-11-12 18:43:05 +01:00
|
|
|
Summary: Replacement for Make
|
2008-09-08 16:30:40 +02:00
|
|
|
Version: 1.0.1
|
2008-04-24 01:53:21 +02:00
|
|
|
Release: 1
|
2007-01-16 00:36:24 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: scons-user.html
|
2007-11-12 18:43:05 +01:00
|
|
|
Patch0: %{name}-%{version}-fix-install.patch
|
|
|
|
Patch1: %{name}-%{version}-noenv.patch
|
2007-01-16 00:36:24 +01:00
|
|
|
License: X11/MIT
|
|
|
|
Group: Development/Tools/Building
|
2007-11-12 18:43:05 +01:00
|
|
|
Url: http://www.scons.org/
|
2007-01-16 00:36:24 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-09-08 16:30:40 +02:00
|
|
|
BuildRequires: python-devel
|
2007-01-16 00:36:24 +01:00
|
|
|
%{py_requires}
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Steven Knight <knight@baldmt.com>
|
|
|
|
Chad Austin
|
|
|
|
Charles Crain
|
|
|
|
Steve Leblanc
|
|
|
|
Gary Oberbrunner
|
|
|
|
Anthony Roach
|
|
|
|
Greg Spencer
|
|
|
|
Christoph Wiedemann
|
|
|
|
|
|
|
|
%prep
|
2007-11-12 18:43:05 +01:00
|
|
|
%setup -q
|
|
|
|
%patch0
|
2007-01-16 00:36:24 +01:00
|
|
|
%patch1
|
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
|
|
|
|
@@ -252,1 +252,1 @@
|
|
|
|
- QT_LIBPATH = os.path.join('\$QTDIR', 'lib'),
|
|
|
|
+ QT_LIBPATH = os.path.join('\$QTDIR', '%_lib'),
|
|
|
|
EOF
|
2007-11-12 18:43:05 +01:00
|
|
|
# copy user guide
|
|
|
|
cp %{SOURCE1} .
|
2007-01-16 00:36:24 +01:00
|
|
|
|
|
|
|
%build
|
2007-11-12 18:43:05 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2007-01-16 00:36:24 +01:00
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
2007-11-12 18:43:05 +01:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --install-lib=%{py_sitedir} --record-rpm=INSTALLED_FILES
|
|
|
|
# fix duplicates in bindir
|
|
|
|
ln -sf scons $RPM_BUILD_ROOT%{_bindir}/scons-%{version}
|
|
|
|
ln -sf scons-time $RPM_BUILD_ROOT%{_bindir}/scons-time-%{version}
|
|
|
|
ln -sf sconsign $RPM_BUILD_ROOT%{_bindir}/sconsign-%{version}
|
|
|
|
# fix manpages
|
2008-09-08 16:30:40 +02:00
|
|
|
for prg in scons scons-time sconsign; do
|
|
|
|
sed -i "s@%{_mandir}/man1/$prg.1@%{_mandir}/man1/$prg.1.gz@" INSTALLED_FILES
|
|
|
|
done
|
2007-01-16 00:36:24 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-09-08 16:30:40 +02:00
|
|
|
%files -f INSTALLED_FILES
|
2007-01-16 00:36:24 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGES.txt LICENSE.txt README.txt RELEASE.txt scons-user.html
|
2008-04-24 01:53:21 +02:00
|
|
|
|
2007-05-31 21:13:46 +02:00
|
|
|
%changelog
|
2008-09-08 16:30:40 +02:00
|
|
|
* Mon Sep 08 2008 prusnak@suse.cz
|
|
|
|
- updated to 1.0.1
|
|
|
|
* Add a FindFile() section to the User's Guide.
|
|
|
|
* Fix the FindFile() documentation in the man page.
|
|
|
|
* Fix formatting errors in the Package() description in the man page.
|
|
|
|
* Escape parentheses that appear within variable names when spawning
|
|
|
|
command lines using os.system().
|
|
|
|
- updated to 1.0.0.d20080826
|
|
|
|
* Clear the Node state when turning a generic Entry into a Dir.
|
|
|
|
* Fix sporadic output-order failures in test/GetBuildFailures/parallel.py.
|
|
|
|
* Document the ParseDepends() function in the User's Guide.
|
|
|
|
* Create a separate description and long_description for RPM packages.
|
|
|
|
* Document the GetLaunchDir() function in the User's Guide.
|
|
|
|
* Have the env.Execute() method print an error message if the
|
|
|
|
executed command fails.
|
|
|
|
* Add a script for creating a standard SCons development system on
|
|
|
|
Ubuntu Hardy. Rewrite subsidiary scripts for install Python and
|
|
|
|
SCons versions in Python (from shell).
|
|
|
|
* Handle yacc/bison on newer Mac OS X versions creating file.hpp,
|
|
|
|
not file.cpp.h.
|
|
|
|
* In RPCGEN tests, ignore stderr messages from older versions of
|
|
|
|
rpcgen on some versions of Mac OS X.
|
|
|
|
* Fix typos in man page descriptions of Tag() and Package(), and in
|
|
|
|
the scons-time man page.
|
|
|
|
* Fix documentation of SConf.CheckLibWithHeader and other SConf methods.
|
|
|
|
* Update documentation of SConscript(variant_dir) usage.
|
|
|
|
* Fix SWIG tests for (some versions of) Mac OS X.
|
|
|
|
* Print the warning about -j on Windows being potentially unreliable if
|
|
|
|
the pywin32 extensions are unavailable or lack file handle operations.
|
|
|
|
* Fix the env.WhereIs() method to expand construction variables.
|
|
|
|
* Enable building of shared libraries with the Bordand ilink32 linker.
|
|
|
|
- updated to 1.0.0
|
|
|
|
* Fix SCons man page indentation under Debian's man page macros.
|
|
|
|
* Clarify the man page description of the SConscript(src_dir) argument.
|
|
|
|
* Document MergeFlags(), ParseConfig(), ParseFlags() and SideEffect()
|
|
|
|
in the User's Guide.
|
|
|
|
* Document use of the GetBuildFailures() function in the User's Guide.
|
|
|
|
* Add man page text clarifying the behavior of AddPreAction() and
|
|
|
|
AddPostAction() when called with multiple targets.
|
|
|
|
* Fix incorrectly swapped man page descriptions of the --warn= options
|
|
|
|
for duplicate-environment and missing-sconscript.
|
|
|
|
* User's Guide updates
|
|
|
|
* Man page updates
|
|
|
|
- updated to 0.98.5
|
|
|
|
* Fix the Intel C++ compiler ABI specification for EMT64 processors.
|
|
|
|
* Issue a (suppressable) warning, not an error, when trying to link
|
|
|
|
C++ and Fortran object files into the same executable.
|
|
|
|
* Update the scons.bat file so that it returns the real exit status
|
|
|
|
from SCons, even though it uses setlocal + endlocal.
|
|
|
|
* Fix the --interactive post-build messages so it doesn't get stuck
|
|
|
|
mistakenly reporting failures after any individual build fails.
|
|
|
|
* Fix calling File() as a File object method in some circumstances.
|
|
|
|
* Fix setup.py installation on Mac OS X so SCons gets installed
|
|
|
|
under /usr/lcoal by default, not in the Mac OS X Python framework.
|
|
|
|
- updated to 0.98.4
|
|
|
|
* Fix calculation of signatures for Python function actions with
|
|
|
|
closures in Python versions before 2.5.
|
|
|
|
* Fix the initialization of $SHF77FLAGS so it includes $F77FLAGS.
|
|
|
|
* Fix a syntax error in the Intel C compiler support on Windows.
|
|
|
|
* Change how we represent Python Value Nodes when printing and when
|
|
|
|
stored in .sconsign files (to avoid blowing out memory by storing
|
|
|
|
huge strings in .sconsign files after multiple runs using Configure
|
|
|
|
contexts cause the Value strings to be re-escaped each time).
|
|
|
|
* Fix a regression in not executing configuration checks after failure
|
|
|
|
of any configuration check that used the same compiler or other tool.
|
|
|
|
* Handle multiple destinations in Visual Studio 8 settings for the
|
|
|
|
analogues to the INCLUDE, LIBRARY and PATH variables.
|
|
|
|
* Update man page text for VariantDir().
|
2008-05-01 14:52:34 +02:00
|
|
|
* Wed Apr 30 2008 prusnak@suse.cz
|
|
|
|
- updated to 0.98.3
|
|
|
|
* fix use of $CXXFLAGS when building C++ shared object files
|
|
|
|
* fix a regression when a Builder's source_scanner doesn't select
|
|
|
|
a more specific scanner for the suffix of a specified source file
|
|
|
|
* fix the Options object backwards compatibility so people can still
|
|
|
|
"import SCons.Options.{Bool,Enum,List,Package,Path}Option" submodules
|
|
|
|
* fix searching for implicit dependencies when an Entry Node shows up
|
|
|
|
in the search path list
|
|
|
|
* fix expansion of $FORTRANMODDIR in the default Fortran command line(s)
|
|
|
|
when it's set to something like ${TARGET.dir}
|
2008-04-24 01:53:21 +02:00
|
|
|
* Tue Apr 22 2008 prusnak@suse.cz
|
|
|
|
- updated to 0.98.2
|
|
|
|
* changes too numerous to list - see CHANGES.txt
|
|
|
|
* Mon Nov 12 2007 prusnak@suse.cz
|
2007-11-12 18:43:05 +01:00
|
|
|
- replaced /usr/bin/env in shebang by /usr/bin/python (noenv.patch)
|
|
|
|
- replaces duplicities in bindir by symlinks
|
2008-04-24 01:53:21 +02:00
|
|
|
* Wed May 30 2007 ltinkl@suse.cz
|
2007-05-31 21:13:46 +02:00
|
|
|
- update to stable release 0.97
|
|
|
|
- fix man installation patch
|
2008-04-24 01:53:21 +02:00
|
|
|
* Wed Mar 08 2006 ltinkl@suse.cz
|
2007-01-16 00:36:24 +01:00
|
|
|
- add more documentation (#154045)
|
2008-04-24 01:53:21 +02:00
|
|
|
* Tue Feb 28 2006 jmatejek@suse.cz
|
2007-01-16 00:36:24 +01:00
|
|
|
- updated to reflect python changes due to #149809
|
2008-04-24 01:53:21 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-16 00:36:24 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-04-24 01:53:21 +02:00
|
|
|
* Thu Nov 24 2005 sbrabec@suse.cz
|
2007-01-16 00:36:24 +01:00
|
|
|
- Bi-arch hack.
|
2008-04-24 01:53:21 +02:00
|
|
|
* Thu Nov 03 2005 dmueller@suse.de
|
2007-01-16 00:36:24 +01:00
|
|
|
- update to 0.96.91
|
2008-04-24 01:53:21 +02:00
|
|
|
* Tue Aug 24 2004 mcihar@suse.cz
|
2007-01-16 00:36:24 +01:00
|
|
|
- install man pages
|
2008-04-24 01:53:21 +02:00
|
|
|
* Tue Aug 24 2004 mcihar@suse.cz
|
2007-01-16 00:36:24 +01:00
|
|
|
- initial packaging
|