# Generated by go2rpm 1 # Tests broken with Go 1.15 %bcond_with check # https://github.com/go-redis/redis %global goipath gopkg.in/redis.v5 %global forgeurl https://github.com/go-redis/redis Version: 5.2.9 %gometa %global common_description %{expand: Type-safe Redis client for Golang.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 8%{?dist} Summary: Type-safe Redis client for Golang # Upstream license specification: BSD-2-Clause License: BSD URL: %{gourl} Source0: %{gosource} # back-ported from master, for latest redis-server responses Patch0: redis-5-testing.patch %if %{with check} # Tests BuildRequires: redis BuildRequires: golang(github.com/onsi/ginkgo) BuildRequires: golang(github.com/onsi/gomega) %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %install %gopkginstall %global _testdata_redis_src %{_builddir}/redis-%{version}/testdata/redis/src mkdir -p %{_testdata_redis_src} ln -s %{_bindir}/redis-server %{_testdata_redis_src}/redis-server %if %{with check} %check # Run a test Redis server rather than assuming the system # is running one already (see patch0) - non-default port. redis-server --port 18126 & sleep 0.2 # time to startup redis-cli -p 18126 PING || exit 1 %gocheck redis-cli -p 18126 SHUTDOWN || exit 1 %endif %gopkgfiles %changelog * Thu Jan 19 2023 Fedora Release Engineering - 5.2.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 5.2.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 5.2.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 5.2.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 5.2.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 5.2.9-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 5.2.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Feb 11 14:41:10 AEDT 2020 Nathan Scott - 5.2.9-1 - Initial package