File scons.spec of Package scons-47

%define pythons python3
Name:           scons
Version:        4.7.0
Release:        0
Summary:        Replacement for Make
License:        MIT
Group:          Development/Tools/Building
URL:            https://www.scons.org/
Source:         http://prdownloads.sourceforge.net/scons/SCons-%{version}.tar.gz
BuildRequires:  python3-setuptools
BuildRequires:  python3-rpm-macros
BuildArch:      noarch

%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
%autosetup -p1 -n SCons-%{version}

sed -i -e '/QT3_LIBPATH = os.path.join.*QT3DIR/s/lib/%{_lib}/' \
    SCons/Tool/qt3.py

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot} --optimize=1
mkdir -p %{buildroot}%{_mandir}/man1
mv -v %{buildroot}/usr/scons-time.1 %{buildroot}%{_mandir}/man1/scons-time.1 || :
mv -v %{buildroot}/usr/scons.1 %{buildroot}%{_mandir}/man1/scons.1 || :
mv -v %{buildroot}/usr/sconsign.1 %{buildroot}%{_mandir}/man1/sconsign.1 || :

%files
%license LICENSE
%{_bindir}/*
%{python3_sitelib}/SCons
%{python3_sitelib}/SCons-%{version}-py*.egg-info
%{_mandir}/man1/scons-time.1*
%{_mandir}/man1/scons.1*
%{_mandir}/man1/sconsign.1*

%changelog
* Anpassung des Specfiles, um unresolvable Abhängigkeiten zu vermeiden
openSUSE Build Service is sponsored by