From f2f07e6cf55f6c83b55d2a2ee36f604521880311 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Mon, 8 Jul 2013 08:18:56 +0530 Subject: [PATCH] clog --- .gitignore | 1 + python-html5lib.spec | 29 ++++++++++++++++------------- sources | 2 +- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 6ce4805..e6c9c6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /html5lib-0.90.zip /html5lib-0.95.tar.gz +/html5lib-1.0b2.tar.gz diff --git a/python-html5lib.spec b/python-html5lib.spec index ea2edcf..40ce9a2 100644 --- a/python-html5lib.spec +++ b/python-html5lib.spec @@ -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 - 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 diff --git a/sources b/sources index 99a1d03..edb0ec7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fe607f9917d81763e842f818f23464ee html5lib-0.95.tar.gz +ce0b9317628e40bf55a9d71f6948cbba html5lib-1.0b2.tar.gz