1 # rpm public key package
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
7 # replace the string yournam with your name
8 # first initial and lastname, ie. sbarninger
9 %define pubkeyname yourname
11 # replace below with your name and email address
12 Packager: Your Name <your-email@site.org>
14 Summary: The %{pubkeyname} rpm public key
15 Name: rpmkey-%{pubkeyname}
18 License: BSD 2-Clause; see file LICENSE-FOSS
19 Group: System/Packages
20 Source0: %{pubkeyname}.asc
22 BuildRoot: %{_tmppath}/%{name}-root
24 %define gpgkeypath /etc/bacula/pubkeys
27 The %{pubkeyname} rpm public key. If you trust %{pubkeyname} component
28 and you want to import this key to the RPM database, then install this
29 RPM. After installing this package you may import the key into your rpm
32 rpm --import %{gpgkeypath}/%{pubkeyname}.asc
40 mkdir -p %{buildroot}%{gpgkeypath}
41 cp -a %{SOURCE0} %{buildroot}%{gpgkeypath}/
44 %defattr(-, root, root)
45 %{gpgkeypath}/%{pubkeyname}.asc
49 * Sat Aug 19 2006 D. Scott Barninger <barninger@fairfieldcomputers.com
50 - change key directory to /etc/bacula/pubkeys
51 * Sun Jul 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com