diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e233ef7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/html5lib-0.999.tar.gz diff --git a/.python-html5lib.metadata b/.python-html5lib.metadata new file mode 100644 index 0000000..f95fc6c --- /dev/null +++ b/.python-html5lib.metadata @@ -0,0 +1 @@ +bc30bb7132c06d9241a672f40b3ade32d7eab12d SOURCES/html5lib-0.999.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/python-html5lib.spec b/SPECS/python-html5lib.spec new file mode 100644 index 0000000..5ceafb9 --- /dev/null +++ b/SPECS/python-html5lib.spec @@ -0,0 +1,143 @@ +%global modulename html5lib +%if 0%{?fedora} +%global with_python3 1 +%endif + +Name: python-%{modulename} +Summary: A python based HTML parser/tokenizer +Version: 0.999 +Release: 2%{?dist} +Epoch: 1 +Group: Development/Libraries +License: MIT +URL: https://pypi.python.org/pypi/%{modulename} + +Source0: https://pypi.python.org/packages/source/h/%{modulename}/%{modulename}-%{version}.tar.gz + +BuildArch: noarch +Requires: python-six +BuildRequires: python-setuptools +BuildRequires: python2-devel +BuildRequires: python-nose +BuildRequires: python-six + +%description +A python based HTML parser/tokenizer based on the WHATWG HTML5 +specification for maximum compatibility with major desktop web browsers. + +%if 0%{?with_python3} +%package -n python3-%{modulename} +Summary: A python based HTML parser/tokenizer +Group: Development/Libraries + +Requires: python3-six +BuildRequires: python3-devel +BuildRequires: python-tools +BuildRequires: python3-nose +BuildRequires: python3-six +BuildRequires: python3-setuptools + +%description -n python3-%{modulename} +A python based HTML parser/tokenizer based on the WHATWG HTML5 +specification for maximum compatibility with major desktop web browsers. +%endif + + +%prep +%setup -q -n %{modulename}-%{version} + +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif + +%build +%{__python} setup.py build + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif + + +%install + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install -O1 --skip-build --root %{buildroot} +popd +%endif + +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +%check +nosetests + +%if 0%{?with_python3} +pushd %{py3dir} +nosetests-%{python3_version} +popd +%endif + +%files +%doc CHANGES.rst README.rst +%license LICENSE +%{python_sitelib}/%{modulename}-*.egg-info +%{python_sitelib}/%{modulename} + +%if 0%{?with_python3} +%files -n python3-%{modulename} +%doc CHANGES.rst README.rst +%license LICENSE +%{python3_sitelib}/%{modulename}-*.egg-info +%{python3_sitelib}/%{modulename} +%endif + + +%changelog +* Wed Apr 04 2018 Patrick Creech - 1:0.999-2 +- Satellite 6.4.0 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1:0.999-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 14 2014 Bohuslav Kabrda - 1:0.999-4 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Fri May 09 2014 Dennis Gilmore - 0.999-3 +- move python3 Requires and BuildRequires into the python3 sub-package + +* Wed Mar 12 2014 Dan Scott - 0.999-2 +- "six" module is a runtime requirement + +* Sat Mar 01 2014 Praveen Kumar 0.999-1 +- Added epoch information + +* Wed Feb 26 2014 Dan Scott - 0.999-1 +- Updated for new version +- Fixed bogus dates in changelog + +* Sun Aug 04 2013 Fedora Release Engineering - 1.0b2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 8 2013 Praveen Kumar - 1.0b2-2 +- Updated python3 support which accidently removed from previous revision. + +* Mon Jul 8 2013 Praveen Kumar - 1.0b2-1 +- Updated new source + +* Thu Feb 14 2013 Fedora Release Engineering - 0.95-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Aug 04 2012 David Malcolm - 0.95-3 +- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 + +* Sat Jul 21 2012 Fedora Release Engineering - 0.95-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Feb 21 2012 Praveen Kumar - 0.95-1 +- Added python3 spec and updated new source + +* Mon Jul 18 2011 Praveen Kumar - 0.90-1 +- Initial spec