|
|
29b566 |
%global modulename html5lib
|
|
|
29b566 |
%if 0%{?fedora}
|
|
|
29b566 |
%global with_python3 1
|
|
|
29b566 |
%endif
|
|
|
29b566 |
|
|
|
29b566 |
Name: python-%{modulename}
|
|
|
29b566 |
Summary: A python based HTML parser/tokenizer
|
|
|
29b566 |
Version: 0.999
|
|
|
29b566 |
Release: 2%{?dist}
|
|
|
29b566 |
Epoch: 1
|
|
|
29b566 |
Group: Development/Libraries
|
|
|
29b566 |
License: MIT
|
|
|
29b566 |
URL: https://pypi.python.org/pypi/%{modulename}
|
|
|
29b566 |
|
|
|
29b566 |
Source0: https://pypi.python.org/packages/source/h/%{modulename}/%{modulename}-%{version}.tar.gz
|
|
|
29b566 |
|
|
|
29b566 |
BuildArch: noarch
|
|
|
29b566 |
Requires: python-six
|
|
|
29b566 |
BuildRequires: python-setuptools
|
|
|
29b566 |
BuildRequires: python2-devel
|
|
|
29b566 |
BuildRequires: python-nose
|
|
|
29b566 |
BuildRequires: python-six
|
|
|
29b566 |
|
|
|
29b566 |
%description
|
|
|
29b566 |
A python based HTML parser/tokenizer based on the WHATWG HTML5
|
|
|
29b566 |
specification for maximum compatibility with major desktop web browsers.
|
|
|
29b566 |
|
|
|
29b566 |
%if 0%{?with_python3}
|
|
|
29b566 |
%package -n python3-%{modulename}
|
|
|
29b566 |
Summary: A python based HTML parser/tokenizer
|
|
|
29b566 |
Group: Development/Libraries
|
|
|
29b566 |
|
|
|
29b566 |
Requires: python3-six
|
|
|
29b566 |
BuildRequires: python3-devel
|
|
|
29b566 |
BuildRequires: python-tools
|
|
|
29b566 |
BuildRequires: python3-nose
|
|
|
29b566 |
BuildRequires: python3-six
|
|
|
29b566 |
BuildRequires: python3-setuptools
|
|
|
29b566 |
|
|
|
29b566 |
%description -n python3-%{modulename}
|
|
|
29b566 |
A python based HTML parser/tokenizer based on the WHATWG HTML5
|
|
|
29b566 |
specification for maximum compatibility with major desktop web browsers.
|
|
|
29b566 |
%endif
|
|
|
29b566 |
|
|
|
29b566 |
|
|
|
29b566 |
%prep
|
|
|
29b566 |
%setup -q -n %{modulename}-%{version}
|
|
|
29b566 |
|
|
|
29b566 |
%if 0%{?with_python3}
|
|
|
29b566 |
rm -rf %{py3dir}
|
|
|
29b566 |
cp -a . %{py3dir}
|
|
|
29b566 |
%endif
|
|
|
29b566 |
|
|
|
29b566 |
%build
|
|
|
29b566 |
%{__python} setup.py build
|
|
|
29b566 |
|
|
|
29b566 |
%if 0%{?with_python3}
|
|
|
29b566 |
pushd %{py3dir}
|
|
|
29b566 |
%{__python3} setup.py build
|
|
|
29b566 |
popd
|
|
|
29b566 |
%endif
|
|
|
29b566 |
|
|
|
29b566 |
|
|
|
29b566 |
%install
|
|
|
29b566 |
|
|
|
29b566 |
%if 0%{?with_python3}
|
|
|
29b566 |
pushd %{py3dir}
|
|
|
29b566 |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
29b566 |
popd
|
|
|
29b566 |
%endif
|
|
|
29b566 |
|
|
|
29b566 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
29b566 |
|
|
|
29b566 |
%check
|
|
|
29b566 |
nosetests
|
|
|
29b566 |
|
|
|
29b566 |
%if 0%{?with_python3}
|
|
|
29b566 |
pushd %{py3dir}
|
|
|
29b566 |
nosetests-%{python3_version}
|
|
|
29b566 |
popd
|
|
|
29b566 |
%endif
|
|
|
29b566 |
|
|
|
29b566 |
%files
|
|
|
29b566 |
%doc CHANGES.rst README.rst
|
|
|
29b566 |
%license LICENSE
|
|
|
29b566 |
%{python_sitelib}/%{modulename}-*.egg-info
|
|
|
29b566 |
%{python_sitelib}/%{modulename}
|
|
|
29b566 |
|
|
|
29b566 |
%if 0%{?with_python3}
|
|
|
29b566 |
%files -n python3-%{modulename}
|
|
|
29b566 |
%doc CHANGES.rst README.rst
|
|
|
29b566 |
%license LICENSE
|
|
|
29b566 |
%{python3_sitelib}/%{modulename}-*.egg-info
|
|
|
29b566 |
%{python3_sitelib}/%{modulename}
|
|
|
29b566 |
%endif
|
|
|
29b566 |
|
|
|
29b566 |
|
|
|
29b566 |
%changelog
|
|
|
29b566 |
* Wed Apr 04 2018 Patrick Creech <pcreech@redhat.com> - 1:0.999-2
|
|
|
29b566 |
- Satellite 6.4.0 rebuild
|
|
|
29b566 |
|
|
|
29b566 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.999-5
|
|
|
29b566 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
29b566 |
|
|
|
29b566 |
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1:0.999-4
|
|
|
29b566 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
29b566 |
|
|
|
29b566 |
* Fri May 09 2014 Dennis Gilmore <dennis@ausil.us> - 0.999-3
|
|
|
29b566 |
- move python3 Requires and BuildRequires into the python3 sub-package
|
|
|
29b566 |
|
|
|
29b566 |
* Wed Mar 12 2014 Dan Scott <dan@coffeecode.net> - 0.999-2
|
|
|
29b566 |
- "six" module is a runtime requirement
|
|
|
29b566 |
|
|
|
29b566 |
* Sat Mar 01 2014 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> 0.999-1
|
|
|
29b566 |
- Added epoch information
|
|
|
29b566 |
|
|
|
29b566 |
* Wed Feb 26 2014 Dan Scott <dan@coffeecode.net> - 0.999-1
|
|
|
29b566 |
- Updated for new version
|
|
|
29b566 |
- Fixed bogus dates in changelog
|
|
|
29b566 |
|
|
|
29b566 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0b2-3
|
|
|
29b566 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
29b566 |
|
|
|
29b566 |
* Mon Jul 8 2013 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 1.0b2-2
|
|
|
29b566 |
- Updated python3 support which accidently removed from previous revision.
|
|
|
29b566 |
|
|
|
29b566 |
* Mon Jul 8 2013 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 1.0b2-1
|
|
|
29b566 |
- Updated new source
|
|
|
29b566 |
|
|
|
29b566 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-4
|
|
|
29b566 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
29b566 |
|
|
|
29b566 |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.95-3
|
|
|
29b566 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
29b566 |
|
|
|
29b566 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-2
|
|
|
29b566 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
29b566 |
|
|
|
29b566 |
* Tue Feb 21 2012 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.95-1
|
|
|
29b566 |
- Added python3 spec and updated new source
|
|
|
29b566 |
|
|
|
29b566 |
* Mon Jul 18 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.90-1
|
|
|
29b566 |
- Initial spec
|