... (rhbz#2330133)
(cherry picked from commit 44fc02e66d)
The patch for sq-0.39 is reverted. The update has already been built,
but is not stable yet. This reverted will need to be dropped later.
66 lines
2.1 KiB
RPMSpec
66 lines
2.1 KiB
RPMSpec
Name: archlinux-keyring
|
|
Version: 20241203
|
|
Release: %autorelease
|
|
Url: https://archlinux.org/packages/core/any/archlinux-keyring/
|
|
Source: https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/archive/%{version}/archlinux-keyring-%{version}.tar.gz
|
|
Patch: https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/commit/1b5d2bddcd847c0dc05ac4899867f2c76a8838b8.patch
|
|
|
|
# see https://wiki.archlinux.org/index.php/Pacman-key for introduction
|
|
License: LicenseRef-Fedora-Public-Domain
|
|
Summary: GPG keys used by Arch Linux distribution to sign packages
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: keyrings-filesystem
|
|
BuildRequires: make
|
|
BuildRequires: /usr/bin/sq
|
|
BuildRequires: python3
|
|
BuildRequires: systemd-rpm-macros
|
|
BuildRequires: systemd
|
|
BuildRequires: pkgconf
|
|
Requires: pacman-filesystem
|
|
Requires: keyrings-filesystem
|
|
|
|
%description
|
|
A set of GPG keys used to sign packages in the Arch distribution,
|
|
which can be used to verify that downloaded Arch packages are
|
|
valid.
|
|
|
|
This package simply packages the GPG keyring as published by Arch
|
|
developers into an RPM package to allow for safe and convenient
|
|
installation on Fedora systems.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -P0 -R -p1
|
|
|
|
%build
|
|
|
|
%check
|
|
make check
|
|
|
|
%install
|
|
%make_install PREFIX=%{_prefix}
|
|
mkdir -p %{buildroot}%{_keyringsdir}/
|
|
ln --relative -s %{_datadir}/pacman/keyrings/archlinux.gpg %{buildroot}%{_keyringsdir}/
|
|
|
|
%files
|
|
%{_datadir}/pacman/keyrings
|
|
%{_keyringsdir}/archlinux.gpg
|
|
%{_bindir}/archlinux-keyring-wkd-sync
|
|
%{_unitdir}/archlinux-keyring-wkd-sync.*
|
|
%{_unitdir}/timers.target.wants/archlinux-keyring-wkd-sync.timer
|
|
|
|
%posttrans
|
|
if [ $1 == 1 ] && [ -x /usr/bin/pacman-key ] && ! /usr/bin/pacman-key -l &>/dev/null; then
|
|
/usr/bin/pacman-key --init && \
|
|
/usr/bin/pacman-key --populate archlinux --updatedb || :
|
|
fi
|
|
|
|
%transfiletriggerin -- /usr/bin/pacman-key
|
|
if [ -x /usr/bin/pacman-key ] && ! /usr/bin/pacman-key -l &>/dev/null; then
|
|
/usr/bin/pacman-key --init && \
|
|
/usr/bin/pacman-key --populate archlinux --updatedb || :
|
|
fi
|
|
|
|
%changelog
|
|
%autochangelog
|