# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/fvs-lab/fvs2 %global goipath github.com/fvs-lab/fvs2 Version: 0.11.0 %gometa -L -f Name: fvs2 Release: 0%{?dist} Summary: FVS, Fused Versioned Storage: git-style snapshots for big data, content-addressed, deduplicated, mountable # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools #Test dependencies BuildRequires: git-core %description FVS, Fused Versioned Storage: git-style snapshots for big data, content- addressed, deduplicated, mountable. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on for cmd in cmd/* ; 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} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc docs README.md %{_bindir}/fvs2 %{_bindir}/git2fvs %changelog %autochangelog