## START: Set by rpmautospec
## (rpmautospec version 0.7.2)
## 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 srcname python-redmine
%global pypi_name redmine

Name:           python-%{pypi_name}
Version:        2.5.0
Release:        %autorelease
Summary:        Library for communicating with a Redmine project management application

License:        Apache-2.0
URL:            https://github.com/maxtepkeev/python-redmine
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel

%global _description %{expand:
Python-Redmine is a library for communicating with a Redmine project management
application. Redmine exposes some of it’s data via REST API for which
Python-Redmine provides a simple but powerful Pythonic API inspired by a
well-known Django ORM.}

%description %_description

%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name} %_description


%prep
%autosetup -n %{srcname}-%{version}
rm -r python_redmine.egg-info

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install

%pyproject_save_files redminelib

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst

%changelog
## START: Generated by rpmautospec
* Sat Nov 02 2024 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 2.5.0-1
- Update to 2.5.0

* Sat Nov 19 2022 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 2.3.0-2
- Use modern Fedora packaging macros

* Tue Oct 27 2020 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 2.3.0-1
- Initial package.

## END: Generated by rpmautospec