From 7a5af6e57e0a29b617d1491c166186a19a97d90a Mon Sep 17 00:00:00 2001 From: Hangbin Liu Date: Wed, 15 May 2024 10:09:41 +0800 Subject: [PATCH] 1.0.20210914-3 init rhel 10 branch --- .gitignore | 1 + README.md | 3 +++ gating.yaml | 6 +++++ sources | 1 + wireguard-tools.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 66 insertions(+) create mode 100644 README.md create mode 100644 gating.yaml create mode 100644 sources create mode 100644 wireguard-tools.spec diff --git a/.gitignore b/.gitignore index e69de29..ee5ae67 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/wireguard-tools-1.0.20210914.tar.xz diff --git a/README.md b/README.md new file mode 100644 index 0000000..828f46d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# wireguard-tools + +The wireguard-tools package \ No newline at end of file diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..4ca9235 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/sources b/sources new file mode 100644 index 0000000..e7938bf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (wireguard-tools-1.0.20210914.tar.xz) = 6727ea65551dbb064457449b93a943bd6534ca93bc7fa5704c2f6826266c98688ee9ea28731fda57a5245d5f63c05f3899fcca54e40c0b6251b7c4796e957445 diff --git a/wireguard-tools.spec b/wireguard-tools.spec new file mode 100644 index 0000000..453255b --- /dev/null +++ b/wireguard-tools.spec @@ -0,0 +1,55 @@ +Name: wireguard-tools +Version: 1.0.20210914 +Release: 3%{?dist} +URL: https://www.wireguard.com/ +Summary: Fast, modern, secure VPN tunnel +License: GPL-2.0-only + +Source0: https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-%{version}.tar.xz + +%{?systemd_requires} +BuildRequires: make +BuildRequires: systemd +BuildRequires: gcc + +Requires: systemd-resolved + +%description +WireGuard is a novel VPN that runs inside the Linux Kernel and uses +state-of-the-art cryptography (the "Noise" protocol). It aims to be +faster, simpler, leaner, and more useful than IPSec, while avoiding +the massive headache. It intends to be considerably more performant +than OpenVPN. WireGuard is designed as a general purpose VPN for +running on embedded interfaces and super computers alike, fit for +many different circumstances. It runs over UDP. + +This package provides the wg binary for controlling WireGuard. + +%prep +%autosetup -p1 + +%build +%set_build_flags + +%make_build RUNSTATEDIR=%{_rundir} -C src + +%install +%make_install BINDIR=%{_bindir} MANDIR=%{_mandir} RUNSTATEDIR=%{_rundir} \ +WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes WITH_SYSTEMDUNITS=yes -C src + +%files +%doc README.md contrib +%license COPYING +%{_bindir}/wg +%{_bindir}/wg-quick +%{_sysconfdir}/wireguard/ +%{_datadir}/bash-completion/completions/wg +%{_datadir}/bash-completion/completions/wg-quick +%{_unitdir}/wg-quick@.service +%{_unitdir}/wg-quick.target +%{_mandir}/man8/wg.8* +%{_mandir}/man8/wg-quick.8* + +%changelog +* Fri Aug 11 2023 Hangbin Liu - 1.0.20210914-3 +- Convert spec license tag to SPDX format (RHELMISC-1353)