From b08a9806a54c3c8cd8af4bdf0eea7f98f3665485 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 08:28:40 +0100 Subject: [PATCH] automatic version update by autodist [release 3.3.2-1mamba;Thu Sep 01 2022] --- README.md | 1 - pdftk.sh | 3 +++ pdftk.spec | 40 ++++++++++++++++++++++++++-------------- 3 files changed, 29 insertions(+), 15 deletions(-) create mode 100644 pdftk.sh diff --git a/README.md b/README.md index 280ebcb..4e67741 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ # pdftk Command-line tool for working with PDFs. - diff --git a/pdftk.sh b/pdftk.sh new file mode 100644 index 0000000..cbb97ce --- /dev/null +++ b/pdftk.sh @@ -0,0 +1,3 @@ +#!/bin/sh +CP='/usr/share/java/bcprov.jar:/usr/share/java/commons-lang.jar:/usr/share/java/pdftk/pdftk.jar' +exec /usr/bin/java -cp "$CP" com.gitlab.pdftk_java.pdftk "$@" diff --git a/pdftk.spec b/pdftk.spec index efd7630..31c3b58 100644 --- a/pdftk.spec +++ b/pdftk.spec @@ -1,38 +1,46 @@ Name: pdftk -Version: 2.02 -Release: 2mamba +Version: 3.3.2 +Release: 1mamba Summary: Command-line tool for working with PDFs Group: Applications/Publishing Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: https://www.pdflabs.com/tools/pdftk-server/ -Source: https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-%{version}-src.zip +URL: https://gitlab.com/pdftk-java/pdftk +Source: https://gitlab.com/pdftk-java/pdftk.git/v%{version}/pdftk-%{version}.tar.bz2 +Source1: pdftk.sh License: GPL ## AUTOBUILDREQ-BEGIN -BuildRequires: glibc-devel -BuildRequires: libgcc -BuildRequires: libgcj4-devel -BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END -BuildRequires: libgcj4-devel >= 6.1.0-2mamba -BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: apache-ant +BuildRequires: javapackages +BuildRequires: java-openjdk11 +BuildRequires: java-bouncycastle +BuildRequires: java-hamcrest +BuildRequires: jakarta-commons-lang +Requires: java-runtime-headless +Requires: java-bouncycastle +Requires: jakarta-commons-lang +Requires: java-hamcrest %description Command-line tool for working with PDFs. -%debug_package +#% debug_package %prep -%setup -q -n %{name}-%{version}-dist +%setup -q +mkdir lib +ln -s /usr/share/java/{bcprov,commons-lang,hamcrest-core,junit,junit-system-rules/system-rules}.jar lib %build -make -C pdftk -f Makefile.Redhat +ant clean jar %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -install -D -m0755 pdftk/pdftk %{buildroot}%{_bindir}/pdftk +install -D -m0755 build/jar/pdftk.jar %{buildroot}%{_javadir}/%{name}/pdftk.jar install -D -m0644 pdftk.1 %{buildroot}%{_mandir}/man1/pdftk.1 +install -D -m0755 %{SOURCE1} %{buildroot}%{_bindir}/pdftk %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -40,10 +48,14 @@ install -D -m0644 pdftk.1 %{buildroot}%{_mandir}/man1/pdftk.1 %files %defattr(-,root,root) %{_bindir}/pdftk +%{_javadir}/%{name}/pdftk.jar %{_mandir}/man1/pdftk.1* %doc license_gpl_pdftk/readme.txt %changelog +* Thu Sep 01 2022 Automatic Build System 3.3.2-1mamba +- automatic version update by autodist + * Sat May 14 2016 Silvan Calarco 2.02-2mamba - rebuilt by autoport with build requirements: libgcj4-devel>=6.1.0-2mamba