rst2pdf/rst2pdf.spec

65 lines
1.8 KiB
RPMSpec

Name: rst2pdf
Version: 0.92
Release: 1mamba
Summary: Convert reStructuredText to PDF via ReportLab
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://rst2pdf.googlecode.com
Source: http://rst2pdf.googlecode.com/files/rst2pdf-%{version}.tar.gz
Patch: rst2pdf-0.16-docutils_0.8.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
BuildRequires: python
## AUTOBUILDREQ-END
Requires: python >= %python_version
Requires: python-reportlab
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch
%description
Convert reStructuredText to PDF via ReportLab.
%prep
%setup -q
#%patch -p1
%build
%{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--single-version-externally-managed \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
#install -D -m 644 doc/rst2pdf.1 \
# %{buildroot}/%{_mandir}/man1/rst2pdf.1
#echo "%{_mandir}/man1/rst2pdf.1.gz" >> %{name}.filelist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.filelist
%defattr(-,root,root)
%doc LICENSE.txt
#%doc CHANGES.txt Contributors.txt README.txt doc/manual.pdf
%changelog
* Thu Aug 09 2012 Automatic Build System <autodist@mambasoft.it> 0.92-1mamba
- automatic version update by autodist
* Wed Dec 21 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.16-2mamba
- fixing compatibility with docutils 0.8
* Tue Oct 12 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.16-1mamba
- package created by autospec