21d9e8a
# Generated by go2rpm
21d9e8a
%bcond_without check
21d9e8a
21d9e8a
# https://github.com/shurcooL/vfsgen
21d9e8a
%global goipath         github.com/shurcooL/vfsgen
0a96923
%global commit          0d455de96546f756e8830efeec8dab0f489af135
21d9e8a
21d9e8a
%gometa
21d9e8a
21d9e8a
%global common_description %{expand:
21d9e8a
Package Vfsgen takes an http.FileSystem (likely at go generate time) and
21d9e8a
generates Go code that statically implements the provided http.FileSystem.}
21d9e8a
21d9e8a
%global golicenses      LICENSE
21d9e8a
%global godocs          CONTRIBUTING.md README.md
21d9e8a
21d9e8a
Name:           %{goname}
21d9e8a
Version:        0
0a96923
Release:        0.7%{?dist}
21d9e8a
Summary:        Takes an input http.FileSystem and generates code that statically implements it
21d9e8a
21d9e8a
License:        MIT
21d9e8a
URL:            %{gourl}
21d9e8a
Source0:        %{gosource}
21d9e8a
21d9e8a
BuildRequires:  golang(github.com/shurcooL/httpfs/vfsutil)
21d9e8a
21d9e8a
%description
21d9e8a
%{common_description}
21d9e8a
21d9e8a
%gopkg
21d9e8a
21d9e8a
%prep
21d9e8a
%goprep
21d9e8a
21d9e8a
%build
21d9e8a
for cmd in cmd/* ; do
21d9e8a
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
21d9e8a
done
21d9e8a
21d9e8a
%install
21d9e8a
%gopkginstall
21d9e8a
install -m 0755 -vd                     %{buildroot}%{_bindir}
21d9e8a
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
21d9e8a
21d9e8a
%if %{with check}
21d9e8a
%check
21d9e8a
%gocheck
21d9e8a
%endif
21d9e8a
21d9e8a
%files
21d9e8a
%license LICENSE
21d9e8a
%doc CONTRIBUTING.md README.md
21d9e8a
%{_bindir}/*
21d9e8a
21d9e8a
%gopkgfiles
21d9e8a
21d9e8a
%changelog
0a96923
* Wed Jan 13 16:47:01 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.7.20210113git0d455de
0a96923
- Bump to commit 0d455de96546f756e8830efeec8dab0f489af135
0a96923
b126d9a
* Sun Aug 02 19:12:04 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.6.20200802git92b8a71
b126d9a
- Bump to commit 92b8a710ab6cab4c09182a1fcf469157bc938f8f
b126d9a
d71933c
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.5
d71933c
- Second attempt - Rebuilt for
d71933c
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d71933c
d6a07ec
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4
d6a07ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d6a07ec
7771c8a
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
7771c8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7771c8a
0beed6a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2
0beed6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0beed6a
21d9e8a
* Wed May 15 15:59:45 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190701git6a9ea43
21d9e8a
- Initial package