Blame SPECS/python-genshi.spec

531a65
Name:           python-genshi
531a65
Version:        0.7.9
531a65
Release:        5%{?dist}
531a65
Summary:        Toolkit for stream-based generation of output for the web
531a65
531a65
License:        BSD-3-Clause
531a65
URL:            https://genshi.edgewall.org/
531a65
531a65
Source0:        %{pypi_source Genshi}
531a65
531a65
BuildRequires:  gcc
531a65
BuildRequires:  python3-devel
531a65
BuildRequires:  python3dist(pytest)
531a65
531a65
%description
531a65
Genshi is a Python library that provides an integrated set of
531a65
components for parsing, generating, and processing HTML, XML or other
531a65
textual content for output generation on the web. The major feature is
531a65
a template language, which is heavily inspired by Kid.
531a65
531a65
531a65
%package -n python3-genshi
531a65
Summary:        %{summary}
531a65
531a65
%description -n python3-genshi
531a65
Genshi is a Python library that provides an integrated set of
531a65
components for parsing, generating, and processing HTML, XML or other
531a65
textual content for output generation on the web. The major feature is
531a65
a template language, which is heavily inspired by Kid.
531a65
531a65
531a65
%prep
531a65
%autosetup -p1 -n Genshi-%{version}
531a65
531a65
# Remove bundled egg-info in case it exists
531a65
rm -rf %{modname}.egg-info
531a65
531a65
find examples -type f | xargs chmod a-x
531a65
531a65
%generate_buildrequires
531a65
%pyproject_buildrequires -x i18n
531a65
531a65
531a65
%build
531a65
%pyproject_wheel
531a65
531a65
531a65
%install
531a65
%pyproject_install
531a65
%pyproject_save_files genshi
531a65
531a65
sed -i -e '/\/tests/d' %{pyproject_files}
531a65
sed -i -e '/_speedups.c/d' %{pyproject_files}
531a65
531a65
531a65
%check
531a65
%pytest
531a65
531a65
531a65
%files -n python3-genshi -f %{pyproject_files}
531a65
%{python3_sitearch}/genshi/_speedups.*.so
531a65
%exclude %{python3_sitearch}/genshi/{_speedups.c,tests}
531a65
%exclude %{python3_sitearch}/genshi/{filters,template}/tests
531a65
# COPYING file already listed in {pyproject_files}
531a65
%doc ChangeLog doc examples README.md
531a65
531a65
531a65
%changelog
531a65
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-5
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
531a65
531a65
* Sat Oct 12 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.9-4
531a65
- modernize macro usage
531a65
- use "BSD-3-Clause" license identifier
531a65
531a65
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 0.7.9-3
531a65
- convert license to SPDX
531a65
531a65
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-2
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
531a65
531a65
* Sun Jun 16 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.9-1
531a65
- update to 0.7.9
531a65
531a65
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.7.7-11
531a65
- Rebuilt for Python 3.13
531a65
531a65
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.7-10
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
531a65
531a65
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.7-9
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
531a65
531a65
* Thu Nov 09 2023 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.7-8
531a65
- add patch to replace "unittest.makeSuite()" (rhbz #2245863)
531a65
531a65
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.7-7
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
531a65
531a65
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.7.7-6
531a65
- Rebuilt for Python 3.12
531a65
531a65
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.7-5
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
531a65
531a65
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.7-4
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
531a65
531a65
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.7.7-3
531a65
- Rebuilt for Python 3.11
531a65
531a65
* Tue May 31 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.7-2
531a65
- enable optional speedups
531a65
531a65
* Fri Apr 22 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.7-1
531a65
- update to 0.7.7
531a65
531a65
* Wed Feb 09 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.6-1
531a65
- update to 0.7.6
531a65
531a65
* Mon Feb 07 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.7.5-8
531a65
- Backport patch to add compatibility with Python 3.11
531a65
- Fixes: rhbz#2019393
531a65
531a65
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-7
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
531a65
531a65
* Thu Sep 16 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.5-6
531a65
- add patch to get the full test suite passing on Python 3.10
531a65
531a65
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-5
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
531a65
531a65
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 0.7.5-4
531a65
- Rebuilt for Python 3.10
531a65
531a65
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-3
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
531a65
531a65
* Mon Dec 21 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.5-2
531a65
- Drop python2-genshi
531a65
531a65
* Wed Nov 18 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.5-1
531a65
- update to 0.7.5
531a65
531a65
* Wed Nov 04 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.4-1
531a65
- update to 0.7.4
531a65
531a65
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-8
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
531a65
531a65
* Mon Jun 15 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.3-7
531a65
- add patches for Python 3.9 compatibility
531a65
531a65
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.3-6
531a65
- Rebuilt for Python 3.9
531a65
531a65
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-5
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
531a65
531a65
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.3-4
531a65
- Rebuilt for Python 3.8.0rc1 (#1748018)
531a65
531a65
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.3-3
531a65
- Rebuilt for Python 3.8
531a65
531a65
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-2
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
531a65
531a65
* Tue May 28 2019 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.3-1
531a65
- update to new upstream version 0.7.3
531a65
531a65
* Mon Apr 29 2019 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.2-1
531a65
- update to new upstream version 0.7.2
531a65
531a65
* Mon Feb 04 2019 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.1-1
531a65
- update to new upstream version 0.7.1
531a65
531a65
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-23
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
531a65
531a65
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-22
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
531a65
531a65
* Fri Jun 29 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7-21
531a65
- Rebuilt for Python 3.7
531a65
531a65
* Fri Jun 29 2018 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7-20
531a65
- add patches for Python 3.7 compatibility
531a65
531a65
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7-19
531a65
- Rebuilt for Python 3.7
531a65
531a65
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-18
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
531a65
531a65
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-17
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
531a65
531a65
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-16
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
531a65
531a65
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-15
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
531a65
531a65
* Mon Dec 26 2016 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7-14
531a65
- update spec file to match Fedora's Python2/3 package versioning policies
531a65
531a65
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7-13
531a65
- Rebuild for Python 3.6
531a65
531a65
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-12
531a65
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
531a65
531a65
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-11
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
531a65
531a65
* Fri Nov 13 2015 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7-10
531a65
- add patch for Python 3.5 (Genshi bug 602)
531a65
- use license macro
531a65
531a65
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-9
531a65
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
531a65
531a65
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-8
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
531a65
531a65
* Wed Nov 12 2014 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7-7
531a65
- fix dependency on python3-babel (bz 1163067)
531a65
531a65
* Thu Oct 30 2014 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7-6
531a65
- fix tests on Python 2.7.8 (RHBZ 1106778)
531a65
- enable python3 subpackage again as we have Babel 1.3 now in the repos
531a65
531a65
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
531a65
531a65
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-4
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
531a65
531a65
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
531a65
531a65
* Wed Apr 10 2013 Luke Macken <lmacken@redhat.com> - 0.7-2
531a65
- Disable the python3 subpackage until python-babel is ported
531a65
531a65
* Tue Apr  9 2013 Luke Macken <lmacken@redhat.com> - 0.7-1
531a65
- Update to 0.7
531a65
- Add a python3 subpackage
531a65
531a65
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-6
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
531a65
531a65
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-5
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
531a65
531a65
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-4
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
531a65
531a65
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
531a65
531a65
* Thu Nov 18 2010 Luke Macken <lmacken@redhat.com> - 0.6-2
531a65
- Build with the optional C speed-enhancements
531a65
531a65
* Sun Aug 22 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.6-1
531a65
- Version 0.6
531a65
- http://svn.edgewall.org/repos/genshi/tags/0.6.0/
531a65
- (Apr 22 2010, from branches/stable/0.6.x)
531a65
-
531a65
-  * Support for Python 2.3 has been dropped.
531a65
-  * Rewrite of the XPath evaluation engine for better performance and improved
531a65
-    correctness. This is the result of integrating work done by Marcin Kurczych
531a65
-    during GSoC 2008.
531a65
-  * Updated the Python AST processing for template code evaluation to use the
531a65
-    `_ast` module instead of the deprecated `compiler` package, including an
531a65
-    adapter layer for Python 2.4. This, too, is the result of integrating work
531a65
-    done by  Marcin Kurczych during GSoC 2008.
531a65
-  * Added caching in the serialization stage for improved performance in some
531a65
-    cases.
531a65
-  * Various improvements to the HTML sanitization filter.
531a65
-  * Fix problem with I18n filter that would get confused by expressions in
531a65
-    attribute values when inside an `i18n:msg` block (ticket #250).
531a65
-  * Fix problem with the transformation filter dropping events after the
531a65
-    selection (ticket #290).
531a65
-  * `for` loops in template code blocks no longer establish their own locals
531a65
-    scope, meaning you can now access variables assigned in the loop outside
531a65
-    of the loop, just as you can in regular Python code (ticket #259).
531a65
-  * Import statements inside function definitions in template code blocks no
531a65
-    longer result in an UndefinedError when the imported name is accessed
531a65
-    (ticket #276).
531a65
-  * Fixed handling of relative URLs with fragment identifiers containing colons
531a65
-    in the `HTMLSanitizer` (ticket #274).
531a65
-  * Added an option to the `HTMLFiller` to also populate password fields.
531a65
-  * Match template processing no longer produces unwanted duplicate output in
531a65
-    some cases (ticket #254).
531a65
-  * Templates instantiated without a loader now get an implicit loader based on
531a65
-    their file path, or the current directory as a fallback (ticket #320).
531a65
-  * Added documentation for the `TemplateLoader`.
531a65
-  * Enhanced documentation for internationalization.
531a65
531a65
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.1-8
531a65
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
531a65
531a65
* Fri Sep 11 2009 Luke Macken <lmacken@redhat.com> - 0.5.1-7
531a65
- Add a patch to work around some recent Python2.6.2 behavior
531a65
531a65
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-6
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
531a65
531a65
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> - 0.5.1-5
531a65
- Add python-babel as a requirement
531a65
531a65
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
531a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
531a65
531a65
* Sat Nov 29 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.5.1-3
531a65
- Rebuild for Python 2.6
531a65
531a65
* Thu Oct  9 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.5.1-2
531a65
- Add patch from upstream that fixes problems when using Genshi in
531a65
- conjuction with Babel.
531a65
531a65
* Tue Oct  7 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.5.1-1
531a65
- Version 0.5.1
531a65
- http://svn.edgewall.org/repos/genshi/tags/0.5.1/
531a65
- (Jul 9 2008, from branches/stable/0.5.x)
531a65
- 
531a65
-  * Fix problem with nested match templates not being applied when buffering
531a65
-    on the outer `py:match` is disabled. Thanks to Erik Bray for reporting the
531a65
-    problem and providing a test case!
531a65
-  * Fix problem in `Translator` filter that would cause the translation of
531a65
-    text nodes to fail if the translation function returned an object that was
531a65
-    not directly a string, but rather something like an instance of the
531a65
-    `LazyProxy` class in Babel (ticket #145).
531a65
-  * Fix problem with match templates incorrectly being applied multiple times.
531a65
-  * Includes from templates loaded via an absolute path now include the correct
531a65
-    file in nested directories as long if no search path has been configured
531a65
-    (ticket #240).
531a65
-  * Unbuffered match templates could result in parts of the matched content
531a65
-    being included in the output if the match template didn't actually consume
531a65
-    it via one or more calls to the `select()` function (ticket #243).
531a65
531a65
* Mon Jun  9 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.5-1
531a65
- Update to released version of Genshi.
531a65
531a65
* Thu Apr 24 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.5-0.1.svn847
531a65
- Update to snapshot of 0.5
531a65
531a65
* Tue Aug 28 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.4.4-2
531a65
- BR python-setuptools-devel
531a65
531a65
* Mon Aug 27 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.4.4-1
531a65
- Update to 0.4.4
531a65
531a65
* Mon Jul  9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.4.2-2
531a65
- BR python-setuptools so that egg-info files get installed.  Fixes #247430.
531a65
531a65
* Thu Jun 21 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.4.2-1
531a65
- Update to 0.4.2
531a65
531a65
* Sat Jun  9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.4.1-1
531a65
- Update to 0.4.1
531a65
531a65
* Wed Apr 18 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.4.0-1
531a65
- Update to 0.4.0
531a65
531a65
* Thu Apr 12 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3.6-1
531a65
- First version for Fedora Extras
531a65