automatic version update by autodist [release 3.3.2-1mamba;Thu Sep 01 2022]

This commit is contained in:
Automatic Build System 2024-01-06 08:28:40 +01:00
parent dff882ae0a
commit b08a9806a5
3 changed files with 29 additions and 15 deletions

View File

@ -1,4 +1,3 @@
# pdftk
Command-line tool for working with PDFs.

3
pdftk.sh Normal file
View File

@ -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 "$@"

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <autodist@mambasoft.it> 3.3.2-1mamba
- automatic version update by autodist
* Sat May 14 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.02-2mamba
- rebuilt by autoport with build requirements: libgcj4-devel>=6.1.0-2mamba