## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.11.1 %bcond_without check # https://github.com/pressly/goose %global goipath github.com/pressly/goose/v3 Version: 3.20.0 %gometa -L -f %global common_description %{expand: A database migration tool. Supports SQL migrations and Go functions.} %global golicenses LICENSE %global godocs examples README.md CHANGELOG.md Name: golang-github-pressly-goose3 Release: %autorelease Summary: A database migration tool. Supports SQL migrations and Go functions License: MIT URL: %{gourl} Source: %{gosource} BuildRequires: golang(github.com/mfridman/interpolate) BuildRequires: golang(github.com/sethvargo/go-retry) BuildRequires: golang(go.uber.org/multierr) BuildRequires: golang(golang.org/x/sync/errgroup) BuildRequires: golang(modernc.org/sqlite) %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %build export GO_BUILDTAGS="no_clickhouse no_mssql no_mysql no_vertica no_postgres no_ydb no_libsql" for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check export GO_BUILDTAGS="no_clickhouse no_mssql no_mysql no_vertica no_postgres no_ydb no_libsql" # Exclude failing tests rm create_test.go fix_test.go sed -i 's/if lite/if true/' goose_cli_test.go sed -i 's/"-tags=[^"]*"/"-tags='"${GO_BUILDTAGS}"'"/' goose_cli_test.go %gocheck -t internal/testing %endif %files %license LICENSE %doc examples README.md CHANGELOG.md %{_bindir}/goose %gopkgfiles %changelog ## START: Generated by rpmautospec * Sat May 11 2024 Kai A. Hiller - 3.20.0-3 - Enable CLI tests * Sat May 11 2024 Kai A. Hiller - 3.20.0-2 - Fix build * Sat May 11 2024 Kai A. Hiller - 3.20.0-1 - Update to v3.20.0 * Wed Nov 22 2023 Kai A. Hiller - 3.16.0-1 - Initial commit ## END: Generated by rpmautospec