From 5d47688e8e1d724973701326a096ae26b27bb567 Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 1 Jul 2023 16:05:06 +0300 Subject: [PATCH] import python-genshi-0.7.7-1.el9 --- .gitignore | 1 + .python-genshi.metadata | 1 + SPECS/python-genshi.spec | 76 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 .python-genshi.metadata create mode 100644 SPECS/python-genshi.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bd35de7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Genshi-0.7.7.tar.gz diff --git a/.python-genshi.metadata b/.python-genshi.metadata new file mode 100644 index 0000000..311a8a6 --- /dev/null +++ b/.python-genshi.metadata @@ -0,0 +1 @@ +522bab5db5a88a8bcb193435c44858dfec9929f4 SOURCES/Genshi-0.7.7.tar.gz diff --git a/SPECS/python-genshi.spec b/SPECS/python-genshi.spec new file mode 100644 index 0000000..e9bf0f0 --- /dev/null +++ b/SPECS/python-genshi.spec @@ -0,0 +1,76 @@ +%global srcname Genshi + +Name: python-genshi +Version: 0.7.7 +Release: 1%{?dist} +Summary: Toolkit for stream-based generation of output for the web + +License: BSD +URL: https://genshi.edgewall.org/ + +Source0: %pypi_source + +#BuildArch: noarch +BuildRequires: gcc +BuildRequires: python3-devel + +%description +Genshi is a Python library that provides an integrated set of +components for parsing, generating, and processing HTML, XML or other +textual content for output generation on the web. The major feature is +a template language, which is heavily inspired by Kid. + + +%package -n python3-genshi +Summary: %{summary} + +%description -n python3-genshi +Genshi is a Python library that provides an integrated set of +components for parsing, generating, and processing HTML, XML or other +textual content for output generation on the web. The major feature is +a template language, which is heavily inspired by Kid. + + +%prep +%autosetup -p1 -n %{srcname}-%{version} + +# Remove bundled egg-info in case it exists +rm -rf %{modname}.egg-info + +find examples -type f | xargs chmod a-x + +%generate_buildrequires +%pyproject_buildrequires -x i18n + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files genshi + +sed -i -e '/\/tests/d' %{pyproject_files} +sed -i -e '/_speedups.c/d' %{pyproject_files} + + +%check +%{python3} setup.py test + + +%files -n python3-genshi -f %{pyproject_files} +%{python3_sitearch}/genshi/_speedups.*.so +%exclude %{python3_sitearch}/genshi/{_speedups.c,tests} +%exclude %{python3_sitearch}/genshi/{filters,template}/tests +# COPYING file already listed in {pyproject_files} +%doc ChangeLog doc examples README.txt + + +%changelog +* Sat Jul 01 2023 Arkady L. Shane - 0.7.7-1 +- Rebuilt for MSVSphere 9.2 + +* Tue May 31 2022 Felix Schwarz - 0.7.7-1 +- initial package for EPEL9 +