Changes between Version 2 and Version 3 of RpmBuilding


Ignore:
Timestamp:
08/12/18 22:17:14 (6 years ago)
Author:
jorrit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RpmBuilding

    v2 v3  
    99}}}
    1010
     11Generate a GPG signing key:
     12{{{
     13gpg --gen-key
     14}}}
     15follow the instructions
     16
     17{{{
     18gpg --export -a 'Jorrit Jorritsma' > ~/RPM-GPG-KEY-jorrit
     19}}}
     20
     21Import your public key to your RPM DB
     22{{{
     23sudo rpm --import RPM-GPG-KEY-jorrit
     24}}}
     25
     26Create 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{{{
     39wget -r --no-parent -A *.src.rpm -R *drpms* *repodata*  https://ast.tucny.com/repo/asterisk-common/el7/SRPMS/
     40}}}
     41
     42
     43
    1144Make sure the right target release is specified in /etc/mock/default.cfg
    1245