initial package for EPEL9

epel9 imports/e9/python-genshi-0.7.7-1.el9
Felix Schwarz 3 years ago
parent f6d88c0acf
commit 1c49ed6bae

4
.gitignore vendored

@ -0,0 +1,4 @@
/*upstream*.git
/*.src.rpm
/results_*
/Genshi-0.7.*

@ -0,0 +1,73 @@
%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
* Tue May 31 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.7-1
- initial package for EPEL9

@ -0,0 +1 @@
SHA512 (Genshi-0.7.7.tar.gz) = b0a3dee68523292f0672a180c5f2cfbdf48205d82286359b9fac9f668cbc2806c649d1e158d6fb8ead5b1cc5cd44eefe9d1cd79077f96925b8d24dd8e746b40f
Loading…
Cancel
Save