# Generated by go2rpm 1.3 %bcond_without check # https://github.com/go-gorp/gorp %global goipath github.com/go-gorp/gorp/v1 %global forgeurl https://github.com/go-gorp/gorp Version: 1.7.2 %gometa %global goaltipaths gopkg.in/gorp.v1 %global common_description %{expand: Go Relational Persistence - an ORM-ish library for Go.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md Name: %{goname} Release: 1%{?dist} Summary: Go Relational Persistence - an ORM-ish library for Go License: MIT URL: %{gourl} Source0: %{gosource} # Backported from # https://github.com/go-gorp/gorp/commit/29255104100b1eda6a42f8fb85f79014ac4a39a1 Patch0: gorp-1-fix-format-string.patch %if %{with check} # Tests 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/ziutek/mymysql/godrv) %endif %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %install %gopkginstall %if %{with check} %check # We only test sqlite as the other backends require a live db export GORP_TEST_DSN=gorptest.bin export GORP_TEST_DIALECT=sqlite %gocheck %endif %gopkgfiles %changelog * Sat May 22 2021 Davide Cavalca - 1.7.2-1 - Initial package