2019-06-23 22:39:52 +00:00
|
|
|
# Generated by go2rpm
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
# https://github.com/golang/mobile
|
|
|
|
%global goipath golang.org/x/mobile
|
|
|
|
%global forgeurl https://github.com/golang/mobile
|
2020-02-07 01:07:15 +00:00
|
|
|
%global commit 0df4eb2385467a487d418c6358313e9e838256ae
|
2019-06-23 22:39:52 +00:00
|
|
|
|
|
|
|
%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
|
2020-02-07 01:07:15 +00:00
|
|
|
Release: 0.4%{?dist}
|
2019-06-23 22:39:52 +00:00
|
|
|
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)
|
2020-02-07 01:07:15 +00:00
|
|
|
BuildRequires: golang(golang.org/x/mod/modfile)
|
|
|
|
BuildRequires: golang(golang.org/x/tools/go/packages)
|
|
|
|
|
|
|
|
%if %{with check}
|
2019-06-23 22:39:52 +00:00
|
|
|
# Tests
|
2020-02-07 01:07:15 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/packages/packagestest)
|
2019-06-23 22:39:52 +00:00
|
|
|
BuildRequires: pkgconfig(glesv2)
|
2020-02-07 01:07:15 +00:00
|
|
|
%endif
|
2019-06-23 22:39:52 +00:00
|
|
|
|
|
|
|
%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
|
2020-02-07 01:07:15 +00:00
|
|
|
%gocheck -d cmd/gobind -d cmd/gomobile
|
2019-06-23 22:39:52 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license %{golicenses}
|
|
|
|
%doc %{godocs}
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%gopkgfiles
|
|
|
|
|
|
|
|
%changelog
|
2020-02-07 01:07:15 +00:00
|
|
|
* Fri Feb 07 01:28:53 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.4.20200207git0df4eb2
|
|
|
|
- Update to 0df4eb2385467a487d418c6358313e9e838256ae
|
|
|
|
|
2020-01-29 03:10:03 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 07:24:58 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-23 22:39:52 +00:00
|
|
|
* Thu Apr 25 01:09:12 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190623git3e0bab5
|
|
|
|
- Initial package
|