RPM Build Notes: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Blanked the page)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:


=RPM Build Notes=
==Install Mach==
Start with a minimal install of CentOS 6.2.
<pre>
$ yum install wget createrepo
$ wget http://thomas.apestaart.org/download/mach/mach-1.0.2.tar.gz
$ ./configure --disable-selinux
$ make
$ make install
$ chmod u+s /usr/local/sbin/mach-helper
$ groupadd mach
$ useradd -g mach -m mach
$ passwd mach
</pre>
Due to a permissions bug I hit with mach (during a file copy), we'll continue as root.
Create /root/.machrc:
<code>
config['centos-6-x86_64-os']['macros']['dist'] = '.el6'
config['centos-6-i386-os']['macros']['dist'] = '.el6'
</code>
For this example, I want to build a new mozilla-python27 package based on 2.7.3 instead of 2.7.2.  I'm going to fetch the original .src.rpm and extract it into a subdirectory:
<code>
$ wget http://repos/repos/yum/releng/public/CentOS/6/x86_64/mozilla-python27-mercurial-2.1.1-4.el6.src.rpm
$ mkdir mozilla-python27 && cd mozilla-python27
$ rpm2cpio ../mozilla-python27-mercurial-2.1.1-4.el6.src.rpm | cpio -ivd
</code>
Then edit the .spec file to

Latest revision as of 16:23, 10 April 2013