Copy from devel:tools:building/scons based on submit request 32315 from user prusnak OBS-URL: https://build.opensuse.org/request/show/32315 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/scons?expand=0&rev=9
95 lines
2.8 KiB
RPMSpec
95 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package scons (Version 1.2.0)
|
|
#
|
|
# Copyright (c) 2010 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.2.0
|
|
Release: 2
|
|
%define fullversion %{version}.d20100117
|
|
Source0: %{name}-%{fullversion}.tar.bz2
|
|
Source1: scons-user.html
|
|
Patch0: %{name}-%{version}-fix-install.patch
|
|
Patch1: %{name}-%{version}-noenv.patch
|
|
License: 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 -n %{name}-%{fullversion}
|
|
%patch0
|
|
%patch1
|
|
# fix libdir for qt
|
|
patch -p0 <<EOF
|
|
--- engine/SCons/Tool/qt.py
|
|
+++ engine/SCons/Tool/qt.py
|
|
@@ -247,1 +247,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-%{fullversion}
|
|
ln -sf scons-time $RPM_BUILD_ROOT%{_bindir}/scons-time-%{fullversion}
|
|
ln -sf sconsign $RPM_BUILD_ROOT%{_bindir}/sconsign-%{fullversion}
|
|
# 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
|