## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## 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 modname irc %global projname %{modname} %bcond_without tests Name: python-%{projname} Version: 20.3.0 Release: %autorelease Summary: Full-featured Python IRC library for Python License: MIT URL: https://github.com/jaraco/%{projname} Source0: %{pypi_source %{projname}} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters Patch: 0001-Disable-linters.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: This library provides a low-level implementation of the IRC protocol for Python. It provides an event-driven IRC client framework. It has a fairly thorough support for the basic IRC protocol, CTCP, and DCC connections.} %description %_description %package -n python3-%{projname} Summary: %{summary} %description -n python3-%{projname} %_description %prep %autosetup -n %{projname}-%{version} %if 0%{?rhel} # relax setuptools requirement in EPEL sed -i 's/setuptools>=56/setuptools/' pyproject.toml %endif %generate_buildrequires %if %{with tests} %pyproject_buildrequires -t %else %pyproject_buildrequires %endif %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} %check %if %{with tests} %tox %else %pyproject_check_import -e irc.tests* %endif %files -n python3-%{projname} -f %{pyproject_files} %license LICENSE %doc README.rst NEWS.rst %changelog * Fri Sep 08 2023 Ondrej Mosnáček - 20.3.0-1 - Update to version 20.3.0 * Fri Jul 21 2023 Fedora Release Engineering - 20.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 20.1.0-4 - Rebuilt for Python 3.12 * Wed Mar 15 2023 Ondrej Mosnáček - 20.1.0-3 - Adjust for EPEL9 * Tue Mar 14 2023 Ondrej Mosnáček - 20.1.0-2 - Add comment exaplaining the downstream patch * Tue Mar 14 2023 Ondrej Mosnáček - 20.1.0-1 - Initial import (fedora#2164880)