pdftk/pdftk.spec

67 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

Name: pdftk
Version: 3.3.3
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://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
## AUTOBUILDREQ-END
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
%prep
%setup -q
mkdir lib
ln -s /usr/share/java/{bcprov,commons-lang,hamcrest-core,junit,junit-system-rules/system-rules}.jar lib
%build
ant clean jar
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
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}"
%files
%defattr(-,root,root)
%{_bindir}/pdftk
%{_javadir}/%{name}/pdftk.jar
%{_mandir}/man1/pdftk.1*
%doc license_gpl_pdftk/readme.txt
%changelog
* Fri Sep 23 2022 Automatic Build System <autodist@mambasoft.it> 3.3.3-1mamba
- automatic version update by autodist
* 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
* Wed Feb 17 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.02-1mamba
- package created using the webbuild interface