# Generated by go2rpm %bcond_without check # https://github.com/go-redis/redis %global goipath gopkg.in/redis.v2 %global forgeurl https://github.com/go-redis/redis Version: 2.3.2 %gometa %global goaltipaths github.com/go-redis/redis %global common_description %{expand: Type-safe Redis client for Golang.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 2%{?dist} Summary: Type-safe Redis client for Golang # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} # test fixes and do not assume use of system redis-server for testing Patch0: redis-testing-fixes.patch BuildRequires: redis BuildRequires: golang(gopkg.in/bufio.v1) BuildRequires: golang(gopkg.in/check.v1) %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %install %gopkginstall %if %{with check} %check # Run a test Redis server rather than assuming the system # is running one already (see patch0) - non-default port. redis-cli -p 8126 SHUTDOWN 2>/dev/null || true redis-server --port 8126 & sleep 0.2 # time to startup redis-cli -p 8126 PING || exit 1 %gocheck redis-cli -p 8126 SHUTDOWN || exit 1 %endif %gopkgfiles %changelog * Tue Jun 04 00:32:59 CEST 2019 Robert-André Mauchin - 2.3.2-2 - Update to new macros * Fri Mar 22 2019 Nathan Scott - 2.3.2-1 - First package for Fedora