74e909
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
74e909
Lakshmi Narasimhan dc4cc5
Name:       chm2pdf
Lakshmi Narasimhan dc4cc5
Version:    0.9.1
d10d76
Release:    16%{?dist}
Lakshmi Narasimhan dc4cc5
Summary:    A tool to convert CHM files to PDF files
Lakshmi Narasimhan dc4cc5
Group:      Applications/Publishing
Lakshmi Narasimhan dc4cc5
License:    GPLv2+
Lakshmi Narasimhan dc4cc5
URL:        http://code.google.com/p/chm2pdf/
Lakshmi Narasimhan dc4cc5
Source:     http://chm2pdf.googlecode.com/files/chm2pdf-%{version}.tar.gz
Lakshmi Narasimhan dc4cc5
Lakshmi Narasimhan dc4cc5
BuildArch:  noarch
Lakshmi Narasimhan dc4cc5
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Lakshmi Narasimhan dc4cc5
BuildRequires:  python-devel
Lakshmi Narasimhan dc4cc5
Requires:   python >= 2.5, python-chm, htmldoc
Lakshmi Narasimhan dc4cc5
Patch1:     chm2pdf_insecure_tempdirs.patch
d5fa37
# https://code.google.com/p/chm2pdf/issues/detail?id=3
d5fa37
Patch2:     chm2pdf-0.9.1_space.patch
d5fa37
# Additional my patch for that bug
d5fa37
Patch3:     chm2pdf-0.9.1-shellquote.patch
74e909
74e909
%description
74e909
A simple Python script that converts CHM files into PDF files.
74e909
74e909
%prep
74e909
%setup -q
Lakshmi Narasimhan dc4cc5
%patch1 -p1 -b .orig
d5fa37
%patch2 -p0 -b .space
d5fa37
%patch3 -p0 -b .shellquote
74e909
74e909
%build
74e909
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
74e909
74e909
%install
74e909
rm -rf $RPM_BUILD_ROOT
74e909
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
74e909
74e909
%clean
74e909
rm -rf $RPM_BUILD_ROOT
74e909
74e909
%files
74e909
%defattr(-,root,root,-)
74e909
%doc README LICENSE
74e909
%{_bindir}/chm2pdf
345c1b
%{python_sitelib}/chm2pdf-0.9-py?.?.egg-info
74e909
74e909
74e909
%changelog
d10d76
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-16
d10d76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d10d76
0e71c6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-15
0e71c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0e71c6
d5fa37
* Sat May 18 2013 Pavel Alexeev <pahan@hubbitus.info> - 0.9.1-14
d5fa37
- Apply rebased Patch2: chm2pdf-0.9.1_space.patch from https://code.google.com/p/chm2pdf/issues/detail?id=3 to fix bz#869041
d5fa37
- Provide Patch3: chm2pdf-0.9.1-shellquote.patch
d5fa37
359cee
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-13
359cee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
359cee
d29031
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-12
d29031
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d29031
c72572
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-11
c72572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c72572
c91788
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-10
c91788
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c91788
Lakshmi Narasimhan dc4cc5
* Sun Jan 9 2011 Lakshmi Narasimhan T V <lakshminaras2002@gmail.com> - 0.9.1-9
Lakshmi Narasimhan a47726
- Applied patch to fix use of fixed temporary directories. Fixes bugs 474455,474457
Lakshmi Narasimhan dc4cc5
2c1b3c
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.1-8
2c1b3c
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2c1b3c
499ea7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-7
499ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
499ea7
f0ef28
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-6
f0ef28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f0ef28
345c1b
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.1-5
345c1b
- Fix locations for Python 2.6
345c1b
8dff23
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.1-4
8dff23
- Rebuild for Python 2.6
8dff23
74e909
* Fri Jul 25 2008 Kushal Das <kushal@fedoraproject.org> 0.9.1-3
74e909
- Fixed as asked in the review
74e909
74e909
* Wed Jul 23 2008 Kushal Das <kushal@fedoraproject.org> 0.9.1-2
74e909
- Fixed the group
74e909
74e909
* Wed Jul 23 2008 Kushal Das <kushal@fedoraproject.org> 0.9.1-1
74e909
- Initial RPM release
74e909