## START: Set by rpmautospec
## (rpmautospec version 0.6.0)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 3;
    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

Name:           python-k5test
Version:        0.10.3
Release:        %autorelease
Summary:        Library for testing Python apps in self-contained Kerberos 5 environments
# main source code is ISC
# k5test/realm.py is HPND-export-US-modify
License:        ISC AND HPND-export-US-modify
URL:            https://github.com/pythongssapi/k5test
Source:         %{pypi_source k5test}
# https://github.com/pythongssapi/k5test/pull/26
Patch:          0001-Include-both-license-files.patch
BuildArch:      noarch

BuildRequires:  python3-devel

%global common_description %{expand:
k5test is a library for setting up self-contained Kerberos 5 environments, and
running Python unit tests inside those environments.  It is based on the file
of the same name found alongside the MIT Kerberos 5 unit tests.}


%description %{common_description}


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


%description -n python3-k5test %{common_description}


%prep
%autosetup -n k5test-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files k5test


%check
%pyproject_check_import


%files -n python3-k5test -f %{pyproject_files}
%doc README.md


%changelog
## START: Generated by rpmautospec
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Thu Sep 28 2023 Carl George <carlwgeorge@fedoraproject.org> - 0.10.3-1
- Initial package, resolves rhbz#2238438
## END: Generated by rpmautospec