%define pyver %(python -c 'import sys ; print sys.version[:3]') %define pynext %(python -c 'print %{pyver} + 0.1') Name: python-reportlab Version: 1.19 Release: 0.fdr.2.2 Epoch: 0 Summary: Python PDF generation library Group: Development/Libraries License: BSD URL: http://www.reportlab.org/ Source0: http://www.reportlab.org/ftp/ReportLab_1_19.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel >= 0:2.2 Requires: python >= 0:%{pyver}, python < 0:%{pynext} %description Python PDF generation library. %prep %setup -q -n reportlab-1_19 %build cd ./reportlab CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT cd ./reportlab %{__python} setup.py install --root $RPM_BUILD_ROOT rm -f ${RPM_BUILD_ROOT}%{_libdir}/python%{pyver}/reportlab/README rm -f ${RPM_BUILD_ROOT}%{_libdir}/python%{pyver}/reportlab/changes rm -f ${RPM_BUILD_ROOT}%{_libdir}/python%{pyver}/reportlab/license.txt %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc reportlab/README reportlab/changes reportlab/license.txt %{_libdir}/python%{pyver}/* %changelog * Sat Apr 24 2004 Brian Pepple 0:1.19-0.fdr.2 - Removed %ghosts. * Sat Mar 20 2004 Brian Pepple 0:1.19-0.fdr.1 - Initial Fedora RPM build.