Changes between Version 5 and Version 6 of RpmBuilding
- Timestamp:
- 08/12/18 23:17:24 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RpmBuilding
v5 v6 36 36 }}} 37 37 38 Create a ~/.rpmmacros file with the following content 38 Add the following to your ~/.rpmmacros file 39 39 {{{ 40 %HOME %{expand:%%(cd; pwd)}41 %_topdir %{HOME}/rpm42 43 40 %_signature gpg 44 41 %_gpg_path ~/.gnupg … … 52 49 }}} 53 50 54 55 51 == get the src rpms == 56 52 {{{ 57 wget -r --no-parent -A *.src.rpm -R *drpms* *repodata* https://ast.tucny.com/repo/asterisk-common/el7/SRPMS/ 53 wget -r --no-parent -A *.src.rpm https://ast.tucny.com/repo/ 54 }}} 55 56 Make sure the right target release is specified in /etc/mock/default.cfg 57 58 Create a rpm repository under your web server: 59 {{{ 60 sudo mkdir -p /var/www/html/repos 61 sudo chown jorrit. /var/www/html/repos 62 mkdir /var/www/html/repos/x86_64 63 createrepo /var/www/html/repo/x86_64 64 }}} 65 66 Add your own repo to your mock config for the target build (e.g. /etc/mock/epel-7-x86_64.cfg) 67 {{{ 68 [jj] 69 name=jj 70 baseurl=http://centos7.fritz.box/repo/x86_64/ 71 gpgcheck=1 72 skip_if_unavailable=False 58 73 }}} 59 74 60 75 61 76 62 Make sure the right target release is specified in /etc/mock/default.cfg 77 Do the building part 78 {{{ 79 mock --rebuild dahdi-linux-2.11.1-2.el7.centos.src.rpm 80 rm -f /var/lib/mock/epel-7-x86_64/result/*src.rpm 81 rpm --addsign /var/lib/mock/epel-7-x86_64/result/*.rpm 82 cp /var/lib/mock/epel-7-x86_64/result/*.rpm /var/www/html/repo/x86_64 83 createrepo --update /var/www/html/repo/x86_64 63 84 85 86 87 }}} 88 89 90