From 3296637a3ca0fd09156329f5d95cf2c57dfac06f Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Thu, 12 Dec 2024 19:43:08 +0300 Subject: [PATCH] import python-typogrify-2.0.7-22.el10 --- .gitignore | 1 + .python-typogrify.metadata | 1 + SOURCES/README.md | 3 + SPECS/python-typogrify.spec | 126 ++++++++++++++++++++++++++++++++++++ 4 files changed, 131 insertions(+) create mode 100644 .gitignore create mode 100644 .python-typogrify.metadata create mode 100644 SOURCES/README.md create mode 100644 SPECS/python-typogrify.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f155dd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/typogrify-2.0.7.tar.gz diff --git a/.python-typogrify.metadata b/.python-typogrify.metadata new file mode 100644 index 0000000..21a3689 --- /dev/null +++ b/.python-typogrify.metadata @@ -0,0 +1 @@ +4eed33df74c694ae953469b75012043ce5783477 SOURCES/typogrify-2.0.7.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..71d9ba4 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# python-typogrify + +The python-typogrify package \ No newline at end of file diff --git a/SPECS/python-typogrify.spec b/SPECS/python-typogrify.spec new file mode 100644 index 0000000..9b9545a --- /dev/null +++ b/SPECS/python-typogrify.spec @@ -0,0 +1,126 @@ +%global pypi_name typogrify + +Name: python-%{pypi_name} +Version: 2.0.7 +Release: 22%{?dist} +Summary: Filters to enhance web typography, with support for Django & Jinja templates + +# typogrify/packages/titlecase/__init__.py is MIT +License: BSD-3-Clause AND MIT +URL: https://github.com/mintchaos/typogrify +Source: %{pypi_source %{pypi_name}} +BuildArch: noarch + +BuildRequires: python3-devel + +%global _description %{expand: +Typogrify provides a set of custom filters that automatically apply various +transformations to plain text in order to yield typographically-improved HTML. +While often used in conjunction with Jinja_ and Django_ template systems, the +filters can be used in any environment.} + +%description %_description + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} %_description + + +%prep +%autosetup -n %{pypi_name}-%{version} +# remove shebang line from the python scripts +for lib in $(find -type f -name '*.py'); do + sed -i.python -e '1{\@^#!@d}' $lib +done + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files -l %{pypi_name} + +%check +# importing typogrify.templatetags.jinja_filters needs jinja2 installed +# importing typogrify.templatetags.typogrify_tags needs django installed +%pyproject_check_import -e typogrify.templatetags.jinja_filters -e typogrify.templatetags.typogrify_tags + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst + +%changelog +* Thu Dec 12 2024 Sergey Cherevko - 2.0.7-22 +- Rebuilt for MSVSphere 10 + +* Wed Oct 23 2024 Carl George - 2.0.7-22 +- Port to pyproject macros + +* Fri Jul 19 2024 Fedora Release Engineering - 2.0.7-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 2.0.7-20 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.0.7-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.0.7-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 2.0.7-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 2.0.7-16 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.0.7-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 2.0.7-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.0.7-13 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.0.7-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 2.0.7-11 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 2.0.7-10 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.0.7-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 2.0.7-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 2.0.7-7 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 2.0.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 2.0.7-5 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 2.0.7-4 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.0.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jun 11 2019 José Matos - 2.0.7-2 +- fix source url and summary. +- remove shebang lines from python scripts. + + +* Sat Sep 1 2018 José Matos - 2.0.7-1 +- initial package.