radvd.spec: Fix URL and add source code verification

Related: RHEL-141379
This commit is contained in:
Martin Osvald 2026-01-28 15:55:08 +01:00
parent ded300c6ed
commit 4ea6ad124b
2 changed files with 12248 additions and 6 deletions

View File

@ -2,11 +2,14 @@ Summary: A Router Advertisement daemon
Name: radvd
Version: 2.19
Release: %autorelease
License: radvd
URL: http://www.litech.org/radvd/
Source0: %{url}dist/%{name}-%{version}.tar.xz
Source1: radvd.sysusers
URL: https://radvd.litech.org
Source0: https://radvd.litech.org/dist/%{name}-%{version}.tar.xz
Source1: https://radvd.litech.org/dist/%{name}-%{version}.tar.xz.asc
# Robin Hugh Johnson's public key
Source2: https://github.com/robbat2.gpg
Source3: radvd.sysusers
Patch0: radvd-c99-1.patch
Patch1: radvd-c99-2.patch
Patch2: radvd-configure-c99.patch
@ -24,6 +27,7 @@ BuildRequires: systemd-rpm-macros
%{?sysusers_requires_compat}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gnupg2
%description
radvd is the router advertisement daemon for IPv6. It listens to router
@ -37,6 +41,7 @@ Install radvd if you are setting up IPv6 network and/or Mobile IPv6
services.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1
for F in CHANGES; do
@ -68,7 +73,7 @@ install -m 644 redhat/SysV/radvd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/
install -d -m 755 %{buildroot}%{_tmpfilesdir}
install -p -m 644 redhat/systemd/radvd-tmpfs.conf %{buildroot}%{_tmpfilesdir}/radvd.conf
install -m 644 redhat/systemd/radvd.service %{buildroot}%{_unitdir}
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/radvd.conf
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/radvd.conf
%check
make check
@ -83,7 +88,7 @@ make check
%systemd_preun radvd.service
%pre
%sysusers_create_compat %{SOURCE1}
%sysusers_create_compat %{SOURCE3}
%files
%doc CHANGES COPYRIGHT INTRO.html README TODO

12237
robbat2.gpg Normal file

File diff suppressed because it is too large Load Diff