File ALP-build-key.spec of Package ALP-build-key

#
# spec file for package ALP-build-key
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define keydir  %{_prefix}/lib/rpm/gnupg/keys/
Name:           ALP-build-key
Version:        0.1
Release:        0
Source0:	gpg-pubkey-ALP.asc
Summary:        The public gpg keys for rpm package signature verification
License:        GPL-2.0-or-later
BuildRequires:  gpg
BuildRequires:	openSUSE-build-key

%description
This package contains the gpg keys that are used to sign the
ALP rpm packages. The keys installed here are not actually
used by anything. rpm/zypper use the keys in the rpm db instead.

%prep
%setup -qcT

%build

%install
mkdir -p %{buildroot}%{keydir}
for i in %{SOURCE0} ; do
    case "$i" in
	*/gpg-pubkey-*.asc)
	install -m 644 "$i" %{buildroot}%{keydir}
	;;
    esac
done

%files
%defattr(644,root,root)
%{keydir}/gpg-pubkey-ALP.asc

%changelog
openSUSE Build Service is sponsored by