|
1 | | -%global debug_package %{nil} |
2 | | -%global _binaries_in_noarch_packages_terminate_build 0 |
3 | | - |
4 | 1 | Vendor: Microsoft Corporation |
5 | 2 | Distribution: Azure Linux |
6 | | -%global srcname Genshi |
7 | | - |
8 | 3 | Name: python-genshi |
9 | | -Version: 0.7.5 |
10 | | -Release: 4%{?dist} |
| 4 | +Version: 0.7.9 |
| 5 | +Release: 1%{?dist} |
11 | 6 | Summary: Toolkit for stream-based generation of output for the web |
12 | | - |
13 | | -License: BSD |
14 | | -URL: http://genshi.edgewall.org/ |
15 | | - |
16 | | -Source0: %pypi_source |
17 | | - |
18 | | -BuildArch: noarch |
19 | | - |
| 7 | + |
| 8 | +License: BSD-3-Clause |
| 9 | +URL: https://genshi.edgewall.org/ |
| 10 | + |
| 11 | +Source0: %{pypi_source Genshi} |
| 12 | + |
| 13 | +BuildRequires: gcc |
20 | 14 | BuildRequires: python3-devel |
21 | | -BuildRequires: python3-setuptools |
22 | | -BuildRequires: python3-six |
23 | | - |
| 15 | +BuildRequires: python3dist(pytest) |
| 16 | +BuildRequires: python3-pip |
| 17 | +BuildRequires: python3-wheel |
| 18 | + |
24 | 19 | %description |
25 | 20 | Genshi is a Python library that provides an integrated set of |
26 | 21 | components for parsing, generating, and processing HTML, XML or other |
27 | 22 | textual content for output generation on the web. The major feature is |
28 | 23 | a template language, which is heavily inspired by Kid. |
29 | | - |
30 | | - |
31 | 24 | %package -n python3-genshi |
32 | 25 | Summary: %{summary} |
33 | | - |
| 26 | + |
34 | 27 | %description -n python3-genshi |
35 | 28 | Genshi is a Python library that provides an integrated set of |
36 | 29 | components for parsing, generating, and processing HTML, XML or other |
37 | 30 | textual content for output generation on the web. The major feature is |
38 | | -a template language, which is heavily inspired by Kid. |
39 | | - |
40 | | - |
| 31 | +a template language, which is heavily inspired by Kid. |
41 | 32 | %prep |
42 | | -%autosetup -p1 -n %{srcname}-%{version} |
43 | | - |
| 33 | +%autosetup -p1 -n Genshi-%{version} |
44 | 34 | # Remove bundled egg-info in case it exists |
45 | | -rm -rf %{modname}.egg-info |
46 | | - |
| 35 | +rm -rf %{modname}.egg-info |
47 | 36 | find examples -type f | xargs chmod a-x |
48 | 37 |
|
49 | | - |
| 38 | +%generate_buildrequires |
| 39 | +%pyproject_buildrequires -x i18n |
50 | 40 | %build |
51 | | -%py3_build |
52 | | - |
| 41 | +%pyproject_wheel |
53 | 42 |
|
54 | 43 | %install |
55 | | -%py3_install |
56 | | -rm -r %{buildroot}%{python3_sitelib}/genshi/tests |
57 | | -rm -r %{buildroot}%{python3_sitelib}/genshi/{filters,template}/tests |
58 | | -rm %{buildroot}%{python3_sitelib}/genshi/*.c |
59 | | - |
| 44 | +%pyproject_install |
| 45 | +%pyproject_save_files genshi |
| 46 | +sed -i -e '/\/tests/d' %{pyproject_files} |
| 47 | +sed -i -e '/_speedups.c/d' %{pyproject_files} |
60 | 48 |
|
61 | 49 | %check |
62 | | -%{python3} setup.py test |
63 | | - |
64 | | - |
65 | | -%files -n python3-genshi |
66 | | -%license COPYING |
67 | | -%doc ChangeLog doc examples README.txt |
68 | | -%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info/ |
69 | | -%{python3_sitelib}/genshi/ |
70 | | - |
| 50 | +%pytest |
| 51 | + |
| 52 | +%files -n python3-genshi -f %{pyproject_files} |
| 53 | +%{python3_sitearch}/genshi/_speedups.*.so |
| 54 | +%exclude %{python3_sitearch}/genshi/{_speedups.c,tests} |
| 55 | +%exclude %{python3_sitearch}/genshi/{filters,template}/tests |
| 56 | +# COPYING file already listed in {pyproject_files} |
| 57 | +%doc ChangeLog doc examples README.md |
71 | 58 |
|
72 | 59 | %changelog |
| 60 | +* Sat Feb 22 2025 Akarsh Chaudhary <[email protected]> - 0.7.9-1 |
| 61 | +- Upgrade to version 0.7.9 |
| 62 | +- License verified |
| 63 | + |
73 | 64 | * Wed Mar 24 2021 Henry Li <[email protected]> - 0.7.5-4 |
74 | 65 | - Initial CBL-Mariner import from Fedora 34 (license: MIT). |
75 | 66 | - Disable debuginfo |
|
0 commit comments