Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > 398186baf9c595f40418e594f480d99e > files > 2

golang-x-exp-0-5.mga9.src.rpm

# Generated by go2rpm
%bcond_with check

# https://github.com/golang/exp
%global goipath         golang.org/x/exp
%global forgeurl        https://github.com/golang/exp
%global commit          053ad81199eb10baaf3412e8adb0f8c82679b4d3

%gometa

%global common_description %{expand:
This subrepository holds experimental and deprecated packages.

The idea for this subrepository originated as the pkg/exp directory of the main
repository, but its presence there made it unavailable to users of the binary
downloads of the Go installation. The subrepository has therefore been created
to make it possible to go get these packages.}

%global golicenses      LICENSE PATENTS
%global godocs          AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md

Name:           %{goname}
Version:        0
Release:        %mkrel 5
Summary:        Experimental and deprecated Go packages
Group:          Development/Other

# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang-x-tools-devel
BuildRequires:  pkgconfig(libglvnd)

%description
%{common_description}

%gopkg

%prep
%goprep

%generate_buildrequires
#%%go_generate_buildrequires

%build
for cmd in cmd/apidiff cmd/gorelease cmd/modgraphviz cmd/txtar ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
for cmd in sumdb/gosumcheck mmap ebnflint shiny/materialdesign/colornames shiny/materialdesign/icons typeparams; 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
for test in "TestChanges" \
; do
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
done
%gocheck -d golang.org/x/exp/cmd/gorelease -d golang.org/x/exp/constraints -d golang.org/x/exp/sumdb/internal/tlog
%endif

%files
%license LICENSE PATENTS
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
%{_bindir}/*

%gopkgfiles


%changelog
* Sat Apr 29 2023 daviddavid <daviddavid> 0-5.mga9
+ Revision: 1955408
- disable testsuite
+ pterjan <pterjan>
- Switch to dynamic BuildRequires

* Sun Sep 25 2022 guillomovitch <guillomovitch> 0-3.mga9
+ Revision: 1892166
- new git snapshot

* Tue Apr 05 2022 umeabot <umeabot> 0-2.mga9
+ Revision: 1845167
- Mageia 9 Mass Rebuild

* Mon Nov 08 2021 guillomovitch <guillomovitch> 0-1.mga9
+ Revision: 1754688
- new git snapshot

* Fri Sep 11 2020 pterjan <pterjan> 0-0.1.mga8
+ Revision: 1624742
- imported package golang-x-exp