75 lines
1.8 KiB
RPMSpec
75 lines
1.8 KiB
RPMSpec
# Generated by go2rpm 1.9.0
|
|
%bcond_without check
|
|
|
|
# https://github.com/golang/exp
|
|
%global goipath golang.org/x/exp
|
|
%global forgeurl https://github.com/golang/exp
|
|
%global commit d63ba01acd4b5892385c4390b334ea2c89f27eb7
|
|
|
|
%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 CONTRIBUTING.md README.md
|
|
|
|
Name: %{goname}
|
|
Version: 0
|
|
Release: %autorelease -p -b 30
|
|
Summary: Experimental and deprecated Go packages
|
|
|
|
License: BSD-3-Clause AND Apache-2.0
|
|
URL: %{gourl}
|
|
Source: %{gosource}
|
|
|
|
BuildRequires: libglvnd-devel
|
|
|
|
%description %{common_description}
|
|
|
|
%gopkg
|
|
|
|
%prep
|
|
%goprep
|
|
%autopatch -p1
|
|
rm -rfv event jsonrpc2 shiny
|
|
|
|
%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
|
|
|
|
%install
|
|
%gopkginstall
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
|
|
|
%if %{with check}
|
|
%check
|
|
for test in "TestRelease_gitRepo_uncommittedChanges" \
|
|
"TestFailure" \
|
|
"TestCertificateTransparency" \
|
|
; do
|
|
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
|
|
done
|
|
%gocheck
|
|
%endif
|
|
|
|
%files
|
|
%license LICENSE PATENTS
|
|
%doc CONTRIBUTING.md README.md
|
|
%{_bindir}/*
|
|
|
|
%gopkgfiles
|
|
|
|
%changelog
|
|
%autochangelog
|