dd66a35
%global srcname Pyphen
dd66a35
%global modname pyphen
dd66a35
3f58ab2
Name:           python-pyphen
69535f4
Version:        0.11.0
508b809
Release:        2%{?dist}
3f58ab2
Summary:        Pure Python module to hyphenate text
4cba832
License:        GPLv2+ or LGPLv2+ or MPLv1.1
dd66a35
URL:            https://github.com/Kozea/Pyphen
2f43aa1
Source0:        https://github.com/Kozea/%{srcname}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
69535f4
Patch1:         %{name}-strip-optional-dependencies.patch
dd66a35
3f58ab2
BuildArch:      noarch
3f58ab2
69535f4
BuildRequires:  pyproject-rpm-macros
69535f4
# used as "build-backend" in pyproject.toml but not detected by Fedora's
69535f4
# macros to generate build requirements
69535f4
BuildRequires:  python3-flit
3f58ab2
3f58ab2
dd66a35
%description
dd66a35
Pyphen is a pure Python module to hyphenate text using existing
3f58ab2
hyphenation dictionaries, e.g., from Libreoffice language packs.
3f58ab2
2a5006b
3f58ab2
%package -n python3-pyphen
3f58ab2
Summary:        Pure Python module to hyphenate text
3f58ab2
3f58ab2
%description -n python3-pyphen
3f58ab2
Pyphen is a pure Python module to hyphenate text using existing
3f58ab2
hyphenation dictionaries, e.g., from Libreoffice language packs.
3f58ab2
3f58ab2
%prep
dd66a35
%autosetup -n %{srcname}-%{version} -p1
69535f4
69535f4
%generate_buildrequires
69535f4
%pyproject_buildrequires -r -x test
3f58ab2
3f58ab2
%build
69535f4
%pyproject_wheel
3f58ab2
3f58ab2
%install
69535f4
%pyproject_install
3f58ab2
ddc75c0
%check
69535f4
%pytest
ddc75c0
ddc75c0
3f58ab2
%files -n python3-pyphen
69535f4
%license LICENSE COPYING.GPL COPYING.LGPL COPYING.MPL
2f43aa1
%doc README.rst
dd66a35
%{python3_sitelib}/%{modname}/
69535f4
%{python3_sitelib}/%{modname}-%{version}.dist-info/
dd66a35
3f58ab2
3f58ab2
%changelog
508b809
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
508b809
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
508b809
69535f4
* Sat Jun 26 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 0.11.0-1
69535f4
- update to 0.11.0
69535f4
f253c19
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.10.0-3
f253c19
- Rebuilt for Python 3.10
f253c19
d5303ef
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
d5303ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d5303ef
2f43aa1
* Sat Nov 07 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 0.10.0-1
2f43aa1
- update to 0.10.0
2f43aa1
0b7a866
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-4
0b7a866
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0b7a866
5f7f158
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.5-3
5f7f158
- Rebuilt for Python 3.9
5f7f158
4bde40f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-2
4bde40f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4bde40f
dd66a35
* Fri Nov 08 2019 Felix Schwarz <fschwarz@fedoraproject.org> - 0.9.5-1
dd66a35
- update to new upstream version
ddc75c0
- use dictionaries shipped by upstream instead of system-provided dicts
dd66a35
f637a5e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-19
f637a5e
- Rebuilt for Python 3.8.0rc1 (#1748018)
f637a5e
f106da3
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-18
f106da3
- Rebuilt for Python 3.8
f106da3
49e224f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-17
49e224f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
49e224f
70fda6e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-16
70fda6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
70fda6e
8e1fd21
* Thu Dec 27 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-15
8e1fd21
- Subpackage python2-pyphen has been removed
8e1fd21
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
8e1fd21
5785961
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-14
5785961
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5785961
556bb57
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-13
556bb57
- Rebuilt for Python 3.7
556bb57
457a133
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9.1-12
457a133
- Update Python 2 dependency declarations to new packaging standards
457a133
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
457a133
0399c79
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-11
0399c79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0399c79
2a5006b
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.1-10
2a5006b
- Python 2 binary package renamed to python2-pyphen
2a5006b
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
2a5006b
2cbcce3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-9
2cbcce3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2cbcce3
5fdfbf2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-8
5fdfbf2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5fdfbf2
f0b64e7
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-7
f0b64e7
- Rebuild for Python 3.6
f0b64e7
2eb4725
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-6
2eb4725
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2eb4725
fb0c829
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-5
fb0c829
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fb0c829
3be1681
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
3be1681
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
3be1681
b9785fc
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
b9785fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b9785fc
c141b25
* Tue Aug 26 2014 Eric Smith <brouhaha@fedoraproject.org> 0.9.1-2
c141b25
- No Python 3 in EL7.
c141b25
91ab0fa
* Thu Aug 07 2014 Alon Levy <alon@pobox.com> - 0.9.1-1
91ab0fa
- Update to latest release, fixes bz 1127837 (for weasyprint 1127836)
91ab0fa
c4a9a2b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
c4a9a2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c4a9a2b
29bfce8
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.7-4
29bfce8
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
29bfce8
3f58ab2
* Tue Jul 23 2013 Eric Smith <brouhaha@fedoraproject.org> 0.7-3
3f58ab2
- Added Python 3 support.
3f58ab2
3f58ab2
* Mon Jul 22 2013 Eric Smith <brouhaha@fedoraproject.org> 0.7-2
3f58ab2
- Removed requirement for hyphen-en.
3f58ab2
- Changed files section based on review request.
3f58ab2
3f58ab2
* Sun Jul 21 2013 Eric Smith <brouhaha@fedoraproject.org> 0.7-1
3f58ab2
- initial version