# Generated by go2rpm 1.16.0 %bcond check 1 # https://github.com/kopia/kopia %global goipath github.com/kopia/kopia Version: 0.20.1 %gometa -L -f %global common_description %{expand: Cross-platform backup tool for Windows, macOS & Linux with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication. CLI and GUI included.} Name: kopia Release: %autorelease Summary: Cross-platform backup tool for Windows, macOS & Linux with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication. CLI and GUI included # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools # for go test BuildRequires: openssh %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build export LDFLAGS=" \ -X github.com/kopia/kopia/repo.BuildVersion=%{version} \ -X github.com/kopia/kopia/repo.BuildInfo=fedora-rpm:%{version}-%{release} \ -X github.com/kopia/kopia/repo.BuildGitHubRepo=kopia/kopia" %gobuild -o %{gobuilddir}/bin/kopia %{goipath} # for cmd in repo/maintenance tools/cli2md tools/gettool; do # %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd # done %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gocheck %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/kopia %changelog %autochangelog