Name: pdfbook Version: 20070930 Release: 3%{?dist} Summary: Rearrange pages in a PDF file into signatures License: GPLv2 Group: Applications/Publishing Url: http://www.ctan.org/tex-archive/support/pdfbook/ Source0: http://www.ctan.org/get/support/%{name}/%{name}.c Source1: http://www.ctan.org/get/support/%{name}/README # For pdfinfo Requires: poppler-utils # For pdfpages latex package %if 0%{?fedora} >= 9 Requires: texlive-texmf-latex %else Requires: tetex-texmf-latex %endif BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description Rearrange pages in a PDF file into signatures and (optionally) rescale to fit 2 original pages on 1 physical one. Allows one to easily convert pdf documents to booklet format, e.g. transform from A4 paper to A5 pages on A4 paper, such that one can fold the pages and obtains a small booklet. %prep %setup -c -T cp %{SOURCE0} . cp %{SOURCE1} . %build gcc $RPM_OPT_FLAGS pdfbook.c -o pdfbook %install rm -rf $RPM_BUILD_ROOT mkdir -p ${RPM_BUILD_ROOT}%{_bindir}/ install -m 755 %{name} ${RPM_BUILD_ROOT}%{_bindir}/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README %{_bindir}/* %changelog * Thu Dec 11 2008 Mary Ellen Foster - 20070930-3 - Change version and release to meet guidelines * Tue Dec 9 2008 Mary Ellen Foster - 0-2.20070930 - Revised to be slightly less trivial so the debuginfo package gets built. Thanks to Jason Tibbitts. - Fix BuildRoot to follow the latest guidelines * Fri Dec 5 2008 Mary Ellen Foster - 0-1.20070930 - Initial package