2013-07-08 02:48:56 +00:00
|
|
|
%global modulename html5lib
|
2013-07-08 16:21:51 +00:00
|
|
|
%global with_python3 1
|
2011-07-18 16:59:43 +00:00
|
|
|
|
|
|
|
Name: python-%{modulename}
|
|
|
|
Summary: A python based HTML parser/tokenizer
|
2014-03-01 16:25:14 +00:00
|
|
|
Version: 0.999
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Epoch: 1
|
2011-07-18 16:59:43 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
License: MIT
|
2013-07-08 02:48:56 +00:00
|
|
|
URL: https://pypi.python.org/pypi/%{modulename}
|
2011-07-18 16:59:43 +00:00
|
|
|
|
2014-03-01 16:25:14 +00:00
|
|
|
Source0: https://pypi.python.org/packages/source/h/%{modulename}/%{modulename}-%{version}.tar.gz
|
2011-07-18 16:59:43 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-setuptools
|
2012-02-21 17:09:29 +00:00
|
|
|
BuildRequires: python2-devel
|
2013-07-08 02:48:56 +00:00
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-six
|
2012-02-21 17:09:29 +00:00
|
|
|
|
|
|
|
%if 1%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python-tools
|
2013-07-08 02:48:56 +00:00
|
|
|
BuildRequires: python3-nose
|
2013-07-08 16:21:51 +00:00
|
|
|
BuildRequires: python3-six
|
2012-02-21 17:09:29 +00:00
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
%endif
|
2011-07-18 16:59:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
A python based HTML parser/tokenizer based on the WHATWG HTML5
|
|
|
|
specification for maximum compatibility with major desktop web browsers.
|
|
|
|
|
2012-02-21 17:09:29 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-%{modulename}
|
|
|
|
Summary: A python based HTML parser/tokenizer
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%prep
|
2013-07-08 02:48:56 +00:00
|
|
|
%setup -q -n %{modulename}-%{version}
|
2011-07-18 16:59:43 +00:00
|
|
|
|
2012-02-21 17:09:29 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif
|
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
2012-02-21 17:09:29 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%install
|
2012-02-21 17:09:29 +00:00
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
%check
|
2013-07-08 02:48:56 +00:00
|
|
|
nosetests
|
2011-07-18 16:59:43 +00:00
|
|
|
|
2012-02-21 17:09:29 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
2013-07-08 02:48:56 +00:00
|
|
|
nosetests-3.3
|
2012-02-21 17:09:29 +00:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%files
|
2013-07-08 02:48:56 +00:00
|
|
|
%doc CHANGES.rst README.rst LICENSE
|
2011-07-18 16:59:43 +00:00
|
|
|
%{python_sitelib}/%{modulename}-*.egg-info
|
|
|
|
%{python_sitelib}/%{modulename}
|
|
|
|
|
2012-02-21 17:09:29 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-%{modulename}
|
2013-07-08 02:48:56 +00:00
|
|
|
%doc CHANGES.rst LICENSE README.rst
|
2012-02-21 17:09:29 +00:00
|
|
|
%{python3_sitelib}/%{modulename}-*.egg-info
|
|
|
|
%{python3_sitelib}/%{modulename}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%changelog
|
2014-03-01 16:25:14 +00:00
|
|
|
* Sat Mar 01 2014 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> 0.999-1
|
|
|
|
- Added epoch information
|
|
|
|
|
|
|
|
* Wed Feb 26 2014 Dan Scott <dan@coffeecode.net> - 0.999-1
|
|
|
|
- Updated for new version
|
|
|
|
- Fixed bogus dates in changelog
|
|
|
|
|
2013-08-04 07:58:45 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0b2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2014-03-01 16:25:14 +00:00
|
|
|
* Mon Jul 8 2013 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 1.0b2-2
|
2013-07-08 16:47:19 +00:00
|
|
|
- Updated python3 support which accidently removed from previous revision.
|
|
|
|
|
2014-03-01 16:25:14 +00:00
|
|
|
* Mon Jul 8 2013 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 1.0b2-1
|
2013-07-08 02:48:56 +00:00
|
|
|
- Updated new source
|
|
|
|
|
2013-02-14 19:39:07 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-04 08:55:33 +00:00
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.95-3
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-07-21 06:35:08 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-21 17:09:29 +00:00
|
|
|
* Tue Feb 21 2012 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.95-1
|
|
|
|
- Added python3 spec and updated new source
|
2012-01-14 01:46:55 +00:00
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
* Mon Jul 18 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.90-1
|
|
|
|
- Initial spec
|