133ce57
%global pypi_name klein
133ce57
133ce57
Name:           python-%{pypi_name}
b288305
Version:        23.5.0
399f0bd
Release:        4%{?dist}
133ce57
Summary:        Python microframework built on werkzeug + twisted.web
133ce57
133ce57
License:        MIT
133ce57
URL:            https://github.com/twisted/klein
133ce57
Source0:        %{pypi_source}
133ce57
BuildArch:      noarch
d8fe93d
Patch0:         imp-removal.patch
133ce57
133ce57
BuildRequires:  python3-devel
133ce57
BuildRequires:  python3dist(attrs)
133ce57
BuildRequires:  python3dist(hyperlink)
133ce57
BuildRequires:  python3dist(incremental)
133ce57
BuildRequires:  python3dist(setuptools)
133ce57
BuildRequires:  python3dist(six)
133ce57
BuildRequires:  python3dist(tubes)
133ce57
BuildRequires:  python3dist(twisted) >= 15.5
133ce57
BuildRequires:  python3dist(werkzeug)
905c5d4
BuildRequires:  python3dist(zope-interface)
133ce57
BuildRequires:  python3dist(sphinx)
133ce57
BuildRequires:  python3dist(sphinx-rtd-theme)
133ce57
133ce57
%description
133ce57
Klein is a Web Micro-Framework built on Twisted and Werkzeug.
133ce57
133ce57
%package -n     python3-%{pypi_name}
133ce57
Summary:        %{summary}
133ce57
%{?python_provide:%python_provide python3-%{pypi_name}}
133ce57
133ce57
%description -n python3-%{pypi_name}
133ce57
Klein is a Web Micro-Framework built on Twisted and Werkzeug.
133ce57
133ce57
%package -n python-%{pypi_name}-doc
133ce57
Summary:        klein documentation
133ce57
133ce57
%description -n python-%{pypi_name}-doc
133ce57
Documentation for klein
133ce57
133ce57
%prep
d8fe93d
%autosetup -n %{pypi_name}-%{version} -p0
133ce57
# Remove bundled egg-info
133ce57
rm -rf %{pypi_name}.egg-info
133ce57
133ce57
%build
133ce57
%py3_build
133ce57
# generate html docs
133ce57
PYTHONPATH=${PWD} sphinx-build-3 docs html
133ce57
# remove the sphinx-build leftovers
133ce57
rm -rf html/.{doctrees,buildinfo}
133ce57
133ce57
%install
133ce57
%py3_install
133ce57
133ce57
%files -n python3-%{pypi_name}
133ce57
%license LICENSE
133ce57
%doc README.rst
133ce57
%{python3_sitelib}/%{pypi_name}/
133ce57
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
133ce57
133ce57
%files -n python-%{pypi_name}-doc
133ce57
%doc html
133ce57
%license LICENSE
133ce57
133ce57
%changelog
399f0bd
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 23.5.0-4
399f0bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
399f0bd
fcf9dad
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 23.5.0-3
fcf9dad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
fcf9dad
91b357e
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 23.5.0-2
91b357e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
91b357e
b288305
* Wed Jul 05 2023 Gwyn Ciesla <gwync@protonmail.com> - 23.5.0-1
b288305
- 23.5.0
b288305
98756fa
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 20.6.0-9
98756fa
- Rebuilt for Python 3.12
98756fa
7618538
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20.6.0-8
7618538
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
7618538
0ae4fbf
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20.6.0-7
0ae4fbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0ae4fbf
329ab58
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 20.6.0-6
329ab58
- Rebuilt for Python 3.11
329ab58
207eb33
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20.6.0-5
207eb33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
207eb33
0e309e5
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.6.0-4
0e309e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0e309e5
5e086cb
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 20.6.0-3
5e086cb
- Rebuilt for Python 3.10
5e086cb
35e7e26
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.6.0-2
35e7e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
35e7e26
133ce57
* Sun Aug 23 2020 Neal Gompa <ngompa13@gmail.com> - 20.6.0-1
133ce57
- Initial package (#1870883)