## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 module_name abimap Name: python-%{module_name} Version: 0.4.0 Release: %autorelease License: MIT Summary: A helper for library maintainers to use symbol versioning Url: https://github.com/ansasaki/abimap Source: https://files.pythonhosted.org/packages/source/a/%{module_name}/%{module_name}-%{version}.tar.gz # This patch removes the test which depends on pytest-console-scripts Patch0: python-abimap-0.4.0-disable-script-test.patch # This patch removes sphinx napoleon extension Patch1: python-abimap-0.3.1-remove-docs-napoleon.patch # This patch removes sphinx rtd theme Patch2: python-abimap-0.4.0-remove-docs-rtd-theme.patch # This patch adjusts the requirements-test.txt Patch3: python-abimap-0.4.0-adjust-test-requirements.patch # This patch set the license field in the pyproject.toml as a dictionary Patch4: python-abimap-0.4.0-license-dictionary.patch BuildArch: noarch BuildRequires: make BuildRequires: python%{python3_pkgversion}-devel %description This script allows to generate and update symbol version linker scripts which adds version information to the exported symbols. The script is intended to be integrated as part of a shared library build to check for changes in the set of exported symbols and update the symbol version linker script accordingly. %package -n python%{python3_pkgversion}-%{module_name} Summary: A helper for library maintainers to use symbol versioning %py_provides python%{python3_pkgversion}-%{module_name} %description -n python%{python3_pkgversion}-%{module_name} This script allows to generate and update symbol version linker scripts which adds version information to the exported symbols. The script is intended to be integrated as part of a shared library build to check for changes in the set of exported symbols and update the symbol version linker script accordingly. %package -n python-%{module_name}-doc Summary: Documentation for python-%{module_name} %description -n python-%{module_name}-doc Documentation for python-%{module_name} %prep %autosetup -n %{module_name}-%{version} -p1 # Remove bundled egg-info rm -rf %{module_name}.egg-info %generate_buildrequires # Include test requirements %pyproject_buildrequires -t %{_builddir}/%{module_name}-%{version}/requirements-test.txt %build %pyproject_wheel # Generate html docs PYTHONPATH=${PWD}/src:${PWD}/tests \ %{python3} -m sphinx -E -b html docs html # Generate manpage PYTHONPATH=${PWD}/src:${PWD}/tests \ %{python3} -m sphinx -E -b man docs man # Remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %pyproject_install # Install man page mkdir -p %{buildroot}%{_mandir}/man1 install ${PWD}/man/abimap.1 %{buildroot}%{_mandir}/man1/abimap.1 %check %tox %files -n python%{python3_pkgversion}-%{module_name} %license LICENSE %doc AUTHORS.rst CHANGELOG.rst README.rst %{_bindir}/abimap %dir %{python3_sitelib}/abimap %{python3_sitelib}/abimap/* %{python3_sitelib}/abimap-%{version}.dist-info/ %{_mandir}/man1/abimap.1* %files -n python-%{module_name}-doc %license LICENSE %doc html %changelog ## START: Generated by rpmautospec * Fri Jul 11 2025 Anderson Toshiyuki Sasaki - 0.4.0-2 - Adjust license in the pyproject.toml to be a dictionary * Fri Jul 11 2025 Anderson Toshiyuki Sasaki - 0.4.0-1 - Update to upstream version 0.4.0 * Wed Feb 05 2025 Anderson Toshiyuki Sasaki - 0.3.2-23 - Sort releases using natural sorting * Fri Jul 19 2024 Fedora Release Engineering - 0.3.2-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.3.2-21 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.3.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.3.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.3.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Anderson Toshiyuki Sasaki - 0.3.2-17 - Migrated to SPDX license * Wed Jun 14 2023 Python Maint - 0.3.2-16 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.3.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.3.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.3.2-13 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.3.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.3.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.3.2-10 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.3.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 08 2021 Tom Stellard - 0.3.2-8 - Add BuildRequires: make * Tue Jul 28 2020 Fedora Release Engineering - 0.3.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.3.2-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.3.2-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.3.2-3 - Rebuilt for Python 3.8 * Mon Aug 05 2019 Anderson Toshiyuki Sasaki - 0.3.2-2 - Adding missing sources * Mon Aug 05 2019 Anderson Toshiyuki Sasaki - 0.3.2-1 - Updated to version 0.3.2 - Fixed broken builds due to changes in warning output - Changed tests to check error messages - Added python 3.7 to testing matrix - Added requirement to verify SNI when checking URLs in docs * Fri Jul 26 2019 Fedora Release Engineering - 0.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Sep 27 2018 Anderson Toshiyuki Sasaki - 0.3.1-2 - Make the specfile compatible with EPEL7 - Fixed incompatible macros - Fixed the patch to skip a test in older pytest versions - Added patches to remove sphinx extensions not available in EPEL7 * Mon Aug 20 2018 Anderson Toshiyuki Sasaki - 0.3.1-1 - Updated to version 0.3.1 - argparse-manpage is no longer required since manpage is generated by sphinx * Wed Aug 08 2018 Anderson Toshiyuki Sasaki - 0.3.0-2 - Fixed a bug in the order of releases in output map - Added Requires for setuptools - Addressed a bug in the order of releases in output map * Tue Aug 07 2018 Anderson Toshiyuki Sasaki - 0.3.0-1 - Initial package for python-abimap-0.3.0 ## END: Generated by rpmautospec