## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 14; 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.3 %bcond_without check # https://github.com/siddontang/go %global goipath github.com/siddontang/go %global commit bdc77568d726a8702315ec4eafda030b6abc4f43 %gometa %global common_description %{expand: Golang lib for ledisdb.} %global golicenses LICENSE bson/LICENSE filelock/LICENSE snappy/LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: %autorelease Summary: Golang lib for ledisdb # Upstream license specification: MIT and BSD-3-Clause and BSD-2-Clause License: MIT and BSD and BSD URL: %{gourl} Source0: %{gosource} # Fix Errorf formatting # https://github.com/siddontang/go/issues/9 Patch0: 0001-Fix-Errorf-formatting.patch %if %{with check} # Tests BuildRequires: golang(github.com/gorilla/websocket) BuildRequires: golang(gopkg.in/check.v1) BuildRequires: golang(gopkg.in/mgo.v2/bson) %endif %description %{common_description} %gopkg %prep %goprep %patch -P0 -p1 %install %gopkginstall %if %{with check} %check # Needs network for test in "TestRpc1" \ "TestRpc2" \ "TestRpc3" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog ## START: Generated by rpmautospec * Wed Jan 24 2024 Fedora Release Engineering - 0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Mar 04 2022 Robert-André Mauchin - 0-8 - Fix FTBFS Close: rhbz#2045614 * Thu Jan 20 2022 Fedora Release Engineering - 0-0.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0-0.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0-0.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 10 16:39:09 CET 2021 Robert-André Mauchin - 0-0.1.20210110gitbdc7756 - Initial package ## END: Generated by rpmautospec