14
0

Accepting request 19838 from devel:languages:python

Copy from devel:languages:python/python-feedparser based on submit request 19838 from user matejcik

OBS-URL: https://build.opensuse.org/request/show/19838
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-feedparser?expand=0&rev=1
This commit is contained in:
OBS User autobuild
2009-09-03 14:43:11 +00:00
committed by Git OBS Bridge
commit e9c5c26210
6 changed files with 97 additions and 0 deletions

63
python-feedparser.spec Normal file
View File

@@ -0,0 +1,63 @@
#
# spec file for package python-feedparser (Version 4.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define modname feedparser
Name: python-feedparser
Version: 4.1
Release: 1
Summary: Universal Feed Parser Module for Python
Url: http://sourceforge.net/projects/feedparser/
License: BSD
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
BuildRequires: python-devel python-setuptools
Requires: python-setuptools
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description
A universal feed parser module for Python that handles RSS 0.9x, RSS 1.0, RSS
2.0, CDF, Atom 0.3, Atom 1.0 feeds.
Authors:
--------
Mark Pilgrim <mark@diveintomark.org>
%prep
%setup -q -n %{modname}-%{version}
chmod 0644 README
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --single-version-externally-managed --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README
%changelog