diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3d27230 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/dominate-2.3.1.tar.gz +/dominate-2.5.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index a45f53e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-dominate - -The python-dominate package \ No newline at end of file diff --git a/python-dominate.spec b/python-dominate.spec new file mode 100644 index 0000000..efb7236 --- /dev/null +++ b/python-dominate.spec @@ -0,0 +1,88 @@ +%global pypi_name dominate + +Name: python-%{pypi_name} +Version: 2.5.1 +Release: 1%{?dist} +Summary: Python library for HTML documents + +License: GPLv3 +URL: http://github.com/Knio/dominate/ +Source0: %{pypi_source} +BuildArch: noarch + +%description +Dominate is a Python library for creating and manipulating HTML documents +using an elegant DOM API. It allows you to write HTML pages in pure Python +very concisely, which eliminates the need to learn another template language, +and lets you take advantage of the more powerful features of Python. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-setuptools +BuildRequires: python3-devel +BuildRequires: python3-pytest +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Dominate is a Python library for creating and manipulating HTML documents +using an elegant DOM API. It allows you to write HTML pages in pure Python +very concisely, which eliminates the need to learn another template language, +and lets you take advantage of the more powerful features of Python. + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests + +%files -n python3-%{pypi_name} +%license LICENSE.txt +%doc README.md +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py*egg-info + +%changelog +* Sat Apr 18 2020 Fabian Affolter - 2.5.1-1 +- Update to latest upstream release 2.5.1 (rhbz#1697397) + +* Thu Jan 30 2020 Fedora Release Engineering - 2.3.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 2.3.1-10 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 2.3.1-9 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.3.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 2.3.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jan 04 2019 Miro Hrončok - 2.3.1-6 +- Subpackage python2-dominate has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jul 14 2018 Fedora Release Engineering - 2.3.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 2.3.1-4 +- Rebuilt for Python 3.7 + +* Tue Jun 19 2018 Miro Hrončok - 2.3.1-3 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 2.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Jul 04 2017 David Hannequin - 2.3.1-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..f348d93 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dominate-2.5.1.tar.gz) = 85f25a1f2506bcb9ff9cdff699aabe7cfdd4ec690d53624b99642472299cb8b3947ce6f215ff913aa5a80e61d31b92c09f01f03c8f5b04e0d60b92098790953e