## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 _description %{expand: \ duecredit is being conceived to address the problem of inadequate citation of scientific software and methods, and limited visibility of donation requests for open-source software. It provides a simple framework (at the moment for Python only) to embed publication or other references in the original code so they are automatically collected and reported to the user at the necessary level of reference detail, i.e. only references for actually used functionality will be presented back if software provides multiple citeable implementations.} Name: python-duecredit Version: 0.10.1 Release: %autorelease Summary: Automated collection and reporting of citations License: BSD-2-Clause-Views URL: https://github.com/duecredit/duecredit Source0: %{pypi_source duecredit} BuildArch: noarch %description %{_description} %package -n python3-duecredit Summary: %{summary} BuildRequires: python3-devel BuildRequires: %{py3_dist pytest} BuildRequires: help2man %description -n python3-duecredit %{_description} %package doc Summary: Documentation for %{name} %description doc Documentation for %{name}. %prep %autosetup -n duecredit-%{version} # remove coverage stuff sed -i '/--cov/ d' tox.ini %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l duecredit # Create man pages from --help and --version mkdir man %{py3_test_envvars} help2man --section 1 --no-discard-stderr \ --no-info --output man/duecredit.1 duecredit mkdir -p %{buildroot}%{_mandir}/man1 install -m 0644 man/duecredit.1 %{buildroot}%{_mandir}/man1 %check PYTHONPATH=%{buildroot}/%{python3_sitelib} %{pytest} duecredit/tests --ignore=duecredit/tests/test_io.py %files -n python3-duecredit -f %{pyproject_files} %{_bindir}/duecredit %{_mandir}/man1/duecredit.1* %files doc %license LICENSE %doc examples/ %changelog ## START: Generated by rpmautospec * Tue May 21 2024 Ankur Sinha (Ankur Sinha Gmail) - 0.10.1-2 - fix: remove coverage bits (fixes rh#2280972) * Fri May 17 2024 Packit - 0.10.1-1 - Update to 0.10.1 upstream release - Resolves: rhbz#2280972 * Wed Mar 13 2024 Sandro - 0.9.3-5 - Fix Packit config * Fri Feb 23 2024 Sandro - 0.9.3-4 - Add Packit config * Fri Feb 23 2024 Sandro - 0.9.3-3 - Add man page for executable * Fri Feb 23 2024 Sandro - 0.9.3-2 - Assert existence of license file * Fri Feb 23 2024 Sandro - 0.9.3-1 - Update to 0.9.3 (RHBZ#2249367) * Fri Jan 26 2024 Fedora Release Engineering - 0.9.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.9.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.9.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 0.9.2-3 - Rebuilt for Python 3.12 * Wed Feb 01 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.9.2-2 - feat: update to SPDX indentifier * Wed Feb 01 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.9.2-1 - feat: update to 0.9.2 (fixes rhbz#2166341) * Wed Feb 01 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.9.1-9 - chore: use pyproject macros * Fri Jan 20 2023 Fedora Release Engineering - 0.9.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.9.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.9.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 0.9.1-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.9.1-2 - Rebuilt for Python 3.10 * Sat May 22 2021 Ankur Sinha - 0.9.1-1 - Update to latest release * Sun Mar 28 2021 Ankur Sinha - 0.8.1-1 - Update to latest release * Wed Jan 27 2021 Fedora Release Engineering - 0.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Ankur Sinha - 0.8.0-3 - Explicitly BR setuptools * Tue May 26 2020 Miro Hrončok - 0.8.0-2 - Rebuilt for Python 3.9 * Tue Apr 21 2020 Ankur Sinha - 0.8.0-1 - Update to 0.8.0 - Remove py2 bits * Thu Jan 30 2020 Fedora Release Engineering - 0.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.7.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.7.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Apr 10 2019 Ankur Sinha - 0.7.0-1 - Update to 0.7.0 * Sat Feb 02 2019 Fedora Release Engineering - 0.6.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Nov 04 2018 Ankur Sinha - 0.6.4-2 - Shorten summary - Remove stray empty line in description - Improve description for doc package * Sat Nov 03 2018 Ankur Sinha - 0.6.4-1 - Update to new version - Only install py3 bin - Use macro for description - use pydist macros - use pypi_source macro * Wed Nov 11 2015 Igor Gnatenko - 0.4.4.1-1 - Initial package ## END: Generated by rpmautospec