eac7576
Name:           archlinux-keyring
a110719
Version:        20231207
240c5f9
Release:        %autorelease
aa4191c
Url:            https://archlinux.org/packages/core/any/archlinux-keyring/
aa4191c
Source0:        https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/archive/%{version}/archlinux-keyring-%{version}.tar.gz
44ecde5
Patch:          archlinux-keyring-revert_to_sq-keyring-linter.diff
eac7576
# see https://wiki.archlinux.org/index.php/Pacman-key for introduction
f7eee61
License:        LicenseRef-Fedora-Public-Domain
f7eee61
Summary:        GPG keys used by Arch Linux distribution to sign packages
eac7576
BuildArch:      noarch
eac7576
8130b72
BuildRequires:  keyrings-filesystem
2986a58
BuildRequires:  make
ab1dce7
BuildRequires:  /usr/bin/sq
f356b83
BuildRequires:  python3
6bd5ef0
BuildRequires:  systemd-rpm-macros
25d577a
BuildRequires:  systemd
6bd5ef0
BuildRequires:  pkgconf
eac7576
Requires:       pacman-filesystem
8130b72
Requires:       keyrings-filesystem
eac7576
eac7576
%description
eac7576
A set of GPG keys used to sign packages in the Arch distribution,
eac7576
which can be used to verify that downloaded Arch packages are
eac7576
valid.
eac7576
ec2073d
This package simply packages the GPG keyring as published by Arch
ec2073d
developers into an RPM package to allow for safe and convenient
ec2073d
installation on Fedora systems.
eac7576
eac7576
%prep
44ecde5
%autosetup -p1
eac7576
eac7576
%build
eac7576
40e3274
%check
40e3274
make check
40e3274
eac7576
%install
eac7576
%make_install PREFIX=%{_prefix}
8130b72
mkdir -p %{buildroot}%{_keyringsdir}/
64f0382
ln --relative -s %{_datadir}/pacman/keyrings/archlinux.gpg %{buildroot}%{_keyringsdir}/
eac7576
eac7576
%files
eac7576
%{_datadir}/pacman/keyrings
8130b72
%{_keyringsdir}/archlinux.gpg
5c058c1
%{_bindir}/archlinux-keyring-wkd-sync
5c058c1
%{_unitdir}/archlinux-keyring-wkd-sync.*
5c058c1
%{_unitdir}/timers.target.wants/archlinux-keyring-wkd-sync.timer
eac7576
f169801
%post
64f0382
if [ -x /usr/bin/pacman-key ] && /usr/bin/pacman-key -l &>/dev/null; then
64f0382
    /usr/bin/pacman-key --populate archlinux || :
64f0382
    /usr/bin/pacman-key --updatedb || :
f169801
fi
f169801
eac7576
%changelog
240c5f9
%autochangelog