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