[packages/restic] Inital commit
mis
mis at pld-linux.org
Thu Jan 18 16:36:58 CET 2018
commit 1a6020496294191ac48bdc199d1caf9ef5c0d6ca
Author: mis <mistoo at gmail.com>
Date: Thu Jan 18 16:36:35 2018 +0100
Inital commit
restic.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
---
diff --git a/restic.spec b/restic.spec
new file mode 100644
index 0000000..deae8da
--- /dev/null
+++ b/restic.spec
@@ -0,0 +1,60 @@
+Summary: Fast, secure, efficient backup program
+Name: restic
+Version: 0.8.1
+Release: 0.1
+License: BSD
+Group: Applications/System
+Source0: https://github.com/restic/restic/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 01eb26583c9a91be33697b2a4c917422
+URL: https://restic.net/
+%ifarch %{x8664} arm aarch64 ppc64
+BuildRequires: criu-devel >= 1.7
+%endif
+BuildRequires: golang >= 1.7
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.228
+Requires(post,preun): /sbin/chkconfig
+Requires(postun): /usr/sbin/groupdel
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires: rc-scripts >= 0.4.0.10
+#Requires: uname(release) >= 4.1
+Provides: group(restic)
+ExclusiveArch: %{ix86} %{x8664} %{arm}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _enable_debug_packages 0
+%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
+%define gopath %{_libdir}/golang
+%define import_path github.com/lxc/lxd
+%define _libexecdir %{_prefix}/lib
+
+%description
+restic is a backup program which allows saving multiple revisions of
+files and directories in an encrypted repository stored on different
+backends.
+
+%prep
+%setup -q
+
+%build
+
+go run build.go
+mv README.rst README
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
+install -p restic $RPM_BUILD_ROOT%{_bindir}
+cp -p doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
+rm -rf doc/man
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README CONTRIBUTING.md CHANGELOG.md doc/*.rst
+%attr(755,root,root) %{_bindir}/restic
+%{_mandir}/man1/*.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/restic.git/commitdiff/1a6020496294191ac48bdc199d1caf9ef5c0d6ca
More information about the pld-cvs-commit
mailing list