Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 4290f553b472a28c8256b29df1a2cd8c > files > 3

rst2pdf-0.93-2.mga3.src.rpm

Name:		rst2pdf 
Version:	0.93
Release:	%mkrel 2

Summary:	Tool for transforming reStructuredText to PDF
License:	MIT
Group:		Publishing
URL:		http://rst2pdf.ralsina.com.ar/
Source:		http://rst2pdf.googlecode.com/files/%{name}-%{version}.tar.gz
# Patch from Fedora to fix bz #842800
Patch0:		rst2pdf-bz842800.patch

BuildArch:	noarch

BuildRequires:	python-devel 
BuildRequires:	python-setuptools 
BuildRequires:	python-docutils

Requires:	python-reportlab
Requires:	python-simplejson
Requires:	python-pygments
Requires:	python-docutils

%description
The usual way of creating PDF files from reStructuredText is by going 
through LaTeX. This tool provides an alternative by producing PDF
directly using the ReportLab library.

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

%build
%{__python} setup.py build  
cd doc
rst2man rst2pdf.txt rst2pdf.1

%install
rm -rf %{buildroot} 
PYTHONDONTWRITEBYTECODE= %{__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

mkdir -p %{buildroot}/%{_mandir}/man1
install -p -m 644 doc/rst2pdf.1 %{buildroot}/%{_mandir}/man1

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



%changelog

* Mon Jan 14 2013 umeabot <umeabot> 0.93-2.mga3
+ Revision: 380524
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Dec 23 2012 philippem <philippem> 0.93-1.mga3
+ Revision: 334162
- Update to 0.93

* Sat Oct 20 2012 philippem <philippem> 0.92-1.mga3
+ Revision: 308382
- New upstream

* Tue Mar 06 2012 philippem <philippem> 0.91-1.mga2
+ Revision: 220071
- Update to 0.91.

* Thu Mar 31 2011 philippem <philippem> 0.16-1.mga1
+ Revision: 79365
- imported package rst2pdf