## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/ariga/atlas %global goipath ariga.io/atlas %global forgeurl https://github.com/ariga/atlas Version: 0.3.3 %gometa %global common_description %{expand: A database toolkit.} %global golicenses LICENSE %global godocs doc README.md Name: %{goname} Release: %autorelease Summary: A database toolkit # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/DATA-DOG/go-sqlmock) BuildRequires: golang(github.com/go-openapi/inflect) BuildRequires: golang(github.com/go-sql-driver/mysql) BuildRequires: golang(github.com/hashicorp/hcl/v2) BuildRequires: golang(github.com/hashicorp/hcl/v2/gohcl) BuildRequires: golang(github.com/hashicorp/hcl/v2/hclparse) BuildRequires: golang(github.com/hashicorp/hcl/v2/hclsyntax) BuildRequires: golang(github.com/hashicorp/hcl/v2/hclwrite) BuildRequires: golang(github.com/lib/pq) BuildRequires: golang(github.com/manifoldco/promptui) BuildRequires: golang(github.com/mattn/go-sqlite3) BuildRequires: golang(github.com/mitchellh/go-homedir) BuildRequires: golang(github.com/spf13/cobra) BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(github.com/zclconf/go-cty/cty) BuildRequires: golang(github.com/zclconf/go-cty/cty/function) BuildRequires: golang(golang.org/x/mod/semver) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/cmd/atlas %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc doc README.md %{_bindir}/* %gopkgfiles %changelog * Sun Feb 06 2022 Robert-André Mauchin 0.3.3-1 - Initial import