From 2d1531d88b1f814268984ee587fe777b8cf57d60 Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 13:47:15 -0400 Subject: [PATCH] Auto sync2gitlab import of python-webencodings-0.5.1-6.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - python-webencodings.spec | 135 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 python-webencodings.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6c17c7a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/webencodings-0.5.1.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python-webencodings.spec b/python-webencodings.spec new file mode 100644 index 0000000..cee9a38 --- /dev/null +++ b/python-webencodings.spec @@ -0,0 +1,135 @@ +%global srcname webencodings +%global desc This is a Python implementation of the WHATWG Encoding standard. + +%if 0%{?rhel} > 7 +# Disable python2 build by default +%bcond_with python2 +%else +%bcond_without python2 +%endif + +Name: python-%{srcname} +Version: 0.5.1 +Release: 6%{?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 + +%if %{with python2} +BuildRequires: python2-devel +BuildRequires: python2-pytest +%endif # with python2 +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-sphinx + + +%description +%{desc} + + +%package doc +Summary: Documentation for python-webencodings + + +%description doc +Documentation for python-webencodings. + +%if %{with python2} +%package -n python2-%{srcname} +Summary: %{summary} + +%{?python_provide:%python_provide python2-%{srcname}} + +Requires: python2 + + +%description -n python2-%{srcname} +%{desc} +%endif # with python2 + + +%package -n python3-%{srcname} +Summary: %{summary} + +%{?python_provide:%python_provide python3-%{srcname}} + +%{?__python3:Requires: %{__python3}} + + +%description -n python3-%{srcname} +%{desc} + + +%prep +%autosetup -n python-%{srcname}-%{version} + + +%build +%if %{with python2} +%py2_build +%endif # with python2 +%py3_build + +PYTHONPATH=. sphinx-build-3 docs docs/_build + +# Remove unneeded build artifacts. +rm -rf docs/_build/.buildinfo +rm -rf docs/_build/.doctrees + + +%install +%if %{with python2} +%py2_install +%endif # with python2 +%py3_install + + +%check +%if %{with python2} +py.test-2 +%endif # with python2 +py.test-3 + + +%files doc +%license LICENSE +%doc docs/_build + +%if %{with python2} +%files -n python2-%{srcname} +%license LICENSE +%doc README.rst +%{python2_sitelib}/%{srcname} +%{python2_sitelib}/*.egg-info +%endif # with python2 + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/*.egg-info + + +%changelog +* Tue Sep 25 2018 Tomas Orsava - 0.5.1-6 +- Require the Python interpreter directly instead of using the package name +- Resolves: rhbz#1633609 + +* Fri Jun 22 2018 Charalampos Stratakis - 0.5.1-5 +- Conditionalize the python2 subpackage + +* Fri Feb 09 2018 Fedora Release Engineering - 0.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Jul 25 2017 Randy Barlow - 0.5.1-2 +- Set the PYTHONPATH when building docs so the library is found. + +* Tue Jul 25 2017 Randy Barlow - 0.5.1-1 +- Initial release diff --git a/sources b/sources new file mode 100644 index 0000000..fa9fa7a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (webencodings-0.5.1.tar.gz) = c5cb34f35fb5bc7ffb88c19eb3262dedbf6231c0ee2871dccbc0f9497193d8209fc20703d451a2bb41a5ff913e63abf7481f7a8f9886c953724e9cf71c34cb74