clog
This commit is contained in:
parent
81c110b5a0
commit
f2f07e6cf5
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/html5lib-0.90.zip
|
||||
/html5lib-0.95.tar.gz
|
||||
/html5lib-1.0b2.tar.gz
|
||||
|
@ -1,23 +1,25 @@
|
||||
%global modulename html5lib
|
||||
%global with_python3 1
|
||||
|
||||
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
|
||||
|
||||
@ -43,8 +45,6 @@ specification for maximum compatibility with major desktop web browsers.
|
||||
%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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user