-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJSignPdf.spec
76 lines (66 loc) · 2.14 KB
/
JSignPdf.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# spec file for package JSignPdf
#
# Copyright (c) 2021 Norbert Eicker <[email protected]>
#
Name: JSignPdf
Version: 2.0.0
Release: 4
Summary: Sign PDF documents
License: LGPL-2.1 and MPL-1.1
Group: Productivity/Publishing/PDF
Url: http://%{name}.sourceforge.net/
Source0: https://sourceforge.net/projects/jsignpdf/files/stable/%{name}%20%{version}/jsignpdf-%{version}.zip
Source1: %{name}.desktop
Source2: %{name}.png
Patch: jsignpdf_sh.patch
Patch1: JSignPdf-security.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
JSignPdf is an open-source application that adds digital signatures to
PDF documents. It’s written in Java programming language and it can be
launched on the most of current OS. Users can control the application
using simple GUI or command line arguments. Main features:
• supports visible signatures
• can set certification level
• supports PDF encryption with setting rights
• timestamp support
• certificate revocation checking (CRL and/or OCSP)
%prep
%setup -q -n jsignpdf-%{version}
%patch -p1
%patch1 -p1
%install
%__rm -rf %{buildroot}
%__install -D -m 644 *.jar -t %{buildroot}%{_libexecdir}/%{name}
%__install -D jsignpdf.sh -t %{buildroot}%{_libexecdir}/%{name}
%__install -D -m 644 conf/* -t %{buildroot}%{_libexecdir}/%{name}/conf
%__mkdir_p %{buildroot}%{_bindir}
%__ln_s %{_libexecdir}/%{name}/jsignpdf.sh %{buildroot}%{_bindir}/jsignpdf
%suse_update_desktop_file -i -r %{name} Office
%clean
rm -rf %{buildroot}
%post
%desktop_database_post
update-desktop-database
%postun
%desktop_database_postun
update-desktop-database
%files
%defattr(-,root,root)
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/*.jar
%{_libexecdir}/%{name}/jsignpdf.sh
%dir %{_libexecdir}/%{name}/conf
%config(noreplace) %{_libexecdir}/%{name}/conf/*
%doc docs/*
%doc licenses
%{_datadir}
%{_bindir}
%changelog
* Thu Dec 9 2021 Norbert Eicker <[email protected]>
- Add starter script to PATH
- Improve spec-file (copyrights, etc.)
* Wed Dec 8 2021 Norbert Eicker <[email protected]>
- Initial version