forked from pool/python-Genshi
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| d639bb4e80 | |||
| 2736056dc1 | |||
| 2b891d67f8 | |||
| 63b0ed0b55 | |||
| 48ff2f27cc | |||
| 720358ce5d |
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 9 06:30:01 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Add remove_six.patch removing six from the package
|
||||||
|
(gh#edgewall/genshi!92).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 25 14:08:40 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Fix build error under Leap.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 22 09:59:24 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Mon Jul 22 09:59:24 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Genshi
|
# spec file for package python-Genshi
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -26,16 +26,19 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://genshi.edgewall.org/
|
URL: https://genshi.edgewall.org/
|
||||||
Source: https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-%{version}.tar.gz
|
||||||
|
# PATCH-FEATURE-UPSTREAM remove_six.patch gh#edgewall/genshi!92 mcepl@suse.com
|
||||||
|
# remove six
|
||||||
|
Patch0: remove_six.patch
|
||||||
BuildRequires: %{python_module Babel}
|
BuildRequires: %{python_module Babel}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: %{python_module xml}
|
BuildRequires: %{python_module xml}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Babel
|
Requires: python-Babel
|
||||||
Requires: python-six
|
|
||||||
Requires: python-xml
|
Requires: python-xml
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Obsoletes: %{oldpython}-genshi < %{version}
|
Obsoletes: %{oldpython}-genshi < %{version}
|
||||||
@@ -49,7 +52,6 @@ components for parsing, generating, and processing HTML, XML or
|
|||||||
other textual content for output generation on the web. The major
|
other textual content for output generation on the web. The major
|
||||||
feature is a template language, which is heavily inspired by Kid.
|
feature is a template language, which is heavily inspired by Kid.
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1500
|
|
||||||
%package -n %{name}-doc
|
%package -n %{name}-doc
|
||||||
Summary: A toolkit for generation of output for the web - Documentation
|
Summary: A toolkit for generation of output for the web - Documentation
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
@@ -63,37 +65,30 @@ other textual content for output generation on the web. The major
|
|||||||
feature is a template language, which is heavily inspired by Kid.
|
feature is a template language, which is heavily inspired by Kid.
|
||||||
|
|
||||||
This package contains documentation and examples.
|
This package contains documentation and examples.
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n Genshi-%{version}
|
%autosetup -p1 -n Genshi-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
# remove accidentally installed source files
|
# remove accidentally installed source files
|
||||||
%python_expand find %{buildroot}%{$python_sitearch}/genshi -name '*.c' -delete
|
%python_expand find %{buildroot}%{$python_sitearch}/genshi -name '*.c' -delete
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{suse_version} < 1550
|
|
||||||
# calling unittest directly fails on Leap
|
|
||||||
%python_exec setup.py test
|
|
||||||
%else
|
|
||||||
%pyunittest_arch -v genshi.tests.suite
|
%pyunittest_arch -v genshi.tests.suite
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc ChangeLog README.md
|
%doc ChangeLog README.md
|
||||||
%{python_sitearch}/genshi/
|
%{python_sitearch}/genshi/
|
||||||
%{python_sitearch}/Genshi-%{version}*-info
|
%{python_sitearch}/[Gg]enshi-%{version}*-info
|
||||||
%if 0%{?suse_version} > 1500
|
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
%doc doc
|
%doc doc
|
||||||
%endif
|
|
||||||
%doc examples
|
%doc examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
1175
remove_six.patch
Normal file
1175
remove_six.patch
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user