This commit is contained in:
Praveen Kumar 2013-07-08 08:18:56 +05:30
parent 81c110b5a0
commit f2f07e6cf5
3 changed files with 18 additions and 14 deletions

1
.gitignore vendored
View File

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

View File

@ -1,23 +1,25 @@
%global modulename html5lib
%global with_python3 1
%global modulename html5lib
Name: python-%{modulename}
Summary: A python based HTML parser/tokenizer
Version: 0.95
Release: 4%{?dist}
Version: 1.0b2
Release: 1%{?dist}
Group: Development/Libraries
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
BuildRequires: python-setuptools
BuildRequires: python2-devel
BuildRequires: python-nose
BuildRequires: python-six
%if 1%{?with_python3}
BuildRequires: python3-devel
BuildRequires: python-tools
BuildRequires: python3-nose
BuildRequires: python3-setuptools
%endif
@ -38,13 +40,11 @@ specification for maximum compatibility with major desktop web browsers.
%prep
%setup -q -n %{modulename}-%{version}
%setup -q -n %{modulename}-%{version}
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
2to3 --write --nobackups %{py3dir}
%endif
%build
@ -68,28 +68,31 @@ popd
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%check
%{__python} setup.py test
nosetests
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py test
nosetests-3.3
popd
%endif
%files
%doc README
%doc CHANGES.rst README.rst LICENSE
%{python_sitelib}/%{modulename}-*.egg-info
%{python_sitelib}/%{modulename}
%if 0%{?with_python3}
%files -n python3-%{modulename}
%doc README
%doc CHANGES.rst LICENSE README.rst
%{python3_sitelib}/%{modulename}-*.egg-info
%{python3_sitelib}/%{modulename}
%endif
%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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

View File

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