diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fbce8cd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/mobile-3e0bab5405d63a8f5dd9d9764a24c8e5ac4997fa.tar.gz diff --git a/golang-x-mobile.spec b/golang-x-mobile.spec new file mode 100644 index 0000000..3d4396c --- /dev/null +++ b/golang-x-mobile.spec @@ -0,0 +1,66 @@ +# Generated by go2rpm +%bcond_without check + +# https://github.com/golang/mobile +%global goipath golang.org/x/mobile +%global forgeurl https://github.com/golang/mobile +%global commit 3e0bab5405d63a8f5dd9d9764a24c8e5ac4997fa + +%gometa + +%global common_description %{expand: +The Go mobile repository holds packages and build tools for using Go on mobile +platforms.} + +%global golicenses LICENSE PATENTS +%global godocs doc example AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md + +Name: %{goname} +Version: 0 +Release: 0.1%{?dist} +Summary: Go support for Mobile devices + +# Upstream license specification: BSD-3-Clause +License: BSD +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(golang.org/x/image/draw) +BuildRequires: golang(golang.org/x/image/math/f64) +# Tests +BuildRequires: pkgconfig(egl) +BuildRequires: pkgconfig(glesv2) + +%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 %{golicenses} +%doc %{godocs} +%{_bindir}/* + +%gopkgfiles + +%changelog +* Thu Apr 25 01:09:12 CEST 2019 Robert-André Mauchin - 0-0.1.20190623git3e0bab5 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..8dc2d2f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (mobile-3e0bab5405d63a8f5dd9d9764a24c8e5ac4997fa.tar.gz) = 97ae166b4a09638655e2ad2dd7afdcf861594a14e904c58437814d676dc056ffcdee77f1c0736f905e60c0c1b7dd2f45d4ec13b01a0f64802f9db0ba8528e69e