scons/scons.spec

196 lines
7.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package scons (Version 1.0.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: scons
Summary: Replacement for Make
Version: 1.0.1
Release: 1
Source0: %{name}-%{version}.tar.bz2
Source1: scons-user.html
Patch0: %{name}-%{version}-fix-install.patch
Patch1: %{name}-%{version}-noenv.patch
License: X11/MIT
Group: Development/Tools/Building
Url: http://www.scons.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
%{py_requires}
%description
SCons is a make replacement that provides a range of enhanced features,
such as automated dependency generation and built-in compilation cache
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.
Authors:
--------
Steven Knight <knight@baldmt.com>
Chad Austin
Charles Crain
Steve Leblanc
Gary Oberbrunner
Anthony Roach
Greg Spencer
Christoph Wiedemann
%prep
%setup -q
%patch0
%patch1
# fix libdir for qt
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
# copy user guide
cp %{SOURCE1} .
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
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
for prg in scons scons-time sconsign; do
sed -i "s@%{_mandir}/man1/$prg.1@%{_mandir}/man1/$prg.1.gz@" INSTALLED_FILES
done
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc CHANGES.txt LICENSE.txt README.txt RELEASE.txt scons-user.html
%changelog
* 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().
* 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}
* 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
- replaced /usr/bin/env in shebang by /usr/bin/python (noenv.patch)
- replaces duplicities in bindir by symlinks
* Wed May 30 2007 ltinkl@suse.cz
- update to stable release 0.97
- fix man installation patch
* Wed Mar 08 2006 ltinkl@suse.cz
- add more documentation (#154045)
* Tue Feb 28 2006 jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Nov 24 2005 sbrabec@suse.cz
- Bi-arch hack.
* Thu Nov 03 2005 dmueller@suse.de
- update to 0.96.91
* Tue Aug 24 2004 mcihar@suse.cz
- install man pages
* Tue Aug 24 2004 mcihar@suse.cz
- initial packaging