# Generated by go2rpm 1.3 %bcond_without check # https://github.com/rubenv/sql-migrate %global goipath github.com/rubenv/sql-migrate %global commit a32ed26c37ea1bdfd4e08f8aae7b494e7801fb52 %gometa %global common_description %{expand: sql-migrate is a SQL Schema migration tool for Go, based on gorp and goose.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: SQL schema migration tool for Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/denisenkom/go-mssqldb) BuildRequires: golang(github.com/go-sql-driver/mysql) BuildRequires: golang(github.com/lib/pq) BuildRequires: golang(github.com/mattn/go-sqlite3) BuildRequires: golang(github.com/mitchellh/cli) BuildRequires: golang(github.com/olekukonko/tablewriter) BuildRequires: golang(gopkg.in/gorp.v1) BuildRequires: golang(gopkg.in/yaml.v2) %if %{with check} # Tests BuildRequires: golang(github.com/gobuffalo/packr/v2) BuildRequires: golang(gopkg.in/check.v1) %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in sql-migrate; 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 # Fails with "too many levels of symbolic links" when run in mock rm migrate_test.go %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog * Sun May 16 2021 Davide Cavalca - 0-0.1.20210516gita32ed26 - Initial package