generated from demus/golang-rpm-template
Remove v5 code and simplify provides
This commit is contained in:
@@ -2,21 +2,20 @@
|
||||
%bcond check 1
|
||||
%bcond bootstrap 0
|
||||
|
||||
%if %{with bootstrap}
|
||||
%global debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%if %{with bootstrap}
|
||||
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
||||
%endif
|
||||
|
||||
# https://github.com/evanphx/json-patch
|
||||
%global goipath github.com/evanphx/json-patch
|
||||
%global goipath gopkg.in/evanphx/json-patch.v4
|
||||
%global forgeurl https://github.com/evanphx/json-patch
|
||||
Version: 4.12.0
|
||||
|
||||
%gometa -L -f
|
||||
%gometa -f
|
||||
|
||||
%global goaltipaths github.com/evanphx/json-patch/v4
|
||||
%dnl %global goaltipaths gopkg.in/evanphx/json-patch.v4
|
||||
|
||||
%global common_description %{expand:
|
||||
A Go library to apply RFC6902 patches and create and apply RFC7386 patches.}
|
||||
@@ -24,7 +23,7 @@ A Go library to apply RFC6902 patches and create and apply RFC7386 patches.}
|
||||
%global golicenses LICENSE
|
||||
%global godocs README.md
|
||||
|
||||
Name: golang-github-evanphx-json-patch
|
||||
Name: golang-gopkg-evanphx-json-patch
|
||||
Release: %autorelease
|
||||
Summary: A Go library to apply RFC6902 patches and create and apply RFC7386 patches
|
||||
|
||||
@@ -38,6 +37,7 @@ Source: %{gosource}
|
||||
|
||||
%prep
|
||||
%goprep -A
|
||||
%{__rm} -fR v5
|
||||
%autopatch -p1 -q
|
||||
|
||||
%if %{without bootstrap}
|
||||
@@ -62,7 +62,7 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||
%if %{without bootstrap}
|
||||
%if %{with check}
|
||||
%check
|
||||
%gocheck
|
||||
%gocheck -d v5
|
||||
%endif
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user