## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name scons # Package documentation files %bcond_without doc # Install prebuilt documentation %bcond_without prebuilt_doc Name: scons Version: 4.8.1 Release: %autorelease Summary: An Open Source software construction tool License: MIT URL: http://www.scons.org Source0: %{pypi_source} Source1: https://scons.org/doc/production/scons-doc-%{version}.tar.gz BuildArch: noarch BuildRequires: make %description SCons is an Open Source software construction tool--that is, a build tool; an improved substitute for the classic Make utility; a better way to build software. SCons is based on the design which won the Software Carpentry build tool design competition in August 2000. SCons "configuration files" are Python scripts, eliminating the need to learn a new build tool syntax. SCons maintains a global view of all dependencies in a tree, and can scan source (or other) files for implicit dependencies, such as files specified on #include lines. SCons uses MD5 signatures to rebuild only when the contents of a file have really changed, not just when the timestamp has been touched. SCons supports side-by-side variant builds, and is easily extended with user- defined Builder and/or Scanner objects. %if %{with doc} %package doc Summary: An Open Source software construction tool BuildArch: noarch %if 0%{without prebuilt_doc} BuildRequires: python3-sphinx >= 5.1.1 BuildRequires: python3-sphinx_rtd_theme BuildRequires: rst2pdf, fop, ghostscript BuildRequires: python3dist(readme-renderer) %endif %description doc Scons documentation. %endif %package -n python3-%{name} Summary: An Open Source software construction tool BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel %py_provides scons-python3 %py_provides python3-%{name} %py_provides SCons %py_provides scons %description -n python3-%{name} SCons is an Open Source software construction tool--that is, a build tool; an improved substitute for the classic Make utility; a better way to build software. SCons is based on the design which won the Software Carpentry build tool design competition in August 2000. SCons "configuration files" are Python scripts, eliminating the need to learn a new build tool syntax. SCons maintains a global view of all dependencies in a tree, and can scan source (or other) files for implicit dependencies, such as files specified on #include lines. SCons uses MD5 signatures to rebuild only when the contents of a file have really changed, not just when the timestamp has been touched. SCons supports side-by-side variant builds, and is easily extended with user- defined Builder and/or Scanner objects. %prep %if 0%{with prebuilt_doc} %autosetup -n SCons-%{version} -N %setup -n SCons-%{version} -q -T -D -a 1 %else %autosetup -N -T -b 0 %endif %generate_buildrequires %pyproject_buildrequires -x tests %build %pyproject_wheel %install %pyproject_install %pyproject_save_files SCons rm -rfv %{buildroot}%{_bindir}/__pycache__ rm -rfv %{buildroot}%{python3_sitelib}/SCons/Tool/docbook/__pycache__ # Install manpages mkdir -p %{buildroot}%{_mandir}/man1 install -pm 644 *.1 %{buildroot}%{_mandir}/man1/ rm -f %{buildroot}%{_prefix}/*.1 %files -n python3-%{name} -f %{pyproject_files} %{_bindir}/%{name} %{_bindir}/%{name}ign %{_bindir}/%{name}-configure-cache %{_mandir}/man1/* # This is an ugly hack to fix FTBFS. The actual issue should be found and fixed. -Gwyn Ciesla %exclude %{python3_sitelib}/SCons/Tool/docbook/docbook-xsl-*/.* %if %{with doc} %files doc %if 0%{without prebuilt_doc} %doc build/doc/PDF build/doc/HTML build/doc/TEXT %else %doc PDF HTML EPUB TEXT %endif %license LICENSE %endif %changelog ## START: Generated by rpmautospec * Thu Sep 05 2024 Antonio Trande - 4.8.1-1 - Release 4.8.1 * Sat Jul 20 2024 Fedora Release Engineering - 4.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 10 2024 Antonio Trande - 4.8.0-1 - Release 4.8.0 * Fri Jun 07 2024 Python Maint - 4.7.0-3 - Rebuilt for Python 3.13 * Fri May 31 2024 Gwyn Ciesla - 4.7.0-2 - Fix FTBFS * Fri Mar 22 2024 Antonio Trande - 4.7.0-1 - Release 4.7.0 rhbz#2270200 * Sat Jan 27 2024 Fedora Release Engineering - 4.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 07 2024 Yaakov Selkowitz - 4.6.0-3 - Remove unnecessary explicit python-build dependency * Fri Jan 05 2024 Yaakov Selkowitz - 4.6.0-2 - Avoid python-build dependency * Thu Jan 04 2024 Antonio Trande - 4.6.0-1 - Release 4.6.0 * Mon Dec 11 2023 Troy Dawson - 4.5.2-4 - Conditionals for el10 * Sat Jul 22 2023 Fedora Release Engineering - 4.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 4.5.2-2 - Rebuilt for Python 3.12 * Tue Mar 21 2023 Antonio Trande - 4.5.2-1 - Release 4.5.2 * Tue Mar 07 2023 Antonio Trande - 4.5.1-1 - Release 4.5.1 * Mon Mar 06 2023 Antonio Trande - 4.5.0-1 - Release 4.5.0 * Sat Jan 21 2023 Fedora Release Engineering - 4.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 01 2022 Lumir Balhar - 4.4.0-3 - Change location of pathfix.py * Thu Sep 01 2022 Antonio Trande - 4.4.0-2 - Build documentation * Fri Aug 12 2022 Antonio Trande - 4.4.0-1 - Release 4.4.0 * Sat Jul 23 2022 Fedora Release Engineering - 4.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 4.3.0-4 - Rebuilt for Python 3.11 * Sat Jan 22 2022 Fedora Release Engineering - 4.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 15 2021 Antonio Trande - 4.3.0-2 - Rebuild on EPEL9 * Sun Nov 28 2021 Antonio Trande - 4.3.0-1 - Release 4.3.0 * Mon Aug 09 2021 Antonio Trande - 4.2.0-1 - Release 4.2.0 * Fri Jul 23 2021 Fedora Release Engineering - 4.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 4.1.0-6 - Rebuilt for Python 3.10 * Sun May 23 2021 Antonio Trande - 4.1.0-5 - Fix eln builds * Sun May 23 2021 Robert-André Mauchin - 4.1.0-4 - Install prebuilt docs to avoid dependency on fop, affected by the Java apocalypse * Fri Apr 16 2021 Antonio Trande - 4.1.0-3 - Prepare this package for epel8 + python38 * Fri Mar 05 2021 Antonio Trande <3974791-anto.trande@users.noreply.gitlab.com> - 4.1.0-2 - Add Make BR * Sat Jan 30 2021 Antonio T - 4.1.0-1 - Release 4.1.0 * Wed Jan 27 2021 Fedora Release Engineering - 4.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 13 2021 Antonio T - 4.0.1-4 - Patched for Python-310 (rhbz#1914318) * Mon Oct 05 2020 sagitter - 4.0.1-3 - BuildRequires python3-setuptools explicitly * Wed Jul 29 2020 Fedora Release Engineering - 4.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 17 2020 sagitter - 4.0.1-1 - Release 4.0.1 * Sun Jul 12 2020 sagitter - 4.0.0-1 - Release 4.0.0 * Tue May 26 2020 Miro Hrončok - 3.1.2-4 - Rebuilt for Python 3.9 * Fri Feb 07 2020 sagitter - 3.1.2-3 - Remove missing dependencies (fop) for building doc * Thu Jan 30 2020 Fedora Release Engineering - 3.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Dec 17 2019 sagitter - 3.1.2-1 - Update to 3.1.2 * Fri Nov 15 2019 sagitter - 3.1.1-5 - Fix Changelog * Fri Nov 15 2019 sagitter - 3.1.1-4 - Python2 SCons no longer built on Fedora 32+ * Thu Oct 03 2019 Miro Hrončok - 3.1.1-3 - Rebuilt for Python 3.8.0rc1 (#1748018) * Tue Aug 27 2019 Mosaab Alzoubi - 3.1.1-2 - Update to 3.1.1 #2 * Tue Aug 27 2019 Mosaab Alzoubi - 3.1.1-1 - Update to 3.1.1 * Mon Aug 19 2019 Miro Hrončok - 3.1.0-2 - Rebuilt for Python 3.8 * Fri Aug 16 2019 sagitter - 3.1.0-1 - Release 3.1.0 * Mon Aug 12 2019 sagitter - 3.0.5-5 - Provides *-3 dummy commands on Fedora and EPEL7+ * Sat Aug 03 2019 sagitter - 3.0.5-4 - Remove wrong links of scons-2 * Wed Jul 24 2019 sagitter - 3.0.5-3 - Fix builds on EPEL7 * Tue Jul 23 2019 sagitter - 3.0.5-2 - Unversioned commands point to Python3 on Fedora| Obsolete Python2 version on Fedora * Wed Mar 27 2019 sagitter - 3.0.5-1 - Release 3.0.5 * Sat Mar 23 2019 Fabian Affolter - 3.0.4-5 - Update changelog (typos and style) * Thu Mar 14 2019 sagitter - 3.0.4-4 - Fix Provides of scons-python3 * Thu Mar 14 2019 sagitter - 3.0.4-3 - Reorganize distro macros * Sat Feb 02 2019 Fedora Release Engineering - 3.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jan 23 2019 sagitter - 3.0.4-1 - Release 3.0.4 * Wed Aug 22 2018 sagitter - 3.0.1-9 - Reintroduce python2-scons on fedora 30+ * Wed Aug 22 2018 sagitter - 3.0.1-8 - Deprecate Python2 on fedora 30+ and epel 8+; use python3_other macros (https://fedoraproject.org/wiki/User:Bkabrda/EPEL7_Python3) * Sat Jul 21 2018 Honza Horak - 3.0.1-7 - Do not build python2-scons on rhel>7 * Sat Jul 14 2018 Fedora Release Engineering - 3.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 3.0.1-5 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 3.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 23 2018 Merlin Mathesius - 3.0.1-3 - Cleanup spec file conditionals * Fri Dec 29 2017 sagitter - 3.0.1-2 - Provide Python2 and Python3 scons * Wed Nov 29 2017 sagitter - 3.0.1-1 - Update to 3.0.1 * Tue Oct 03 2017 Fabian Affolter - 3.0.0-1 - * Tue Oct 03 2017 Fabian Affolter - 2.5.1-1 - Update to new upstream version 3.0.0 (rhbz#1497891) * Thu Jul 27 2017 Fedora Release Engineering - 2.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Nov 15 2016 Fabian Affolter - 2.5.1-1 - * Tue Nov 15 2016 Fabian Affolter - 2.5.1-1 - Update to new upstream version 2.5.1 (rhbz#1391798) * Mon Jun 13 2016 Fabian Affolter - 2.5.0-1 - * Mon Jun 13 2016 Fabian Affolter - 2.5.0-1 - Update to new upstream version 2.5.0 * Sat May 07 2016 Fabian Affolter - 2.4.1-2 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec