Name: pdfbook Version: 20070930 Release: 1 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}-%{version}.c Source1: http://www.ctan.org/get/support/%{name}/%{name}-%{version}.README Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: gcc, patch # For pdfinfo Requires: poppler-utils %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 export PATH=/opt/freeware/bin:$PATH cp %{SOURCE0} . cp %{SOURCE1} . %patch0 %build gcc -O pdfbook*.c -o %{name} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir}/ cp %{name} ${RPM_BUILD_ROOT}%{_bindir}/ chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc pdfbook-20070930.README %{_bindir}/* /usr/bin/* %changelog * Tue Jul 29 2014 Michael Perzl - 20070903-1 - first version for AIX V5.1 and higher