Today : Wed, 18 Sep 24 .


INFN-PADOVA wiki


Fabric Management

Notes

PmWiki

edit SideBar

RPM

Page: Site.RPM - Last Modified : Fri, 11 Dec 09

RPMREBUILD

How to rebuild a production rpm (example)

  • Check rpmmacros settings
[root@gimo2 ~]# cat .rpmmacros
%packager IG-Release Team <grid-release@infn.it>
%vendor INFN

%_topdir /root/rpmbuild

%_tmppath /root/rpmbuild/tmp
%buildroot %{_tmppath}/%{name}-build
  • Check directories
[root@gimo2 ~]# ll /root/rpmbuild/
total 24
drwxr-xr-x  2 root root 4096 Dec 11 10:56 BUILD
drwxr-xr-x  2 root root 4096 Dec 11 10:56 RPMS
drwxr-xr-x  2 root root 4096 Dec 11 10:56 SOURCES
drwxr-xr-x  2 root root 4096 Dec 11 10:56 SPECS
drwxr-xr-x  2 root root 4096 Dec 11 10:56 SRPMS
drwxr-xr-x  2 root root 4096 Dec 11 10:56 tmp
  • Get the original rpm
[root@gimo2 ~]# wget http://grid-it.cnaf.infn.it/mrepo/ig-cert_sl4-i386/RPMS.3_1_0/glite-wms-helper-3.2.3-1.slc4.i386.rpm
  • Create build directory (note "-build" suffix)
[root@gimo2 ~]# mkdir ~/rpmbuild/tmp/glite-wms-helper-build
  • Copy the content (with mc) inside ~/rpmbuild/tmp/glite-wms-helper-build
  • Do the changes inside ~/rpmbuild/tmp/glite-wms-helper-build
  • Rebuild the rpm with modified version
[root@gimo2 ~]# rpmrebuild -p -e -n -d ~/rpmbuild/repackaged/ glite-wms-helper-3.2.3-1.slc4.i386.rpm
  • Add %changelog comment in the following format
* Mon Sep 14 2009 (simone.dallafina@pd.infn.it)                                                                             

- Added support to StoRM

Powered by PmWiki
Skin by CarlosAB

looks borrowed from http://haran.freeshell.org/oswd/sinorca
More skins here