14
0

- Update to version 5.1:

* Extensive, extensive unit test refactoring
  * Convert the Docbook documentation to ReST
  * Include the documentation in the source distribution
  * Consolidate the disparate README files into one
  * Support Jython somewhat (almost all unit tests pass)
  * Support Python 3.2
  * Fix Python 3 issues exposed by improved unit tests
  * Fix international domain name issues exposed by improved unit tests 
- Run testsuite

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-feedparser?expand=0&rev=18
This commit is contained in:
Sascha Peilicke
2012-02-19 20:43:56 +00:00
committed by Git OBS Bridge
parent e4443e458e
commit 6e12874073
2 changed files with 13 additions and 14 deletions

View File

@@ -16,7 +16,6 @@
#
Name: python-feedparser
Version: 5.1
Release: 0
@@ -27,17 +26,13 @@ Url: http://sourceforge.net/projects/feedparser/
Source: feedparser-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-distribute
BuildRequires: python-xml
Requires: python-xml
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description
A universal feed parser module for Python that handles RSS 0.9x, RSS 1.0, RSS
@@ -45,10 +40,10 @@ A universal feed parser module for Python that handles RSS 0.9x, RSS 1.0, RSS
%prep
%setup -q -n feedparser-%{version}
chmod 0644 README
chmod 0644 README # Fix executable bits
sed -i "1d" feedparser/feedparser.py # Fix non-executable script
%build
export CFLAGS="%{optflags}"
python setup.py build
%if 0%{?suse_version} > 1010
@@ -63,10 +58,6 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
chmod 0755 %{buildroot}%{python_sitelib}/feedparser.py
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)