# Generated by go2rpm 1.3 %bcond_without check # https://github.com/go-gorp/gorp %global goipath gopkg.in/gorp.v1 %global forgeurl https://github.com/go-gorp/gorp Version: 1.7.2 %gometa %global goaltipaths github.com/go-gorp/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: 4%{?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 * Thu Jul 21 2022 Fedora Release Engineering - 1.7.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat May 22 2021 Davide Cavalca - 1.7.2-1 - Initial package