Praveen Kumar 12 years ago
parent 81c110b5a0
commit f2f07e6cf5

1
.gitignore vendored

@ -1,2 +1,3 @@
/html5lib-0.90.zip /html5lib-0.90.zip
/html5lib-0.95.tar.gz /html5lib-0.95.tar.gz
/html5lib-1.0b2.tar.gz

@ -1,23 +1,25 @@
%global modulename html5lib %global modulename html5lib
%global with_python3 1
Name: python-%{modulename} Name: python-%{modulename}
Summary: A python based HTML parser/tokenizer Summary: A python based HTML parser/tokenizer
Version: 0.95 Version: 1.0b2
Release: 4%{?dist} Release: 1%{?dist}
Group: Development/Libraries Group: Development/Libraries
License: MIT License: MIT
URL: http://code.google.com/p/%{modulename}/ URL: https://pypi.python.org/pypi/%{modulename}
Source0: http://html5lib.googlecode.com/files/%{modulename}-%{version}.tar.gz Source0: https://pypi.python.org/packages/source/h/%{modulename}/%{modulename}-1.0b2.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python-setuptools BuildRequires: python-setuptools
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python-nose
BuildRequires: python-six
%if 1%{?with_python3} %if 1%{?with_python3}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python-tools BuildRequires: python-tools
BuildRequires: python3-nose
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
%endif %endif
@ -43,8 +45,6 @@ specification for maximum compatibility with major desktop web browsers.
%if 0%{?with_python3} %if 0%{?with_python3}
rm -rf %{py3dir} rm -rf %{py3dir}
cp -a . %{py3dir} cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
2to3 --write --nobackups %{py3dir}
%endif %endif
%build %build
@ -68,28 +68,31 @@ popd
%{__python} setup.py install -O1 --skip-build --root %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot}
%check %check
%{__python} setup.py test nosetests
%if 0%{?with_python3} %if 0%{?with_python3}
pushd %{py3dir} pushd %{py3dir}
%{__python3} setup.py test nosetests-3.3
popd popd
%endif %endif
%files %files
%doc README %doc CHANGES.rst README.rst LICENSE
%{python_sitelib}/%{modulename}-*.egg-info %{python_sitelib}/%{modulename}-*.egg-info
%{python_sitelib}/%{modulename} %{python_sitelib}/%{modulename}
%if 0%{?with_python3} %if 0%{?with_python3}
%files -n python3-%{modulename} %files -n python3-%{modulename}
%doc README %doc CHANGES.rst LICENSE README.rst
%{python3_sitelib}/%{modulename}-*.egg-info %{python3_sitelib}/%{modulename}-*.egg-info
%{python3_sitelib}/%{modulename} %{python3_sitelib}/%{modulename}
%endif %endif
%changelog %changelog
* Wed Jul 8 2013 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 1.0b2-1
- Updated new source
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-4 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

@ -1 +1 @@
fe607f9917d81763e842f818f23464ee html5lib-0.95.tar.gz ce0b9317628e40bf55a9d71f6948cbba html5lib-1.0b2.tar.gz

Loading…
Cancel
Save