%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: chm2pdf Version: 0.9.1 Release: 3%{?dist} Summary: A tool to convert CHM files to PDF files Group: Applications/Publishing License: GPLv2+ URL: http://code.google.com/p/chm2pdf/ Source: http://chm2pdf.googlecode.com/files/chm2pdf-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel Requires: python >= 2.5, python-chm, htmldoc %description A simple Python script that converts CHM files into PDF files. %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README LICENSE %{_bindir}/chm2pdf %{python_sitelib}/chm2pdf-0.9-py2.5.egg-info %changelog * Fri Jul 25 2008 Kushal Das 0.9.1-3 - Fixed as asked in the review * Wed Jul 23 2008 Kushal Das 0.9.1-2 - Fixed the group * Wed Jul 23 2008 Kushal Das 0.9.1-1 - Initial RPM release