# Generated by go2rpm 1 %bcond_without check %bcond_with network # https://github.com/google/slothfs %global goipath github.com/google/slothfs %global commit 59c1163fd1737445281f2339399b2b986b0d30fe %gometa %global common_description %{expand: SlothFS is a FUSE filesystem that provides light-weight, lazily downloaded, read-only checkouts of manifest-based Git projects. It is intended for use with Android.} %global golicenses LICENSE %global godocs docs README.md Name: %{goname} Version: 0 Release: 0.14%{?dist} Summary: FUSE filesystem for light-weight, lazily-loaded, read-only Git # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} # Increase a timeout for slow armv7hl. Patch0001: increase-timeout.patch BuildRequires: git-core BuildRequires: golang(github.com/fsnotify/fsnotify) BuildRequires: golang(github.com/hanwen/go-fuse/fs) BuildRequires: golang(github.com/hanwen/go-fuse/fuse) BuildRequires: golang(github.com/hanwen/go-fuse/fuse/nodefs) BuildRequires: golang(golang.org/x/net/context) BuildRequires: golang(golang.org/x/time/rate) BuildRequires: golang(gopkg.in/src-d/go-git.v4) BuildRequires: golang(gopkg.in/src-d/go-git.v4/plumbing) BuildRequires: golang(gopkg.in/src-d/go-git.v4/plumbing/filemode) BuildRequires: golang(gopkg.in/src-d/go-git.v4/plumbing/object) %if %{with check} # Tests BuildRequires: golang(github.com/kylelemons/godebug/pretty) %endif %description %{common_description} %gopkg %prep %goprep %patch0001 -p1 %build # Dedends on obsolete API rm -rf cmd/slothfs-repofs for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check git config --global user.email "koji@fedoraproject.org" git config --global user.name "Koji Build System" # Skip these tests which use fuse. %gocheck \ -d github.com/google/slothfs/fs \ -d github.com/google/slothfs/populate \ %if %{without network} -d github.com/google/slothfs/gitiles \ %endif %nil %endif %files %license LICENSE %doc docs README.md %{_bindir}/* %gopkgfiles %changelog * Thu Jan 19 2023 Fedora Release Engineering - 0-0.14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0-0.13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 0-0.12 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin - 0-0.11 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Sat Apr 16 2022 Fabio Alessandro Locati - 0-0.10 - Rebuilt for CVE-2022-27191 * Thu Jan 20 2022 Fedora Release Engineering - 0-0.9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0-0.8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0-0.7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Jan 09 18:36:52 CET 2021 Robert-André Mauchin - 0-0.6.20210109git59c1163 - Bump to commit 59c1163fd1737445281f2339399b2b986b0d30fe * Tue Dec 29 09:29:55 CET 2020 Igor Raits - 0-0.5 - Rebuild for libgit2 1.1.x * Sat Aug 01 2020 Fedora Release Engineering - 0-0.4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0-0.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 0-0.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Oct 18 04:30:04 EDT 2019 Elliott Sales de Andrade - 0-0.1.20191018git6b42407 - Initial package