3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Filters to enhance web typography, including support for Django & Jinja templates
7 Summary(pl.UTF-8): Filtry rozszerzające typografię WWW z obsługą szablonów Django i Jinja
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/typogrify/
14 Source0: https://files.pythonhosted.org/packages/source/t/typogrify/typogrify-%{version}.tar.gz
15 # Source0-md5: 63f38f80531996f187d2894cc497ba08
16 URL: https://pypi.org/project/typogrify/
18 BuildRequires: python-modules >= 1:2.5
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.2
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.5
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Typogrify provides a set of custom filters that automatically apply
33 various transformations to plain text in order to yield
34 typographically-improved HTML. While often used in conjunction with
35 Jinja and Django template systems, the filters can be used in any
38 %description -l pl.UTF-8
39 Typogrify udostępnia zestaw dostosowanych filtrów, automatycznie
40 nakładających na czysty tekst różne przekształcenia, aby wytworzyć
41 typograficznie ulepszony HTML. Filtry zwykle używane są wraz z
42 systemami szablonów Jinja i Django, ale można ich używać w dowolnym
45 %package -n python3-typogrify
46 Summary: Filters to enhance web typography, including support for Django & Jinja templates
47 Summary(pl.UTF-8): Filtry rozszerzające typografię WWW z obsługą szablonów Django i Jinja
48 Group: Libraries/Python
49 Requires: python3-modules >= 1:3.2
51 %description -n python3-typogrify
52 Typogrify provides a set of custom filters that automatically apply
53 various transformations to plain text in order to yield
54 typographically-improved HTML. While often used in conjunction with
55 Jinja and Django template systems, the filters can be used in any
58 %description -n python3-typogrify -l pl.UTF-8
59 Typogrify udostępnia zestaw dostosowanych filtrów, automatycznie
60 nakładających na czysty tekst różne przekształcenia, aby wytworzyć
61 typograficznie ulepszony HTML. Filtry zwykle używane są wraz z
62 systemami szablonów Jinja i Django, ale można ich używać w dowolnym
66 %setup -q -n typogrify-%{version}
78 rm -rf $RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT
95 %defattr(644,root,root,755)
96 %doc LICENSE.txt README.rst
97 %{py_sitescriptdir}/typogrify
98 %{py_sitescriptdir}/typogrify-%{version}-py*.egg-info
102 %files -n python3-typogrify
103 %defattr(644,root,root,755)
104 %doc LICENSE.txt README.rst
105 %{py3_sitescriptdir}/typogrify
106 %{py3_sitescriptdir}/typogrify-%{version}-py*.egg-info