## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/restic/restic %global goipath github.com/restic/restic Version: 0.16.2 %gometa -f %global goname restic %global common_description %{expand: Fast, secure, efficient backup program. restic supports the following backends for storing backups natively: * Local directory * sftp server (via SSH) * HTTP REST server (protocol, rest-server) * Amazon S3 (either from Amazon or using the Minio server) * OpenStack Swift * BackBlaze B2 * Microsoft Azure Blob Storage * Google Cloud Storage * And many other services via the rclone Backend } %global golicenses LICENSE %global godocs doc CONTRIBUTING.md CHANGELOG.md README.md Name: %{goname} Release: %autorelease Summary: Fast, secure, efficient backup program License: BSD-2-Clause URL: %{gourl} Source: %{gosource} %description %{common_description} %prep %goprep %autopatch -p1 # Use original bazil.org/fuse library as we don't need MacOS support provided by # this anacrolix fork sed -i "s|github.com/anacrolix/fuse|bazil.org/fuse|" $(find . -name "*.go" -type f) # Use original blaze library sed -i "s|github.com/Backblaze/blazer|github.com/kurin/blazer|" $(find . -name "*.go" -type f) %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/restic %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ # Install manpages install -Dpm 0644 doc/man/%{name}*.1 -t %{buildroot}%{_mandir}/man1/ # Install shell completions install -Dpm 0644 doc/bash-completion.sh %{buildroot}%{bash_completions_dir}/%{name} install -Dpm 0644 doc/fish-completion.fish %{buildroot}%{fish_completions_dir}/%{name}.fish install -Dpm 0644 doc/zsh-completion.zsh %{buildroot}%{zsh_completions_dir}/_%{name} %if %{with check} %check #Skip tests using fuse due to root requirement export RESTIC_TEST_FUSE=0 # Fail to build in mock due to xattr and SELinux issues. for test in "TestNodeRestoreAt" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %files %license LICENSE %doc doc CONTRIBUTING.md CHANGELOG.md README.md %{_bindir}/* %{_mandir}/man1/%{name}*.1* %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %changelog * Sat Nov 04 2023 Mikel Olasagasti Uranga - 0.16.2-1 - Update to 0.16.2 - Closes rhbz#2227921 * Thu Jul 27 2023 Mikel Olasagasti Uranga - 0.15.2-1 - Update to 0.15.2 - Closes rhbz#2160847 * Fri Jul 21 2023 Fedora Release Engineering - 0.14.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.14.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 0.12.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 0.12.1-4 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin - 0.12.1-3 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Fri Jan 21 2022 Fedora Release Engineering - 0.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jan 20 2022 Steve Miller (copart) - 0.12.1-1 - Upgrade to upstream 0.12.1 - Added upstream patch to tests (f1cfb97) for Go >= 1.16.10 * Fri Jul 23 2021 Fedora Release Engineering - 0.12.0-1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Feb 16 2021 Kevin Anderson - 0.12.0-0 - Upgrade to upstream 0.12.0 * Wed Jan 27 2021 Fedora Release Engineering - 0.10.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Oct 21 2020 Steve Miller (copart) - 0.10.0-3 - Removed patch 9abef3b, instead disabled tar tests * Wed Oct 21 2020 Steve Miller (copart) - 0.10.0-2 - Added upstream patch to tests (9abef3b) to resolve failed build * Wed Oct 21 2020 Steve Miller (copart) - 0.10.0-1 - Bumped to upstream 0.10.0 Resolves: #1880788 * Sun Aug 30 2020 Steve Miller (copart) - 0.9.6-6 - Added upstream patch for AllowRoot build issue, commit 18fee4806f6a71e951eaee2a3910140c5efb46e3 * Sat Aug 01 2020 Fedora Release Engineering - 0.9.6-5 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.9.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Mar 17 2020 Steve Miller (copart) - 0.9.6-3 - Added upstream patch for AccessTime test fix, commit 7cacba0394b1336dfee33e81cb1dc0e87f8ba10f * Tue Mar 17 2020 Steve Miller (copart) - 0.9.6-2 - Added upstream patch for tests in selinux, commit 2828a9c2b09a7e42ca8ca1c6ac506f87280c158b - Replaced deprecated gochecks and gobuildroot macros * Mon Mar 16 2020 Steve Miller (copart) - 0.9.6-1 - Bumped to upstream 0.9.6 Resolves: #1775745 and #1799976 * Thu Jan 30 2020 Fedora Release Engineering - 0.9.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.9.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 23 2019 Steve Miller (copart) - 0.9.5-1 - Bumped to upstream 0.9.5 Resolves: #1702384 * Fri Feb 15 2019 Steve Miller (copart) - 0.9.4-1 - Bumped to upstream 0.9.4 - Added new upstream dependency golang(github.com/hashicorp/golang-lru/simplelru) * Sat Feb 02 2019 Fedora Release Engineering - 0.9.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Nov 3 2018 Steve Miller (copart) - 0.9.3-1 - Bumped to upstream 0.9.3 Resolves: #1645405 and #1642891 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ * Wed Aug 8 2018 Steve Miller (copart) - 0.9.2-1 - Bumped to upstream 0.9.2 * Tue Jul 31 2018 Florian Weimer - 0.9.1-3 - Rebuild with fixed binutils * Wed Jun 13 2018 Steve Miller (copart) - 0.9.1-2 - First package for Fedora - Rework using More Go packaging * Sun Jun 10 2018 Steve Miller (copart) - 0.9.1-1 - Bumped restic version * Sun May 27 2018 Steve Miller (copart) - 0.9.0-1 - Bumped restic version * Sun Mar 04 2018 Steve Miller (copart) - 0.8.3-1 - Bumped restic version * Tue Feb 20 2018 Steve Miller (copart) - 0.8.2-1 - Bumped restic version * Fri Jan 12 2018 Steve Miller (copart) - 0.8.1-2 - Added man pages - Added bash completion - Added zsh completion * Sun Jan 07 2018 Steve Miller (copart) - 0.8.1-1 - New Version * Sat Sep 16 2017 Philipp Baum - 0.7.2-1 - New Version * Sun Aug 27 2017 Philipp Baum - 0.7.1-1 - New Version * Wed Mar 15 2017 Philipp Baum - 0.5.0-1 - Initial package build