2007-01-16 00:36:24 +01:00
|
|
|
#
|
2011-10-27 13:52:53 +02:00
|
|
|
# spec file for package scons
|
2007-01-16 00:36:24 +01:00
|
|
|
#
|
2019-01-04 09:26:03 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX 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.
|
|
|
|
|
2019-01-15 14:57:20 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:36:24 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-10-11 19:30:56 +02:00
|
|
|
%define modname scons
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
2019-03-25 10:33:15 +01:00
|
|
|
%define psuffix -test
|
2018-10-11 19:30:56 +02:00
|
|
|
%bcond_without test
|
2019-03-26 12:24:36 +01:00
|
|
|
%else
|
2019-03-25 10:33:15 +01:00
|
|
|
%define psuffix %{nil}
|
2019-03-01 20:30:11 +01:00
|
|
|
%bcond_with test
|
2019-03-26 12:24:36 +01:00
|
|
|
%endif
|
2019-03-25 10:33:15 +01:00
|
|
|
Name: scons%{psuffix}
|
2019-03-01 20:30:11 +01:00
|
|
|
Version: 3.0.4
|
2014-09-29 14:43:54 +02:00
|
|
|
Release: 0
|
2007-11-12 18:43:05 +01:00
|
|
|
Summary: Replacement for Make
|
2012-10-16 12:54:54 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Tools/Building
|
2018-07-25 14:27:39 +02:00
|
|
|
URL: http://www.scons.org/
|
2018-10-11 19:30:56 +02:00
|
|
|
Source0: https://github.com/SCons/%{modname}/archive/%{version}.tar.gz
|
2013-07-22 08:26:03 +02:00
|
|
|
#http://www.scons.org/doc/%%{version}/HTML/scons-user.html
|
2019-01-15 14:57:20 +01:00
|
|
|
Source1: scons-user.html-%{version}.tar.bz2
|
2018-10-11 19:30:56 +02:00
|
|
|
# Adjust to exclude all failing tests
|
|
|
|
Source2: grep-filter-list.txt
|
|
|
|
# Local modification
|
|
|
|
Patch8: scons-3.0.0-fix-install.patch
|
2019-03-25 10:33:15 +01:00
|
|
|
BuildRequires: fdupes
|
2018-10-11 19:30:56 +02:00
|
|
|
BuildRequires: grep
|
|
|
|
BuildRequires: python3-base >= 3.5
|
|
|
|
BuildRequires: python3-lxml
|
2019-01-04 09:26:03 +01:00
|
|
|
BuildRequires: python3-setuptools
|
2018-07-25 14:27:39 +02:00
|
|
|
Requires: python3-base >= 3.5
|
2018-10-11 19:30:56 +02:00
|
|
|
%if %{with test}
|
2019-03-01 20:30:11 +01:00
|
|
|
# texlive texlive-latex3 biber texmaker ghostscript
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
2018-10-11 19:30:56 +02:00
|
|
|
# For tests
|
|
|
|
BuildRequires: clang
|
|
|
|
BuildRequires: docbook-xsl-pdf2index
|
|
|
|
BuildRequires: docbook5-xsl-stylesheets
|
|
|
|
BuildRequires: gcc-c++
|
2019-03-01 20:30:11 +01:00
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: libtool
|
2018-10-11 19:30:56 +02:00
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: libxslt-tools
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: subversion
|
|
|
|
BuildRequires: swig
|
2019-03-01 20:30:11 +01:00
|
|
|
BuildRequires: xmlgraphics-fop
|
2018-10-11 19:30:56 +02:00
|
|
|
%endif
|
2007-01-16 00:36:24 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%prep
|
2018-10-11 19:30:56 +02:00
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%autopatch -p1
|
2014-08-07 21:25:13 +02:00
|
|
|
|
2018-10-11 19:30:56 +02:00
|
|
|
sed -i -e '/QT_LIBPATH = os.path.join.*QTDIR/s/lib/%{_lib}/' \
|
|
|
|
src/engine/SCons/Tool/qt.py
|
|
|
|
sed -i 's|%{_bindir}/env python|%{_bindir}/python3|' src/script/*
|
2007-01-16 00:36:24 +01:00
|
|
|
|
2018-10-11 19:30:56 +02:00
|
|
|
cp %{SOURCE2} grep-filter-list.txt
|
2019-03-01 20:30:11 +01:00
|
|
|
chmod -x src/CHANGES.txt README.rst src/RELEASE.txt
|
2014-09-29 14:43:54 +02:00
|
|
|
|
2019-03-25 10:33:15 +01:00
|
|
|
# the test is marked skipped but fails
|
|
|
|
rm test/MSVS/vs-14.1-exec.py
|
|
|
|
|
2007-01-16 00:36:24 +01:00
|
|
|
%build
|
2018-10-11 19:30:56 +02:00
|
|
|
python3 bootstrap.py build/scons
|
|
|
|
cd build/scons
|
2019-03-25 10:33:15 +01:00
|
|
|
%python3_build
|
2007-01-16 00:36:24 +01:00
|
|
|
|
|
|
|
%install
|
2018-10-11 19:30:56 +02:00
|
|
|
%if !%{with test}
|
|
|
|
cd build/scons
|
|
|
|
ls -lh build/lib
|
2019-03-25 10:33:15 +01:00
|
|
|
%python3_install \
|
2018-10-11 19:30:56 +02:00
|
|
|
--standard-lib \
|
|
|
|
--no-install-bat \
|
|
|
|
--no-version-script \
|
|
|
|
--install-scripts=%{_bindir} \
|
|
|
|
--record installed_files.txt
|
2019-03-25 10:33:15 +01:00
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
2018-10-11 19:30:56 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%check
|
|
|
|
%if %{with test}
|
2019-03-26 12:24:36 +01:00
|
|
|
%ifnarch aarch64 armv7l ppc64 ppc64le s390x
|
2018-10-11 19:30:56 +02:00
|
|
|
TEMP_FILE=$(mktemp --tmpdir %{modname}-test.XXXXXX)
|
|
|
|
trap 'rm -f -- "$TEMP_FILE"' INT TERM HUP EXIT
|
|
|
|
find src/ test/ -name \*.py \
|
|
|
|
| grep -F -v -f grep-filter-list.txt >$TEMP_FILE
|
|
|
|
python3 runtest.py -f $TEMP_FILE
|
2019-03-26 12:24:36 +01:00
|
|
|
%else
|
|
|
|
echo "Skiping tests on this architecture due to failures"
|
|
|
|
%endif
|
2018-10-11 19:30:56 +02:00
|
|
|
%endif
|
2007-01-16 00:36:24 +01:00
|
|
|
|
2011-10-27 13:52:53 +02:00
|
|
|
%files
|
2018-10-11 19:30:56 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc src/CHANGES.txt README.rst src/RELEASE.txt
|
|
|
|
%if !%{with test}
|
2011-10-27 13:52:53 +02:00
|
|
|
%{_bindir}/*
|
2018-10-11 19:30:56 +02:00
|
|
|
%{python3_sitelib}/SCons
|
|
|
|
%{python3_sitelib}/%{modname}*.egg-info
|
2017-11-03 12:34:01 +01:00
|
|
|
%{_mandir}/man1/*%{ext_man}
|
2018-10-11 19:30:56 +02:00
|
|
|
%endif
|
2008-04-24 01:53:21 +02:00
|
|
|
|
2007-05-31 21:13:46 +02:00
|
|
|
%changelog
|