File python-turbofeeds.spec of Package python-turbofeeds

# norootforbuild

%if 0%{!?python_sitelib:1} || 0%{!?python_sitearch:1}
%define python_sitelib	%py_sitedir
%define python_sitearch	%py_sitedir
%endif
%define mod_name        turbofeeds
%define tarball_name    TurboFeeds
Summary:		TurboGears controller and widgets for feed handling
Name:			python-%{mod_name}
Version: 		0.2b
Release:		0
License:		MIT
Group:			Development/Libraries/Python
URL:			http://chrisarndt.de/projects/turbofeeds
Source0:		%{tarball_name}-%{version}.tar.bz2
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
%if %suse_version >= 1120
BuildArch:		noarch
%endif
%py_requires
BuildRequires:	python-devel
%if 0%{?suse_version} >= 1110
Requires:		python-base >= %{py_ver}
%else
Requires:		python >= %{py_ver}
%endif

%description 
Turbofeeds is a TurboGears 1 extension which provides support for generating
RSS and Atom feeds and matching display widgets.TurboFeeds was formerly the
feed sub-package of the main TurboGears distribution. It was extracted from the
TG core to ease updating, enhancing, and maintaining both projects.
TurboFeeds is mostly backwards-compatible with the turbogears.feed
package, but has lots of fixes and a few new features, most importantly support
for Genshi templates. It works with both the TurboGears 1.0 and the 1.1 branch.

Authors:
--------
    Christopher Arndt <chris at chrisarndt de>

%prep

%setup -q -n "%{tarball_name}-%{version}"

%build
%__python ./setup.py build

%install
%__python ./setup.py install \
	--prefix="%{_prefix}" \
	--root="%{buildroot}" \
    --record-rpm=files.lst

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%files -f files.lst
%defattr(-,root,root)
%doc CHANGELOG.txt  doc PKG-INFO README.txt TODO.txt

%changelog
openSUSE Build Service is sponsored by