From b8154bb8dd9904e26719a319ebf839f30f069041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Matos?= Date: Wed, 12 Jun 2019 17:30:03 +0100 Subject: [PATCH] fix source url and summary. remove shebang lines from python scripts. --- .gitignore | 2 ++ python-typogrify.spec | 63 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 66 insertions(+) create mode 100644 .gitignore create mode 100644 python-typogrify.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7b70616 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/typogrify-2.0.7.tar.gz +clog diff --git a/python-typogrify.spec b/python-typogrify.spec new file mode 100644 index 0000000..1018157 --- /dev/null +++ b/python-typogrify.spec @@ -0,0 +1,63 @@ +%global pypi_name typogrify + +Name: python-%{pypi_name} +Version: 2.0.7 +Release: 2%{?dist} +Summary: Filters to enhance web typography, with support for Django & Jinja templates + +License: BSD +URL: https://github.com/mintchaos/typogrify +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%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. + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(smartypants) >= 1.8.3 +%description -n python3-%{pypi_name} +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. + + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info +# remove shebang line from the python scripts +for lib in $(find -type f -name '*.py'); do + sed -i.python -e '1{\@^#!@d}' $lib +done + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE.txt +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog +* 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. diff --git a/sources b/sources new file mode 100644 index 0000000..7a0e3bd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (typogrify-2.0.7.tar.gz) = 6212024a88372f1b14e5932c0541ec4d5a2ada7514c1327dc8f3775cd7adf3372cae0037c4310ed4a03fd0657a91eb4c0d114b74172190f7f84d82908441ddd0