parent
54eb17a044
commit
95e0a2ae94
@ -1 +1,2 @@
|
|||||||
/html5lib-0.90.zip
|
/html5lib-0.90.zip
|
||||||
|
/html5lib-0.95.tar.gz
|
||||||
|
@ -1,43 +1,97 @@
|
|||||||
%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.90
|
Version: 0.95
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://code.google.com/p/%{modulename}/
|
URL: http://code.google.com/p/%{modulename}/
|
||||||
|
|
||||||
Source0: http://html5lib.googlecode.com/files/%{modulename}-%{version}.zip
|
Source0: http://html5lib.googlecode.com/files/%{modulename}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
|
||||||
|
%if 1%{?with_python3}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python-tools
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A python based HTML parser/tokenizer based on the WHATWG HTML5
|
A python based HTML parser/tokenizer based on the WHATWG HTML5
|
||||||
specification for maximum compatibility with major desktop web browsers.
|
specification for maximum compatibility with major desktop web browsers.
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%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
|
%build
|
||||||
%{__python} setup.py build
|
%{__python} setup.py build
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
|
pushd %{py3dir}
|
||||||
|
%{__python3} setup.py build
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
|
pushd %{py3dir}
|
||||||
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python} setup.py test
|
%{__python} setup.py test
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
|
pushd %{py3dir}
|
||||||
|
%{__python3} setup.py test
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc examples README
|
%doc README
|
||||||
%{python_sitelib}/%{modulename}-*.egg-info
|
%{python_sitelib}/%{modulename}-*.egg-info
|
||||||
%{python_sitelib}/%{modulename}
|
%{python_sitelib}/%{modulename}
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
|
%files -n python3-%{modulename}
|
||||||
|
%doc README
|
||||||
|
%{python3_sitelib}/%{modulename}-*.egg-info
|
||||||
|
%{python3_sitelib}/%{modulename}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.90-2
|
* Tue Feb 21 2012 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.95-1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
- Added python3 spec and updated new source
|
||||||
|
|
||||||
* Mon Jul 18 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.90-1
|
* Mon Jul 18 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.90-1
|
||||||
- Initial spec
|
- Initial spec
|
||||||
|
Loading…
Reference in new issue