## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 16; 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 managesieve # Pull from GitLab (prerequisite for Packit) %global forgeurl https://gitlab.com/htgoebel/managesieve Name: python-%{pypi_name} Version: 0.7.1 Release: %autorelease Summary: Accessing a Sieve-Server for managing Sieve scripts %global tag v%{version} %forgemeta License: PSF-2.0 AND GPL-3.0-only URL: https://managesieve.readthedocs.io/ Source0: %forgesource # ssl.wrap_socket is deprecated and Python 3.12 removed it entirely # https://gitlab.com/htgoebel/managesieve/-/issues/8 Patch: fix_ssl_wrap_socket_error.patch BuildArch: noarch BuildRequires: python3-devel, git-core BuildRequires: python3-pytest BuildRequires: make BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme %description This module allows accessing a Sieve-Server for managing Sieve scripts there. It is accompanied by a simple yet functional user application ‘sieveshell’. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} This module allows accessing a Sieve-Server for managing Sieve scripts there. It is accompanied by a simple yet functional user application ‘sieveshell’. %prep %forgeautosetup -p1 -S git %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel # Generate man pages using Sphinx pushd docs make man popd %install mkdir -p %{buildroot}/%{_mandir}/man1 cp -a docs/_build/man/*.1 %{buildroot}/%{_mandir}/man1 cp %{buildroot}/%{_mandir}/man1/%{pypi_name}.1 %{buildroot}/%{_mandir}/man1/sieveshell.1 %pyproject_install %pyproject_save_files managesieve %check %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.txt HISTORY %{_mandir}/man1/%{pypi_name}.1* %{_mandir}/man1/sieveshell.1* %{_bindir}/sieveshell %changelog * Fri Nov 17 2023 Marius Hoch - 0.7.1-16 - Fix missing trailing newline in fix_ssl_wrap_socket_error.patch * Thu Nov 16 2023 Marius Hoch - 0.7.1-15 - Fix fix_ssl_wrap_socket_error.patch * Fri Nov 10 2023 Sandro - 0.7.1-14 - Remove comment from %%check - Align sections * Fri Nov 10 2023 Sandro - 0.7.1-13 - Add man pages * Fri Nov 10 2023 Sandro - 0.7.1-12 - Add Packit config * Fri Nov 10 2023 Sandro - 0.7.1-11 - Use forge macros and pull from GitLab * Fri Jul 21 2023 Fedora Release Engineering - 0.7.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Sandro - 0.7.1-6 - Add missing changelog entries * Thu Jun 29 2023 Sandro - 0.7.1-5 - Migrate to SPDX license * Thu Jun 29 2023 Sandro - 0.7.1-4 - Fix ssl.wrap_socket AttributeError * Tue Jun 13 2023 Python Maint - 0.7.1-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jan 6 2023 Steve Traylen - 0.7.1-1 - Update to 0.7.1 - LICENSE file now included in release - Migrate to pyproject macros * Fri Jul 22 2022 Fedora Release Engineering - 0.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.6-9 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.6-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Nov 18 2020 Steve Traylen - 0.6-4 - Include LICENSE file * Fri Nov 13 2020 Germano Massullo - 0.6-3 - rearranged %%check section - added LICENSE file * Wed Nov 11 2020 Steve Traylen - 0.6-2 - BR for pytest-runner for tests * Thu Oct 29 2020 Steve Traylen - 0.6-1 - Initial release