https://bugzilla.redhat.com/show_bug.cgi?id=1691998
--- Comment #12 from Robert-André Mauchin <zebob.m(a)gmail.com> ---
Made a mistake
golang-gopkg-redis-2.spec
%global goipath gopkg.in/redis.v2
%global forgeurl
https://github.com/go-redis/redis
Version: 2.3.2
%gometa
%global v2_goipath
github.com/go-redis/redis
%global v2_goipath_name %gorpmname %{v2_goipath}
Name: %{goname}
Release: 1%{?dist}
Summary: Redis client for Go
License: BSD
URL: %{gourl}
Source0: %{gosource}
Patch0: redis-testing-fixes.patch
BuildRequires: redis
BuildRequires: golang(gopkg.in/bufio.v1)
BuildRequires: golang(gopkg.in/check.v1)
%description
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
%{summary}.
This package contains library source intended for building other packages which
use import path with %{goipath} prefix.
%package -n %{v2_goipath_name}-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{v2_goipath_name}-devel
%{summary}.
This package contains library source intended for
building other packages which use import path with
%{v2_goipath} prefix.
%prep
%forgeautosetup -p1
%install
%goinstall
install -m 0755 -vd %{buildroot}%{gopath}/src/%(dirname %{v2_goipath})
ln -s %{gopath}/src/%{goipath} %{buildroot}%{gopath}/src/%{v2_goipath}
%check
# Run a test Redis server rather than assuming the system
# is running one already (see patch0) - non-default port.
redis-server --port 8126 &
sleep 0.2 # time to startup
redis-cli -p 8126 PING || exit 1
%gochecks
redis-cli -p 8126 SHUTDOWN || exit 1
%files devel -f devel.file-list
%doc README.md
%license LICENSE
%files -n %{v2_goipath_name}-devel
%dir %{gopath}/src/%(dirname %(dirname %{v2_goipath}))
%dir %{gopath}/src/%(dirname %{v2_goipath})
%{gopath}/src/%{v2_goipath}
%changelog
* Fri Mar 22 2019 Nathan Scott <nathans(a)redhat.com> - 2.3.2-1
- First package for Fedora
Repost Spec/SRPM if ok.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component