Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
scons
scons.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File scons.spec of Package scons
# # spec file for package scons # # Copyright (c) 2017 SUSE LINUX 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/ # %define with_python3 (0%{?suse_version} > 1320) Name: scons Version: 3.0.1 Release: 0 Summary: Replacement for Make License: MIT Group: Development/Tools/Building Url: http://www.scons.org/ 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 # Sets _mandir to _datadir/man instead of _prefix/man Patch0: %{name}-3.0.0-fix-install.patch BuildRequires: fdupes BuildArch: noarch %if %{with_python3} BuildRequires: python3-devel >= 3.5 Requires: python3-base >= 3.5 %else BuildRequires: python-devel >= 2.7 %endif %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. %prep %setup -q -a1 %patch0 -p1 # 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 %if %{with_python3} sed -i 's|%{_bindir}/env python|%{_bindir}/python3|' script/* %else sed -i 's|%{_bindir}/env python|%{_bindir}/python|' script/* %endif %build export CFLAGS="%{optflags}" %if %{with_python3} %python3_build %else python setup.py build %endif %install %if %{with_python3} %python3_install %else python setup.py \install \ --prefix=%{_prefix} \ --root=%{buildroot} \ --install-lib=%{python_sitelib} \ --no-version-script %endif %fdupes %{buildroot}%{_bindir} %files %doc CHANGES.txt LICENSE.txt README.txt RELEASE.txt scons-user.html %{_bindir}/* %if %{with_python3} %{_libexecdir}/scons-%{version} %else %{python_sitelib}/SCons/ %{python_sitelib}/*.egg-info %endif %{_mandir}/man1/*%{ext_man} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor