diff --git a/wgctrl.spec b/wgctrl.spec index 0d774e2..389714f 100644 --- a/wgctrl.spec +++ b/wgctrl.spec @@ -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 - 0-0.1.20190729git28f4e24