diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..504c54c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/klein-20.6.0.tar.gz diff --git a/python-klein.spec b/python-klein.spec new file mode 100644 index 0000000..5db1919 --- /dev/null +++ b/python-klein.spec @@ -0,0 +1,69 @@ +%global pypi_name klein + +Name: python-%{pypi_name} +Version: 20.6.0 +Release: 1%{?dist} +Summary: Python microframework built on werkzeug + twisted.web + +License: MIT +URL: https://github.com/twisted/klein +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(attrs) +BuildRequires: python3dist(hyperlink) +BuildRequires: python3dist(incremental) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(six) +BuildRequires: python3dist(tubes) +BuildRequires: python3dist(twisted) >= 15.5 +BuildRequires: python3dist(werkzeug) +BuildRequires: python3dist(zope.interface) +BuildRequires: python3dist(sphinx) +BuildRequires: python3dist(sphinx-rtd-theme) + +%description +Klein is a Web Micro-Framework built on Twisted and Werkzeug. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Klein is a Web Micro-Framework built on Twisted and Werkzeug. + +%package -n python-%{pypi_name}-doc +Summary: klein documentation + +%description -n python-%{pypi_name}-doc +Documentation for klein + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build +# generate html docs +PYTHONPATH=${PWD} sphinx-build-3 docs html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ + +%files -n python-%{pypi_name}-doc +%doc html +%license LICENSE + +%changelog +* Sun Aug 23 2020 Neal Gompa - 20.6.0-1 +- Initial package (#1870883) diff --git a/sources b/sources new file mode 100644 index 0000000..472c9f3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (klein-20.6.0.tar.gz) = 128b180c51c4457d3ffcd088e127d671d8260c3d62a80129bafbf6e3a2e47945290cd5ec695a64a1795465199e14c8f367445f8d90649f6384fd8338a53bb48e