diff --git a/python-repoze.tm2.spec b/python-repoze.tm2.spec new file mode 100644 index 0000000000000000000000000000000000000000..410a8d0bef24e4bbda9079afce728f4fa7f07162 --- /dev/null +++ b/python-repoze.tm2.spec @@ -0,0 +1,68 @@ +# Created by pyp2rpm-3.3.8 +%global pypi_name repoze.tm2 +%global pypi_version 2.1 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1 +Summary: Per-request transactions via WSGI middleware + +License: BSD +URL: http://www.repoze.org +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(coverage) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(sphinx) + +%description +repoze.tm2 (Transaction Manager) Middleware which uses the ZODB transaction +manager to wrap a call to + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(coverage) +Requires: python3dist(sphinx) +Requires: python3dist(transaction) +%description -n python3-%{pypi_name} +repoze.tm2 (Transaction Manager) Middleware which uses the ZODB transaction +manager to wrap a call to + +%package help +Summary: repoze.tm2 documentation +%description help +Documentation for repoze.tm2 + +%prep +%autosetup -n %{pypi_name}-%{pypi_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.txt +%doc README.rst +%{python3_sitelib}/repoze +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}-*.pth +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%files help +%license LICENSE.txt +%doc html + +%changelog +* Wed Jun 29 2022 konglidong - 2.1-1 +- Initial package. diff --git a/repoze.tm2-2.1.tar.gz b/repoze.tm2-2.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..048a12faa2b3ccf146b1726298b3fc99b7305413 Binary files /dev/null and b/repoze.tm2-2.1.tar.gz differ