-
Notifications
You must be signed in to change notification settings - Fork 0
/
spool2s3.spec
51 lines (38 loc) · 1.11 KB
/
spool2s3.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
%bcond_without srpm
%undefine _missing_build_ids_terminate_build
# fix
# error: Empty %files file /builddir/build/BUILD/spool2s3/debugsourcefiles.list
# on rawhide
%global debug_package %{nil}
Name: spool2s3
Version: 0.6.1
Release: 1%{?dist}
Summary: Continuously spool directory to S3.
URL: https://github.com/gsauthof/spool2s3
License: GPLv3+
Source: https://example.org/spool2s3.tar
BuildRequires: golang-bin
BuildRequires: golang-github-coreos-systemd-devel
BuildRequires: golang-github-fsnotify-devel
BuildRequires: golang-github-jessevdk-flags-devel
BuildRequires: golang-github-jsternberg-zap-logfmt-devel
BuildRequires: golang-github-minio-devel
BuildRequires: golang-uber-zap-devel
%description
Watch a directory, encrypt its files and spool them to an S3 bucket.
%prep
%if %{with srpm}
%autosetup -n spool2s3
%endif
%build
GO111MODULE=off GOPATH=$HOME/go:/usr/share/gocode go build
%install
mkdir -p %{buildroot}/usr/bin
cp spool2s3 %{buildroot}/usr/bin
%check
%files
/usr/bin/spool2s3
%doc README.md
%changelog
* Thu Sep 17 2020 Georg Sauthoff <mail@gms.tf> - 0.5.0-1
- initial packaging