parent
091371d381
commit
b8154bb8dd
@ -0,0 +1,2 @@
|
||||
/typogrify-2.0.7.tar.gz
|
||||
clog
|
@ -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 <jamatos@fedoraproject.org> - 2.0.7-2
|
||||
- fix source url and summary.
|
||||
- remove shebang lines from python scripts.
|
||||
|
||||
|
||||
* Sat Sep 1 2018 José Matos <jamatos@fedoraproject.org> - 2.0.7-1
|
||||
- initial package.
|
Loading…
Reference in new issue