Changes between Version 5 and Version 6 of RpmBuilding


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

--

Legend:

Unmodified
Added
Removed
Modified
  • RpmBuilding

    v5 v6  
    3636}}}
    3737
    38 Create a ~/.rpmmacros file with the following content
     38Add the following to your ~/.rpmmacros file
    3939{{{
    40 %HOME       %{expand:%%(cd; pwd)}
    41 %_topdir    %{HOME}/rpm
    42 
    4340%_signature gpg
    4441%_gpg_path ~/.gnupg
     
    5249}}}
    5350
    54 
    5551== get the src rpms ==
    5652{{{
    57 wget -r --no-parent -A *.src.rpm -R *drpms* *repodata*  https://ast.tucny.com/repo/asterisk-common/el7/SRPMS/
     53wget -r --no-parent -A *.src.rpm https://ast.tucny.com/repo/
     54}}}
     55
     56Make sure the right target release is specified in /etc/mock/default.cfg
     57
     58Create a rpm repository under your web server:
     59{{{
     60sudo mkdir -p /var/www/html/repos
     61sudo chown jorrit. /var/www/html/repos
     62mkdir /var/www/html/repos/x86_64
     63createrepo /var/www/html/repo/x86_64
     64}}}
     65
     66Add your own repo to your mock config for the target build (e.g. /etc/mock/epel-7-x86_64.cfg)
     67{{{
     68[jj]
     69name=jj
     70baseurl=http://centos7.fritz.box/repo/x86_64/
     71gpgcheck=1
     72skip_if_unavailable=False
    5873}}}
    5974
    6075
    6176
    62 Make sure the right target release is specified in /etc/mock/default.cfg
     77Do the building part
     78{{{
     79mock --rebuild dahdi-linux-2.11.1-2.el7.centos.src.rpm
     80rm -f /var/lib/mock/epel-7-x86_64/result/*src.rpm
     81rpm --addsign /var/lib/mock/epel-7-x86_64/result/*.rpm
     82cp /var/lib/mock/epel-7-x86_64/result/*.rpm /var/www/html/repo/x86_64
     83createrepo --update /var/www/html/repo/x86_64
    6384
     85
     86
     87}}}
     88
     89
     90