| | 11 | Generate a GPG signing key: |
| | 12 | {{{ |
| | 13 | gpg --gen-key |
| | 14 | }}} |
| | 15 | follow the instructions |
| | 16 | |
| | 17 | {{{ |
| | 18 | gpg --export -a 'Jorrit Jorritsma' > ~/RPM-GPG-KEY-jorrit |
| | 19 | }}} |
| | 20 | |
| | 21 | Import your public key to your RPM DB |
| | 22 | {{{ |
| | 23 | sudo rpm --import RPM-GPG-KEY-jorrit |
| | 24 | }}} |
| | 25 | |
| | 26 | Create a ~/.rpmmacros file with the following content |
| | 27 | {{{ |
| | 28 | %_signature gpg |
| | 29 | %_gpg_path ~/.gnupg |
| | 30 | %_gpg_name Jorrit Jorritsma |
| | 31 | %_gpgbin /usr/bin/gpg |
| | 32 | }}} |
| | 33 | |
| | 34 | |
| | 35 | |
| | 36 | |
| | 37 | == get the src rpms == |
| | 38 | {{{ |
| | 39 | wget -r --no-parent -A *.src.rpm -R *drpms* *repodata* https://ast.tucny.com/repo/asterisk-common/el7/SRPMS/ |
| | 40 | }}} |
| | 41 | |
| | 42 | |
| | 43 | |