Blame golang-github-google-cmp.spec

ea89a2e
# Run tests in check section
ea89a2e
%bcond_without check
ea89a2e
ea89a2e
%global goipath         github.com/google/go-cmp
ea89a2e
Version:                0.2.0
ea89a2e
ea89a2e
%global common_description %{expand:
ea89a2e
This package is intended to be a more powerful and safer alternative to 
ea89a2e
reflect.DeepEqual for comparing whether two values are semantically equal.
ea89a2e
ea89a2e
The primary features of cmp are:
ea89a2e
ea89a2e
 - When the default behavior of equality does not suit the needs of the 
ea89a2e
 test, custom equality functions can override the equality operation. 
ea89a2e
 For example, an equality function may report floats as equal so long as 
ea89a2e
 they are within some tolerance of each other.
ea89a2e
ea89a2e
 - Types that have an Equal method may use that method to determine equality. 
ea89a2e
 This allows package authors to determine the equality operation for the types 
ea89a2e
 that they define.
ea89a2e
ea89a2e
 - If no custom equality functions are used and no Equal method is defined, 
ea89a2e
 equality is determined by recursively comparing the primitive kinds on both 
ea89a2e
 values, much like reflect.DeepEqual. Unlike reflect.DeepEqual, unexported 
ea89a2e
 fields are not compared by default; they result in panics unless suppressed 
ea89a2e
 by using an Ignore option (see cmpopts.IgnoreUnexported) or explicitly 
ea89a2e
 compared using the AllowUnexported option.}
ea89a2e
ea89a2e
%gometa
ea89a2e
ea89a2e
Name:           %{goname}
ea89a2e
Release:        1%{?dist}
ea89a2e
Summary:        Package for comparing Go values in tests 
ea89a2e
License:        BSD
ea89a2e
URL:            %{gourl}
ea89a2e
Source0:        %{gosource}
ea89a2e
ea89a2e
%description
ea89a2e
%{common_description}
ea89a2e
ea89a2e
ea89a2e
%package devel
ea89a2e
Summary:       %{summary}
ea89a2e
BuildArch:     noarch
ea89a2e
ea89a2e
%description devel
ea89a2e
%{common_description}
ea89a2e
ea89a2e
This package contains library source intended for
ea89a2e
building other packages which use import path with
ea89a2e
%{goipath} prefix.
ea89a2e
ea89a2e
ea89a2e
%prep
ea89a2e
%forgeautosetup
ea89a2e
ea89a2e
ea89a2e
%install
ea89a2e
%goinstall
ea89a2e
ea89a2e
ea89a2e
%if %{with check}
ea89a2e
%check
ea89a2e
%gochecks
ea89a2e
%endif
ea89a2e
ea89a2e
ea89a2e
%files devel -f devel.file-list
ea89a2e
%license LICENSE
ea89a2e
%doc README.md CONTRIBUTING.md
ea89a2e
ea89a2e
ea89a2e
%changelog
ea89a2e
* Wed Mar 21 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0.2.0-1
ea89a2e
- First package for Fedora
ea89a2e