Blame python-klein.spec

133ce57
%global pypi_name klein
133ce57
133ce57
Name:           python-%{pypi_name}
133ce57
Version:        20.6.0
35e7e26
Release:        2%{?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
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)
133ce57
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
133ce57
%autosetup -n %{pypi_name}-%{version}
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
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)