Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Robert-André Mauchin
de0d646182 Fix goinstall
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2019-07-29 23:08:11 +02:00
Robert-André Mauchin
4cc475c79c Convert to old style macros
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2019-07-29 18:55:35 +02:00

View file

@ -13,9 +13,6 @@
%global common_description %{expand:
Package Wgctrl enables control of WireGuard interfaces on multiple platforms.}
%global golicenses LICENSE.md
%global godocs CONTRIBUTING.md README.md
Name: %{goname}
Version: 0
Release: 0.1%{?dist}
@ -42,24 +39,34 @@ BuildRequires: golang(github.com/mikioh/ipaddr)
%description
%{common_description}
%gopkg
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
%{common_description}
This package contains library source intended for
building other packages which use import path with
%{goipath} prefix.
%prep
%goprep
%forgeautosetup -p1
%build
%gobuildroot
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
%gobuild -o _bin/$(basename $cmd) %{goipath}/$cmd
done
%install
%gopkginstall
%goinstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -m 0755 -vp _bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%gochecks
%endif
%files
@ -67,7 +74,9 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%doc CONTRIBUTING.md README.md
%{_bindir}/*
%gopkgfiles
%files devel -f devel.file-list
%license LICENSE.md
%doc CONTRIBUTING.md README.md
%changelog
* Wed Jul 17 22:28:10 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190729git28f4e24