%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define module_name relatorio
Name: python-%{module_name}
Version: 0.4.1
Release: 1%{?dist}
Summary: A templating library able to output odt and pdf files
Group: Development/Languages
License: GPLv2+
URL: http://relatorio.openhex.org/
Source0: http://pypi.python.org/packages/source/r/%{module_name}/%{module_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel python-setuptools python-genshi
Requires: python-setuptools python-genshi python-lxml
%description
A templating library which provides a way to easily output all kind of
different files (odt, ods, png, svg, ...). Adding support for more filetype
is easy: you just have to create a plugin for this.
relatorio also provides a report repository allowing you to link python
objects and report together, find reports by mimetypes/name/python objects.
%prep
%setup -q -n %{module_name}-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
%{python_sitelib}/*
%changelog
* Thu Nov 20 2008 Dan HorĂ¡k <dan[at]danny.cz> 0.4.1-1
- initial Fedora version