https://bugzilla.redhat.com/show_bug.cgi?id=1023776
Robert-André Mauchin <zebob.m(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zebob.m(a)gmail.com
--- Comment #1 from Robert-André Mauchin <zebob.m(a)gmail.com> ---
- Please follow Go packaging guidelines for binaries:
# Generated by go2rpm 1
%bcond_without check
#
https://github.com/goerlang/eclus
%global goipath
github.com/goerlang/eclus
%global commit 5efcbfc98a5caa9af3e81d4ba8f938efcfdc8802
%gometa
%global common_description %{expand:
Erlang EPMD replacement and example of node.}
%global golicenses LICENSE
%global godocs README.md
Name: %{goname}
Version: 0
Release: 0.1%{?dist}
Summary: Erlang EPMD replacement and example of node
License: MIT
URL: %{gourl}
Source0: %{gosource}
BuildRequires:
golang(github.com/coreos/go-systemd/activation)
BuildRequires:
golang(github.com/goerlang/epmd)
BuildRequires:
golang(github.com/goerlang/etf)
BuildRequires:
golang(github.com/goerlang/node)
BuildRequires: systemd-rpm-macros
%description
%{common_description}
%prep
%goprep
%build
for cmd in src/eclus; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%install
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -D -p -m 0644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -D -p -m 0644 %{name}.socket %{buildroot}%{_unitdir}/%{name}.socket
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun %{name}.service
%files
%license LICENSE
%doc README.md
%{_bindir}/*
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.socket
%changelog
--
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