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