https://bugzilla.redhat.com/show_bug.cgi?id=1691998
Robert-André Mauchin <zebob.m(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zebob.m(a)gmail.com
--- Comment #2 from Robert-André Mauchin <zebob.m(a)gmail.com> ---
- Main import path is gopkg.in/redis.v2: this should be the primary import
path from which goname and spec name is derived.
All other secondary import path must be included in compat packages.
# Old naming of the same project
%global oldgoipath xxxx
%global oldgoname %gorpmname %{oldgoipath}
[…]
# If you’ve defined an alternative go name
%package -n compat-%{oldgoname}-devel
Summary: %{summary}
Obsoletes: %{oldgoname}-devel < %{version}-%{release}
%description -n compat-%{oldgoname}-devel
%{common_description}
This package provides symbolic links that alias the following Go import paths
to %{goipath}:
– %{oldgoipath}
[…]
%goinstall
# Old name aliasing
install -m 0755 -vd %{buildroot}%{gopath}/src/%(dirname %{oldgoipath})
ln -s %{gopath}/src/%{goipath} %{buildroot}%{gopath}/src/%{oldgoipath}
[…]
%files -n compat-%{oldgoname}-devel
# You need as many of those as necessary to own the levels of directories
# between %{gopath}/src and %{gopath}/src/%{oldgoipath}, that are not already
# owned by the %{goname}-devel subpackage
%dir %{gopath}/src/%(dirname %(dirname %{oldgoipath}))
%dir %{gopath}/src/%(dirname %{oldgoipath})
%{gopath}/src/%{oldgoipath}
--
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