Blame golang-github-google-cmp.spec

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