6316225
# Generated by go2rpm 1.9.0
0235f71
%bcond_with bootstrap
f6429f9
%if %{with bootstrap}
f6429f9
# Do not run %%check when bootstrapping.
f6429f9
%bcond_with check
f6429f9
%else
f6429f9
%bcond_without check
f6429f9
%endif
f6429f9
%global debug_package %{nil}
64cd6be
64cd6be
# https://github.com/spf13/viper
7ee9850
%global goipath         github.com/spf13/viper
e057092
Version:                1.17.0
7ee9850
7ee9850
%gometa
7ee9850
64cd6be
%global goipaths0       github.com/spf13/viper
64cd6be
%global goipathsex0     github.com/spf13/viper/remote
64cd6be
64cd6be
%if %{without bootstrap}
64cd6be
%global goipaths1       github.com/spf13/viper/remote
64cd6be
%endif
64cd6be
64cd6be
%global common_description %{expand:
64cd6be
Viper is a complete configuration solution for Go applications including
64cd6be
12-Factor apps. It is designed to work within an application, and can handle all
64cd6be
types of configuration needs and formats. It supports:
64cd6be
64cd6be
 - setting defaults
64cd6be
 - reading from JSON, TOML, YAML, HCL, and Java properties config files
64cd6be
 - live watching and re-reading of config files (optional)
64cd6be
 - reading from environment variables
64cd6be
 - reading from remote config systems (etcd or Consul), and watching changes
64cd6be
 - reading from command line flags
64cd6be
 - reading from buffer
64cd6be
 - setting explicit values
64cd6be
64cd6be
Viper can be thought of as a registry for all of your applications configuration
64cd6be
needs.}
64cd6be
64cd6be
%global golicenses      LICENSE
64cd6be
%global godocs          README.md
64cd6be
7ee9850
Name:           %{goname}
1df6e0f
Release:        %autorelease
1a8542d
Summary:        Go configuration with fangs
64cd6be
1a8542d
License:        MIT
7ee9850
URL:            %{gourl}
2bad373
Source:         %{gosource}
1a8542d
1d5ebdd
%if %{without bootstrap}
f6429f9
BuildRequires:  golang(github.com/sagikazarmark/crypt/config)
1d5ebdd
%endif
64cd6be
BuildRequires:  golang(github.com/fsnotify/fsnotify)
64cd6be
BuildRequires:  golang(github.com/hashicorp/hcl)
64cd6be
BuildRequires:  golang(github.com/hashicorp/hcl/hcl/printer)
64cd6be
BuildRequires:  golang(github.com/magiconair/properties)
64cd6be
BuildRequires:  golang(github.com/mitchellh/mapstructure)
2bad373
BuildRequires:  golang(github.com/pelletier/go-toml/v2)
2bad373
BuildRequires:  golang(github.com/sagikazarmark/crypt/config)
e057092
BuildRequires:  golang(github.com/sagikazarmark/slog-shim)
64cd6be
BuildRequires:  golang(github.com/spf13/afero)
64cd6be
BuildRequires:  golang(github.com/spf13/cast)
64cd6be
BuildRequires:  golang(github.com/spf13/pflag)
6df324e
BuildRequires:  golang(github.com/subosito/gotenv)
6df324e
BuildRequires:  golang(gopkg.in/ini.v1)
2bad373
BuildRequires:  golang(gopkg.in/yaml.v3)
64cd6be
64cd6be
%if %{with check}
64cd6be
# Tests
64cd6be
BuildRequires:  golang(github.com/stretchr/testify/assert)
64cd6be
BuildRequires:  golang(github.com/stretchr/testify/require)
64cd6be
%endif
64cd6be
2bad373
%description %{common_description}
64cd6be
64cd6be
%gopkg
1a8542d
1a8542d
%prep
64cd6be
%goprep
6316225
%autopatch -p1
1a8542d
1a8542d
%install
64cd6be
%gopkginstall
1a8542d
64cd6be
%if %{with check}
1a8542d
%check
64cd6be
%gocheck
64cd6be
%endif
1a8542d
64cd6be
%gopkgfiles
1a8542d
1a8542d
%changelog
1df6e0f
%autochangelog