-
Notifications
You must be signed in to change notification settings - Fork 2
/
kestrel.spec
60 lines (49 loc) · 1.68 KB
/
kestrel.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
# Need to tell rpmbuild not to expect a debug binary
%global _enable_debug_package 0
%global debug_package %{nil}
%ifarch x86_64
%define bin_arch amd64
%endif
%ifarch aarch64
%define bin_arch arm64
%endif
%define alt_ver 1.0.2
Name: kestrel
Version: 1.0.2
Release: 1
Summary: File encryption done right
License: BSD-3-Clause
URL: https://getkestrel.com
Source0: %{name}-linux-v%{alt_ver}-%{bin_arch}.tar.gz
# libc6 deps are picked up automatically by rpmbuild analyzing the binary
%description
Kestrel is a file encryption utility that lets you encrypt files to
anyone with a public key.
%prep
%autosetup -n %{name}-linux-v%{alt_ver}-%{bin_arch}
%build
gzip -k man/kestrel.1
%install
mkdir -p %{buildroot}/%{_bindir}
install -m 755 kestrel %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 644 man/kestrel.1.gz %{buildroot}/%{_mandir}/man1
mkdir -p %{buildroot}/%{_docdir}/kestrel
install -m 644 LICENSE.txt %{buildroot}/%{_docdir}/kestrel
install -m 644 THIRD-PARTY-LICENSE.txt %{buildroot}/%{_docdir}/kestrel
mkdir -p %{buildroot}/usr/share/bash-completion/completions
install -m 644 completion/kestrel.bash-completion %{buildroot}/usr/share/bash-completion/completions/kestrel
%files
# Make sure we know about the kestrel doc folder so we can delete it
%dir %{_docdir}/kestrel
%{_bindir}/%{name}
%{_mandir}/man1/kestrel.1.gz
%{_docdir}/kestrel/LICENSE.txt
%{_docdir}/kestrel/THIRD-PARTY-LICENSE.txt
/usr/share/bash-completion/completions/kestrel
%changelog
* Fri Jan 20 2023 Kyle Schreiber <[email protected]> - 0.10.1-1
- Fixed crash when running kestrel key
- Improved cli error message output
* Mon Jul 04 2022 Kyle Schreiber <[email protected]> - 0.10.0-1
- Warn on use of empty password.