af2c2ca
%global pypi_name smartypants
af2c2ca
af2c2ca
Name:           python-%{pypi_name}
af2c2ca
Version:        2.0.1
12ba9ea
Release:        19%{?dist}
af2c2ca
Summary:        plug-in that easily translates ASCII punctuation characters into smart entities
af2c2ca
e676704
License:        BSD-3-Clause AND BSD-2-Clause
af2c2ca
URL:            https://github.com/leohemsted/smartypants.py
af2c2ca
Source0:        %url/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
af2c2ca
BuildArch:      noarch
af2c2ca
ce4b435
BuildRequires: make
af2c2ca
BuildRequires:  python3-devel
af2c2ca
BuildRequires:  python3dist(setuptools)
af2c2ca
BuildRequires:  python3dist(sphinx)
af2c2ca
af2c2ca
%description
af2c2ca
SmartyPants is a free web publishing plug-in for Movable
af2c2ca
Type, Blosxom, and BBEdit that easily translates plain ASCII
af2c2ca
punctuation characters into “smart” typographic punctuation HTML
af2c2ca
entities.
af2c2ca
af2c2ca
af2c2ca
%package -n     python3-%{pypi_name}
af2c2ca
Summary:        %{summary}
af2c2ca
%{?python_provide:%python_provide python3-%{pypi_name}}
af2c2ca
af2c2ca
Requires:       python3dist(setuptools)
af2c2ca
%description -n python3-%{pypi_name}
af2c2ca
SmartyPants is a free web publishing plug-in for Movable
af2c2ca
Type, Blosxom, and BBEdit that easily translates plain ASCII
af2c2ca
punctuation characters into “smart” typographic punctuation HTML
af2c2ca
entities.
af2c2ca
af2c2ca
af2c2ca
%package -n python-%{pypi_name}-doc
af2c2ca
Summary:        python-smartypants documentation
af2c2ca
%description -n python-%{pypi_name}-doc
af2c2ca
Documentation for python-smartypants
af2c2ca
af2c2ca
af2c2ca
%prep
af2c2ca
%autosetup -n %{pypi_name}.py-%{version}
af2c2ca
# Remove bundled egg-info
af2c2ca
rm -rf %{pypi_name}.egg-info
af2c2ca
for lib in $(find -type f -name '*.py'); do
af2c2ca
 sed -i.python -e '1{\@^#!@d}' $lib
af2c2ca
done
af2c2ca
sed -i.python -e 's|#!/usr/bin/env python|#!/usr/bin/python3|' smartypants
af2c2ca
af2c2ca
af2c2ca
%build
af2c2ca
%py3_build
af2c2ca
# generate html documentation
af2c2ca
cd docs
af2c2ca
make html
af2c2ca
# remove the sphinx-build leftovers
af2c2ca
rm -rf _build/html/.{doctrees,buildinfo}
af2c2ca
af2c2ca
af2c2ca
%install
af2c2ca
%py3_install
af2c2ca
af2c2ca
%check
af2c2ca
%{__python3} setup.py test
af2c2ca
af2c2ca
af2c2ca
%files -n python3-%{pypi_name}
af2c2ca
%doc README.rst
af2c2ca
%doc CHANGES.rst
af2c2ca
%license COPYING
af2c2ca
%{_bindir}/%{pypi_name}
af2c2ca
%{python3_sitelib}/__pycache__/*
af2c2ca
%{python3_sitelib}/%{pypi_name}.py
a03aff7
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
af2c2ca
af2c2ca
%files -n python-%{pypi_name}-doc
af2c2ca
%doc docs/_build/html
af2c2ca
%license COPYING
af2c2ca
af2c2ca
%changelog
12ba9ea
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-19
12ba9ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
12ba9ea
d2ddc63
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-18
d2ddc63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d2ddc63
5cb5acd
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-17
5cb5acd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
5cb5acd
f57d736
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.0.1-16
f57d736
- Rebuilt for Python 3.12
f57d736
4401334
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-15
4401334
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
4401334
cf4dd30
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-14
cf4dd30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
cf4dd30
f4a10ab
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.1-13
f4a10ab
- Rebuilt for Python 3.11
f4a10ab
b3640d9
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-12
b3640d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b3640d9
8fbd8e8
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-11
8fbd8e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8fbd8e8
80a7ee7
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.1-10
80a7ee7
- Rebuilt for Python 3.10
80a7ee7
ce7749d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-9
ce7749d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ce7749d
68b4b3f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-8
68b4b3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
68b4b3f
b82d902
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-7
b82d902
- Rebuilt for Python 3.9
b82d902
93f756d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
93f756d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
93f756d
7cb7985
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-5
7cb7985
- Rebuilt for Python 3.8.0rc1 (#1748018)
7cb7985
c7e59fe
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-4
c7e59fe
- Rebuilt for Python 3.8
c7e59fe
41e49ff
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
41e49ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
41e49ff
af2c2ca
* Tue Jun 11 2019 José Matos <jamatos@fedoraproject.org> - 2.0.1-2
af2c2ca
- fix source url, license short hand, description and summary.
af2c2ca
- remove shebang lines and make smartypants a shebang line use python3.
af2c2ca
af2c2ca
* Sat Sep  1 2018 José Matos <jamatos@fedoraproject.org> - 2.0.1-1
af2c2ca
- initial package.