Toshaan Bharvani
3 years ago
commit
02658dd347
2 changed files with 120 additions and 0 deletions
@ -0,0 +1,120 @@ |
|||||||
|
%global srcname webencodings |
||||||
|
%global desc This is a Python implementation of the WHATWG Encoding standard. |
||||||
|
|
||||||
|
|
||||||
|
Name: python-%{srcname} |
||||||
|
Version: 0.5.1 |
||||||
|
Release: 17%{?dist} |
||||||
|
BuildArch: noarch |
||||||
|
|
||||||
|
License: BSD |
||||||
|
Summary: Character encoding for the web |
||||||
|
URL: https://github.com/gsnedders/python-%{srcname} |
||||||
|
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz |
||||||
|
|
||||||
|
BuildRequires: python3-devel |
||||||
|
BuildRequires: python3-setuptools |
||||||
|
BuildRequires: python3-pytest |
||||||
|
BuildRequires: python3-sphinx |
||||||
|
|
||||||
|
|
||||||
|
%description |
||||||
|
%{desc} |
||||||
|
|
||||||
|
|
||||||
|
%package doc |
||||||
|
Summary: Documentation for python-webencodings |
||||||
|
|
||||||
|
|
||||||
|
%description doc |
||||||
|
Documentation for python-webencodings. |
||||||
|
|
||||||
|
|
||||||
|
%package -n python3-%{srcname} |
||||||
|
Summary: %{summary} |
||||||
|
|
||||||
|
%{?python_provide:%python_provide python3-%{srcname}} |
||||||
|
|
||||||
|
Requires: python3 |
||||||
|
|
||||||
|
|
||||||
|
%description -n python3-%{srcname} |
||||||
|
%{desc} |
||||||
|
|
||||||
|
|
||||||
|
%prep |
||||||
|
%autosetup -n python-%{srcname}-%{version} |
||||||
|
|
||||||
|
|
||||||
|
%build |
||||||
|
%py3_build |
||||||
|
|
||||||
|
PYTHONPATH=. sphinx-build-3 docs docs/_build |
||||||
|
|
||||||
|
# Remove unneeded build artifacts. |
||||||
|
rm -rf docs/_build/.buildinfo |
||||||
|
rm -rf docs/_build/.doctrees |
||||||
|
|
||||||
|
|
||||||
|
%install |
||||||
|
%py3_install |
||||||
|
|
||||||
|
|
||||||
|
%check |
||||||
|
py.test-3 |
||||||
|
|
||||||
|
|
||||||
|
%files doc |
||||||
|
%license LICENSE |
||||||
|
%doc docs/_build |
||||||
|
|
||||||
|
|
||||||
|
%files -n python3-%{srcname} |
||||||
|
%license LICENSE |
||||||
|
%doc README.rst |
||||||
|
%{python3_sitelib}/%{srcname} |
||||||
|
%{python3_sitelib}/*.egg-info |
||||||
|
|
||||||
|
|
||||||
|
%changelog |
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-17 |
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-16 |
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
||||||
|
|
||||||
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 0.5.1-15 |
||||||
|
- Rebuilt for Python 3.10 |
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-14 |
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-13 |
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
||||||
|
|
||||||
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-12 |
||||||
|
- Rebuilt for Python 3.9 |
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-11 |
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
||||||
|
|
||||||
|
* Tue Sep 17 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.5.1-10 |
||||||
|
- Drop python2-webencodings (#1752405). |
||||||
|
|
||||||
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-9 |
||||||
|
- Rebuilt for Python 3.8 |
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-8 |
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-7 |
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
||||||
|
|
||||||
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-6 |
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
||||||
|
|
||||||
|
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-5 |
||||||
|
- Rebuilt for Python 3.7 |
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-4 |
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
Loading…
Reference in new issue