diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a7fdada --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fileutils-7d4729fb36185a7c1719923406c9d40e54fb93c7.tar.gz diff --git a/golang-github-mrunalp-fileutils.spec b/golang-github-mrunalp-fileutils.spec new file mode 100644 index 0000000..2cb6965 --- /dev/null +++ b/golang-github-mrunalp-fileutils.spec @@ -0,0 +1,59 @@ +# Generated by go2rpm +# Needs access to /dev/mem, not available in chroot +%bcond_with check + +# https://github.com/mrunalp/fileutils +%global goipath github.com/mrunalp/fileutils +%global commit 7d4729fb36185a7c1719923406c9d40e54fb93c7 + +%gometa + +%global common_description %{expand: +Collection of utilities for file manipulation in Go.} + +%global golicenses LICENSE +%global godocs README.md + +Name: %{goname} +Version: 0 +Release: 0.1%{?dist} +Summary: Collection of utilities for file manipulation in Go + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%build +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 +%gocheck +%endif + +%files +%license LICENSE +%doc README.md +%{_bindir}/* + +%gopkgfiles + +%changelog +* Sat May 04 17:35:57 CEST 2019 Robert-André Mauchin - 0-0.1.20190627git7d4729f +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..06898dd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fileutils-7d4729fb36185a7c1719923406c9d40e54fb93c7.tar.gz) = d9ba16a636fe81b1496d273aabc444ba60297f67881664e113e1bb20eaf624af9ca1b3bf02d98df2fda7c332ddeaf5d1faf4de32d6154da476222a492551d2b9