Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
237da7a10e | ||
|
|
0adfe93ce5 |
1 changed files with 19 additions and 10 deletions
29
wgctrl.spec
29
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 <zebob.m@gmail.com> - 0-0.1.20190729git28f4e24
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue