|
| View previous topic :: View next topic |
| Author |
Message |
cyrille
|
Posted: Wed Sep 29, 2010 8:01 pm Post subject: specific mock config file |
|
|
I'm using mock to build RPMs with this command line :
$ mock -r "version-of-fedora" rebuild file.src.rpm
but in /etc/mock, there's no file with BLAG version, so I use the F12 file.
But when the package is build, it is labelized with the F12 label.
(when, I built it with only rpmbuild, his name is XXXX-blag.rpm, but this building way is not clean)
So I copy the /etc/mock/fedora-12-x86_64.cfg --> blag-119K-x86_64.cfg and edit it as
| Code: |
config_opts['root'] = 'blag-119K-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
config_opts['dist'] = 'fc12' # only useful for --resultdir variable subst
config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
# grub/syslinux on x86_64 need glibc-devel.i386 which pulls in glibc.i386, need to exclude all
# .i?86 packages except these.
#exclude=[0-9A-Za-fh-z]*.i?86 g[0-9A-Za-km-z]*.i?86 gl[0-9A-Za-hj-z]*.i?86 gli[0-9A-Zac-z]*.i?86 glib[0-9A-Za-bd-z]*.i?86
# The above is not needed anymore with yum multilib policy of "best" which is the default in Fedora.
# repos
[fedora]
name=fedora
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-12&arch=x86_64
failovermethod=priority
[updates-released]
name=updates
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f12&arch=x86_64
failovermethod=priority
[local]
name=local
baseurl=http://kojipkgs.fedoraproject.org/repos/dist-f12-build/latest/x86_64/
cost=2000
enabled=0
"""
|
Is it a good way to build RPM with mock labelized BLAG ?
thx
Cyrille
|
|
|
 |
cyrille
|
|
 |
|
|
|