[packages/restic] - up to 0.18.1

baggins baggins at pld-linux.org
Thu May 14 15:09:32 CEST 2026


commit b78bb1f4117eb75c8e67e10de69181457b39f065
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu May 14 17:09:20 2026 +0200

    - up to 0.18.1

 restic.spec | 22 ++++++++--------------
 1 file changed, 8 insertions(+), 14 deletions(-)
---
diff --git a/restic.spec b/restic.spec
index 67c1b00..8d6ef02 100644
--- a/restic.spec
+++ b/restic.spec
@@ -1,35 +1,30 @@
 Summary:	Fast, secure, efficient backup program
 Name:		restic
-Version:	0.9.6
+Version:	0.18.1
 Release:	1
 License:	BSD
 Group:		Applications/System
 Source0:	https://github.com/restic/restic/releases/download/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	d62fb532ca7b4aaabcc9eed202a48ce4
+# Source0-md5:	cf7ba497eb68cca53e75b263efea73aa
+Source1:	%{name}-vendor-%{version}.tar.xz
+# Source1-md5:	49df8d14de99db7a2024da47e5f15714
 URL:		https://restic.net/
 BuildRequires:	golang >= 1.7
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.228
-ExclusiveArch:	%{ix86} %{x8664}
+ExclusiveArch:	%go_arches
 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		_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
+%setup -q -a1
 
 %build
-
-go run -mod=vendor build.go
-mv README.rst README
+%__go run -v -mod=vendor build.go
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -37,13 +32,12 @@ 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
+%doc README.md 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/b78bb1f4117eb75c8e67e10de69181457b39f065



More information about the pld-cvs-commit mailing list