wgctrl/wgctrl.spec
Fedora Release Engineering da76e33a09 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 20:53:55 +00:00

90 lines
2.5 KiB
RPMSpec

# Generated by go2rpm 1
%bcond_without check
# https://github.com/WireGuard/wgctrl-go
%global goipath golang.zx2c4.com/wireguard/wgctrl
%global forgeurl https://github.com/WireGuard/wgctrl-go
%global commit bd2cb7843e1b98193f01eb288793e741a814a269
%gometa
%global goname wgctrl
%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.6%{?dist}
Summary: Control of WireGuard interfaces on multiple platforms
License: MIT
URL: %{gourl}
Source0: %{gosource}
BuildRequires: golang(github.com/mdlayher/genetlink)
BuildRequires: golang(github.com/mdlayher/netlink)
BuildRequires: golang(github.com/mdlayher/netlink/nlenc)
BuildRequires: golang(golang.org/x/crypto/curve25519)
BuildRequires: golang(golang.org/x/sys/unix)
%if %{with check}
# Tests
BuildRequires: golang(github.com/google/go-cmp/cmp)
BuildRequires: golang(github.com/mdlayher/genetlink/genltest)
BuildRequires: golang(github.com/mdlayher/netlink/nltest)
BuildRequires: golang(github.com/mikioh/ipaddr)
%endif
%description
%{common_description}
%gopkg
%prep
%goprep
%build
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%endif
%files
%license LICENSE.md
%doc CONTRIBUTING.md README.md
%{_bindir}/*
%gopkgfiles
%changelog
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 François Kooman <fkooman@tuxed.net> - 0-0.5.20210127gitbd2cb78
- Update to commit bd2cb7843e1b98193f01eb288793e741a814a269
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jul 17 22:28:10 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190729git28f4e24
- Initial package