Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 01d7bf4592f4b54ed1e02de517c2c2cf > files > 3

rst2pdf-0.93-1.fc18.src.rpm

%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name: rst2pdf
Version: 0.93
Release: 1%{?dist}
Summary: Tool for transforming reStructuredText to PDF
License: MIT

Group: Development/Languages
URL: http://rst2pdf.ralsina.com.ar
Source0: http://rst2pdf.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0: rst2pdf-bz842800.patch

BuildRequires: python-setuptools python-devel
Requires: python-reportlab python-simplejson python-pygments python-docutils
Requires: python-pdfrw
BuildArch: noarch

%description
Tool for transforming reStructuredText to PDF using ReportLab

%prep
%setup -q
%patch0 -p1
sed -i 's/\r//' Contributors.txt

%build
python setup.py build

%install
rm -rf %{buildroot}
python setup.py install --skip-build --root  %{buildroot}
# Removing shebang from Python library 
for lib in $(find %{buildroot}%{python_sitelib}/rst2pdf -name "*.py"); do
 sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
 touch -r $lib $lib.new &&
 mv $lib.new $lib
done

%files
%doc CHANGES.txt Contributors.txt LICENSE.txt README.txt
%{_bindir}/%{name}
%{python_sitelib}/%{name}*

%changelog
* Tue Jul 23 2013 Sergio Pascual <sergiopr at fedoraproject.org> - 0.93-1
- New upstream version 0.93

* Fri Dec 07 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.92-4
- Fix wrong URL

* Fri Jul 27 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.92-3
- Fix for bz #842800

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.92-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Tue Jun 05 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.92-1
- New upstream source, compatible with docutils 9

* Mon Mar 26 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.91-2
- Adding sources

* Mon Mar 26 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.91-1
- New upstream source, fixes bz #709119

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Jun 08 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.16-4
- Updated fix for bz #709119

* Tue May 31 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.16-3
- Fix for bz #709119

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Nov 26 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.16-1
- New upstream source

* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.14.2-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Tue Apr 06 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.14.2-1
- New upstream source

* Thu Mar 18 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.13.1-1
- New upstream source

* Mon Mar 15 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.13-1
- New upstream source

* Tue Feb 02 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.12.3-2
- Missing python-docutils dependency (bz #561050)

* Wed Dec 23 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.12.3-1
- New upstream source

* Fri Nov 13 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.12.2-2
- URL changed
- Requires pygments
- Preserving timestamps during install

* Thu Nov 05 2009 Sergio Pascual <spr@astrax.fis.ucm.es> - 0.12.2-1
- New upstream source

* Wed Jun 24 2009 Sergio Pascual <spr@astrax.fis.ucm.es> - 0.11-1
- New upstream source

* Sun Jun 21 2009 Sergio Pascual <spr@astrax.fis.ucm.es> - 0.10.1-2
- Requires simplejson

* Wed Jun 17 2009 Sergio Pascual <spr@astrax.fis.ucm.es> - 0.10.1-1
- Initial spec file