You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.8 KiB
75 lines
1.8 KiB
3 years ago
|
Name: python-genshi
|
||
1 month ago
|
Version: 0.7.9
|
||
3 years ago
|
Release: 1%{?dist}
|
||
|
Summary: Toolkit for stream-based generation of output for the web
|
||
|
|
||
1 month ago
|
License: BSD-3-Clause
|
||
3 years ago
|
URL: https://genshi.edgewall.org/
|
||
|
|
||
1 month ago
|
Source0: %{pypi_source Genshi}
|
||
3 years ago
|
|
||
|
BuildRequires: gcc
|
||
|
BuildRequires: python3-devel
|
||
1 month ago
|
BuildRequires: python3dist(pytest)
|
||
3 years ago
|
|
||
|
%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
|
||
1 month ago
|
%autosetup -p1 -n Genshi-%{version}
|
||
3 years ago
|
|
||
|
# 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
|
||
1 month ago
|
%pytest
|
||
3 years ago
|
|
||
|
|
||
|
%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}
|
||
1 month ago
|
%doc ChangeLog doc examples README.md
|
||
3 years ago
|
|
||
|
|
||
|
%changelog
|
||
1 month ago
|
* 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
|
||
3 years ago
|
|