1 Summary: Fast, secure, efficient backup program
6 Group: Applications/System
7 Source0: https://github.com/restic/restic/releases/download/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: d62fb532ca7b4aaabcc9eed202a48ce4
9 URL: https://restic.net/
10 BuildRequires: golang >= 1.7
11 BuildRequires: pkgconfig
12 BuildRequires: rpmbuild(macros) >= 1.228
13 ExclusiveArch: %{ix86} %{x8664}
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _enable_debug_packages 0
17 %define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
18 %define gopath %{_libdir}/golang
19 %define _libexecdir %{_prefix}/lib
22 restic is a backup program which allows saving multiple revisions of
23 files and directories in an encrypted repository stored on different
31 go run -mod=vendor build.go
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
38 install -p restic $RPM_BUILD_ROOT%{_bindir}
39 cp -p doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)
47 %doc README CONTRIBUTING.md CHANGELOG.md doc/*.rst
48 %attr(755,root,root) %{_bindir}/restic