Name: pdfsam Version: 2.2.2e Release: 1mamba Summary: Split and merge PDF documents Group: Applications/Publishing Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.pdfsam.org/ Source: http://downloads.sourceforge.net/project/pdfsam/pdfsam-enhanced/%{version}/pdfsam-%{version}-out-src.zip #Source: http://downloads.sourceforge.net/project/pdfsam/pdfsam/%{version}/pdfsam-%{version}-out-src.zip Patch0: pdfsam-2.2.2e-build.properties.patch Patch1: pdfsam-2.2.2e-run-console.patch License: GPL ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: apache-ant BuildRequires: java-openjdk Requires: java-openjdk BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Split and merge PDF documents. %prep %setup -q -c %{name}-%{version} for f in *.zip; do unzip $f; done rm -f *.zip %patch0 -p1 %patch1 -p1 %build cd pdfsam-maine/ant/ ant %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d -m0755 %{buildroot}/opt/pdfsam %{buildroot}%{_bindir} cp -a build/pdfsam-maine/release/dist/pdfsam-enhanced/* %{buildroot}/opt/pdfsam/ rm -f %{buildroot}/opt/pdfsam/bin/*.bat %{buildroot}/opt/pdfsam/pdfsam-starter.exe chmod +x %{buildroot}/opt/pdfsam/bin/* cat > %{buildroot}%{_bindir}/pdfsam << _EOF #!/bin/sh sh /opt/pdfsam/bin/run.sh \$@ _EOF chmod +x %{buildroot}%{_bindir}/pdfsam cat > %{buildroot}%{_bindir}/pdfsam-console << _EOF #!/bin/sh sh /opt/pdfsam/bin/run-console.sh \$@ _EOF chmod +x %{buildroot}%{_bindir}/pdfsam-console %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/pdfsam %{_bindir}/pdfsam-console %dir /opt/pdfsam /opt/pdfsam/* %changelog * Thu May 22 2014 Silvan Calarco 2.2.2e-1mamba - update to 2.2.2e * Thu May 22 2014 Silvan Calarco 2.2.2-1mamba - package created by silvan using the webbuild interface