# 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.8%{?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 * Thu Jan 19 2023 Fedora Release Engineering - 0-0.8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0-0.7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 0-0.6 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Wed Jul 13 2022 Dan Horák - 0-0.5 - enable s390x build (rhbz#1971028) * Sat Jun 18 2022 Robert-André Mauchin - 0-0.4 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering - 0-0.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0-0.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 16 2021 Davide Cavalca - 0-0.1.20210516gita32ed26 - Initial package