Skip to content

Commit ce6a809

Browse files
authored
Upgrade: python-genshi to version 0.7.9 (microsoft#13098)
1 parent e1d3c30 commit ce6a809

File tree

3 files changed

+39
-48
lines changed

3 files changed

+39
-48
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"Genshi-0.7.5.tar.gz": "c12d6c2abf7df0ec661d9ff2e197522eae846e43dc58abd5a36443d05bc41135"
3+
"Genshi-0.7.9.tar.gz": "c76170a8b2dc18944e0915103c284cb889dfcee34e0e140ba3363c80f7541ad2"
44
}
55
}

SPECS-EXTENDED/python-genshi/python-genshi.spec

Lines changed: 36 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,66 @@
1-
%global debug_package %{nil}
2-
%global _binaries_in_noarch_packages_terminate_build 0
3-
41
Vendor: Microsoft Corporation
52
Distribution: Azure Linux
6-
%global srcname Genshi
7-
83
Name: python-genshi
9-
Version: 0.7.5
10-
Release: 4%{?dist}
4+
Version: 0.7.9
5+
Release: 1%{?dist}
116
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
2014
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+
2419
%description
2520
Genshi is a Python library that provides an integrated set of
2621
components for parsing, generating, and processing HTML, XML or other
2722
textual content for output generation on the web. The major feature is
2823
a template language, which is heavily inspired by Kid.
29-
30-
3124
%package -n python3-genshi
3225
Summary: %{summary}
33-
26+
3427
%description -n python3-genshi
3528
Genshi is a Python library that provides an integrated set of
3629
components for parsing, generating, and processing HTML, XML or other
3730
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.
4132
%prep
42-
%autosetup -p1 -n %{srcname}-%{version}
43-
33+
%autosetup -p1 -n Genshi-%{version}
4434
# Remove bundled egg-info in case it exists
45-
rm -rf %{modname}.egg-info
46-
35+
rm -rf %{modname}.egg-info
4736
find examples -type f | xargs chmod a-x
4837

49-
38+
%generate_buildrequires
39+
%pyproject_buildrequires -x i18n
5040
%build
51-
%py3_build
52-
41+
%pyproject_wheel
5342

5443
%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}
6048

6149
%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
7158

7259
%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+
7364
* Wed Mar 24 2021 Henry Li <[email protected]> - 0.7.5-4
7465
- Initial CBL-Mariner import from Fedora 34 (license: MIT).
7566
- Disable debuginfo

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22883,8 +22883,8 @@
2288322883
"type": "other",
2288422884
"other": {
2288522885
"name": "python-genshi",
22886-
"version": "0.7.5",
22887-
"downloadUrl": "https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-0.7.5.tar.gz"
22886+
"version": "0.7.9",
22887+
"downloadUrl": "https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-0.7.9.tar.gz"
2288822888
}
2288922889
}
2289022890
},

0 commit comments

Comments
 (0)