93 lines
2.4 KiB
RPMSpec
93 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package scons (Version 0.97)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: scons
|
|
BuildRequires: python-devel
|
|
Summary: Replacement for make
|
|
Version: 0.97
|
|
Release: 1
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Source1: scons-user.html
|
|
Patch1: fix-install.patch
|
|
License: X11/MIT
|
|
Group: Development/Tools/Building
|
|
URL: http://www.scons.org/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{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, so as well as the features
|
|
it provides itself, 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
|
|
%patch1
|
|
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
|
|
install %{SOURCE1} .
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES --install-lib=%{py_sitedir}
|
|
sed -i -e 's,\.1$,.1.gz,' INSTALLED_FILES
|
|
|
|
%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
|
|
%doc /%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* 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
|