## 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 Name: reuse Version: 5.0.2 Release: %autorelease Summary: A tool for compliance with the REUSE recommendations # The CC0-1.0 licence applies to json data files, not code. # CC-BY-SA-4.0 is applied to documentation. License: Apache-2.0 AND CC0-1.0 AND CC-BY-SA-4.0 AND GPL-3.0-or-later Url: https://github.com/fsfe/reuse-tool Source0: %pypi_source Patch: 0001-Use-importlib-mode-for-pytest.patch # Build BuildRequires: python3-devel BuildRequires: gettext # Test + patching BuildRequires: git BuildRequires: mercurial # These are development dependencies in the Poetry config, not build # dependencies. They are build dependencies for Fedora packaging. BuildRequires: %{py3_dist Sphinx} BuildRequires: %{py3_dist freezegun} BuildRequires: %{py3_dist furo} BuildRequires: %{py3_dist myst-parser} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist sphinx-autodoc-typehints} BuildRequires: %{py3_dist sphinx_rtd_theme} BuildRequires: %{py3_dist sphinxcontrib-apidoc} Recommends: git Recommends: mercurial BuildArch: noarch %description A tool for compliance with the REUSE recommendations. Essentially, it is a linter that checks for a project's compliance, and a compiler that generates a project's bill of materials. %prep %autosetup -n %{name}-%{version} -S git_am %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel pushd docs PBR_VERSION=%{version} sphinx-build-%{python3_version} . html PBR_VERSION=%{version} sphinx-build-%{python3_version} -b man . manpages rm -rf {html,man}/.{doctrees,buildinfo} popd %install %pyproject_install %pyproject_save_files reuse install -p -m0644 -Dt "${RPM_BUILD_ROOT}%{_mandir}/man1" docs/manpages/*.1 %check %{pytest} %files -n reuse -f %{pyproject_files} %license LICENSES/*.txt %doc README.md CHANGELOG.md docs/html/ %{_bindir}/reuse %{_mandir}/man1/reuse.1* %{_mandir}/man1/reuse-*.1* %changelog ## START: Generated by rpmautospec * Thu Nov 14 2024 Jan Staněk - 5.0.2-1 - Update to version 5.0.2 (fedora#2326191) * Fri Jul 19 2024 Fedora Release Engineering - 4.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 17 2024 Jan Staněk - 4.0.3-1 - Update to version 4.0.3 (rhbz#2283644) * Mon Jul 08 2024 Jan Staněk - 4.0.2-1 - Update to version 4.0.2 (rhbz#2283644) * Sun Jun 09 2024 Python Maint - 3.0.2-2 - Rebuilt for Python 3.13 * Fri May 17 2024 Jan Staněk - 3.0.2-1 - Update to version 3.0.2 (rhbz#2149997) * Fri Jan 26 2024 Fedora Release Engineering - 1.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 1.1.1-3 - Rebuilt for Python 3.12 * Mon Feb 06 2023 Carmen Bianca BAKKER - 1.1.1-2 - Also package documentation files again. * Mon Feb 06 2023 Carmen Bianca BAKKER - 1.1.1-1 - New version. - Adapt package to poetry build system. * Fri Jan 20 2023 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 1.0.0-2 - Rebuilt for Python 3.11 * Thu May 19 2022 Carmen Bianca Bakker - 1.0.0-1 - Update to 1.0.0. Fixes rhbz#2035754. * Fri Jan 21 2022 Fedora Release Engineering - 0.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Sep 26 2021 Maxwell G - 0.13.0-1 - Update to 0.13.0. Fixes rhbz#1970928. - Remove unnecessary pypi_name variable * Fri Jul 23 2021 Fedora Release Engineering - 0.12.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.12.1-2 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Carmen Bianca Bakker - 0.12.1-1 - new version * Wed Jul 29 2020 Fedora Release Engineering - 0.11.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Carmen Bianca Bakker - 0.11.1-1 - new version * Tue May 26 2020 Miro Hrončok - 0.8.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Jan 21 2020 Carmen Bianca Bakker - 0.8.0-1 - New version - Additional build dependency on setuptools-scm. - Performance increase. - Many additional translations. - Deprecated licenses are now recognised. - lint no longer accepts path arguments. Where previously one could do reuse lint SUBDIRECTORY, this is no longer possible. When linting, you must always lint the entire project. To change the project's root, use --root. * Thu Nov 28 2019 Carmen Bianca Bakker - 0.7.0-1 - New version. - Upstream PyPI package renamed from fsfe-reuse to reuse. - No other changes. * Fri Nov 22 2019 Carmen Bianca Bakker - 0.6.0-1 - New upstream version. - Git submodules are now ignored by default. `--include-submodules` reverses this behaviour. * Mon Oct 28 2019 Carmen Bianca Bakker - 0.5.2-1 - new version * Fri Sep 06 2019 Carmen Bianca Bakker - 0.5.0-1 - New upstream version. - Now compatible with REUSE v3.0. - Added Sphinx-generated documentation. - Now also contains code under ASL 2.0. * Mon Aug 19 2019 Miro Hrončok - 0.3.4-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Apr 22 2019 Carmen Bianca Bakker - 0.3.4-1 - New upstream version. - Copyright lines can now start with © in addition to Copyright. * Fri Nov 23 2018 Carmen Bianca Bakker - 0.3.3-1 - Initial package. ## END: Generated by rpmautospec