]> git.pld-linux.org Git - packages/restic.git/blob - restic.spec
up to 0.9.6; rel 1
[packages/restic.git] / restic.spec
1 Summary:        Fast, secure, efficient backup program
2 Name:           restic
3 Version:        0.9.6
4 Release:        1
5 License:        BSD
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)
15
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
20
21 %description
22 restic is a backup program which allows saving multiple revisions of
23 files and directories in an encrypted repository stored on different
24 backends.
25
26 %prep
27 %setup -q
28
29 %build
30
31 go run -mod=vendor build.go
32 mv README.rst README
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
37
38 install -p restic $RPM_BUILD_ROOT%{_bindir}
39 cp -p doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
40 rm -rf doc/man
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc README CONTRIBUTING.md CHANGELOG.md doc/*.rst
48 %attr(755,root,root) %{_bindir}/restic
49 %{_mandir}/man1/*.1*
This page took 0.07725 seconds and 3 git commands to generate.