|
|
|
@ -1,18 +1,16 @@
|
|
|
|
|
%global srcname Genshi
|
|
|
|
|
|
|
|
|
|
Name: python-genshi
|
|
|
|
|
Version: 0.7.7
|
|
|
|
|
Version: 0.7.9
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Toolkit for stream-based generation of output for the web
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://genshi.edgewall.org/
|
|
|
|
|
|
|
|
|
|
Source0: %pypi_source
|
|
|
|
|
Source0: %{pypi_source Genshi}
|
|
|
|
|
|
|
|
|
|
#BuildArch: noarch
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Genshi is a Python library that provides an integrated set of
|
|
|
|
@ -32,7 +30,7 @@ a template language, which is heavily inspired by Kid.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
|
|
%autosetup -p1 -n Genshi-%{version}
|
|
|
|
|
|
|
|
|
|
# Remove bundled egg-info in case it exists
|
|
|
|
|
rm -rf %{modname}.egg-info
|
|
|
|
@ -56,7 +54,7 @@ sed -i -e '/_speedups.c/d' %{pyproject_files}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{python3} setup.py test
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-genshi -f %{pyproject_files}
|
|
|
|
@ -64,10 +62,13 @@ sed -i -e '/_speedups.c/d' %{pyproject_files}
|
|
|
|
|
%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
|
|
|
|
|
%doc ChangeLog doc examples README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue May 31 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.7-1
|
|
|
|
|
- initial package for EPEL9
|
|
|
|
|
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.7.9-1
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Sat Oct 12 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.9-1
|
|
|
|
|
- initial package for EPEL 10
|
|
|
|
|
|