[packages/python3-typogrify] - python-typogrify.spec updated to 2.1.0 for python 3.9+
qboosh
qboosh at pld-linux.org
Sun May 25 21:53:12 CEST 2025
commit 766f3c3a35e5162cf4cbfff9b28ddd4d6d3922ec
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 25 21:48:35 2025 +0200
- python-typogrify.spec updated to 2.1.0 for python 3.9+
python-typogrify.spec | 107 -------------------------------------------------
python3-typogrify.spec | 58 +++++++++++++++++++++++++++
2 files changed, 58 insertions(+), 107 deletions(-)
---
diff --git a/python-typogrify.spec b/python-typogrify.spec
deleted file mode 100644
index 10768e0..0000000
--- a/python-typogrify.spec
+++ /dev/null
@@ -1,107 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Filters to enhance web typography, including support for Django & Jinja templates
-Summary(pl.UTF-8): Filtry rozszerzające typografię WWW z obsługą szablonów Django i Jinja
-Name: python-typogrify
-Version: 2.0.7
-Release: 7
-License: BSD
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/typogrify/
-Source0: https://files.pythonhosted.org/packages/source/t/typogrify/typogrify-%{version}.tar.gz
-# Source0-md5: 63f38f80531996f187d2894cc497ba08
-URL: https://pypi.org/project/typogrify/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.5
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.5
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-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 -l pl.UTF-8
-Typogrify udostępnia zestaw dostosowanych filtrów, automatycznie
-nakładających na czysty tekst różne przekształcenia, aby wytworzyć
-typograficznie ulepszony HTML. Filtry zwykle używane są wraz z
-systemami szablonów Jinja i Django, ale można ich używać w dowolnym
-środowisku.
-
-%package -n python3-typogrify
-Summary: Filters to enhance web typography, including support for Django & Jinja templates
-Summary(pl.UTF-8): Filtry rozszerzające typografię WWW z obsługą szablonów Django i Jinja
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-typogrify
-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 -n python3-typogrify -l pl.UTF-8
-Typogrify udostępnia zestaw dostosowanych filtrów, automatycznie
-nakładających na czysty tekst różne przekształcenia, aby wytworzyć
-typograficznie ulepszony HTML. Filtry zwykle używane są wraz z
-systemami szablonów Jinja i Django, ale można ich używać w dowolnym
-środowisku.
-
-%prep
-%setup -q -n typogrify-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE.txt README.rst
-%{py_sitescriptdir}/typogrify
-%{py_sitescriptdir}/typogrify-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-typogrify
-%defattr(644,root,root,755)
-%doc LICENSE.txt README.rst
-%{py3_sitescriptdir}/typogrify
-%{py3_sitescriptdir}/typogrify-%{version}-py*.egg-info
-%endif
diff --git a/python3-typogrify.spec b/python3-typogrify.spec
new file mode 100644
index 0000000..c2e1640
--- /dev/null
+++ b/python3-typogrify.spec
@@ -0,0 +1,58 @@
+Summary: Filters to enhance web typography, including support for Django & Jinja templates
+Summary(pl.UTF-8): Filtry rozszerzające typografię WWW z obsługą szablonów Django i Jinja
+Name: python3-typogrify
+Version: 2.1.0
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/typogrify/
+Source0: https://files.pythonhosted.org/packages/source/t/typogrify/typogrify-%{version}.tar.gz
+# Source0-md5: 7cc9a0a1de988329add3982519dc7971
+URL: https://pypi.org/project/typogrify/
+BuildRequires: python3-build
+BuildRequires: python3-hatchling
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.9
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+BuildRequires: sed >= 4.0
+Requires: python3-modules >= 1:3.9
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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 -l pl.UTF-8
+Typogrify udostępnia zestaw dostosowanych filtrów, automatycznie
+nakładających na czysty tekst różne przekształcenia, aby wytworzyć
+typograficznie ulepszony HTML. Filtry zwykle używane są wraz z
+systemami szablonów Jinja i Django, ale można ich używać w dowolnym
+środowisku.
+
+%prep
+%setup -q -n typogrify-%{version}
+
+# actually not executable
+%{__sed} -i -e '/^#!\/usr\/bin\/env python/d' typogrify/packages/titlecase/__init__.py
+
+%build
+%py3_build_pyproject
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE.txt README.md
+%{py3_sitescriptdir}/typogrify
+%{py3_sitescriptdir}/typogrify-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-typogrify.git/commitdiff/766f3c3a35e5162cf4cbfff9b28ddd4d6d3922ec
More information about the pld-cvs-commit
mailing list