#!/usr/bin/python -t # -*- mode: Python; indent-tabs-mode: nil; -*- # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import os signersgid = 100581 # signers group signersumask = 0002 signkeyname = 'extras@fedoraproject.org' distro = 'fedora' project = 'extras' class opts: mail = True repoprune = True repoview = True signkeycheck = True doublesync = False top_workdir = '/srv/rpmbuild' treedir = top_workdir+'/%s/tree/%s' % (project, project) stagesdir = top_workdir+'/repodir' # Where we store mails to be sent, our main lockfile, ... rundir = '/srv/extras-push/%s-%s-rundir' % (distro, project) cachedir = rundir+'/mdcache' alldists = [ '6' ] # also the order in build reports frozendists = [] archdict = {'5':['ppc','x86_64', 'i386'], '6':['ppc','x86_64', 'i386'], '7':['ppc','x86_64', 'i386'], 'development':['ppc64','ppc','x86_64','i386'], } multilibdists = [ 'development', '6', '5' ] # map: dist -> target arch -> list of pkg name regexp patterns # We don't check virtual package names, unless it's a virtual -devel pkg. # black-list takes precedence over white-list multiblacklists = { 'development' : { 'x86_64' : [ 'cyrus-imapd-devel', 'fedora-ds-base-devel', 'gg2-devel', 'gnumeric-devel', 'gnustep-make', 'irssi-devel', 'js-devel', 'nagios-devel', 'pygame-devel', ] }, } multiwhitelists = { 'development' : { 'x86_64' : [ '.*-devel', 'wine', 'wine-arts', 'wine-devel' ] }, '6' : { 'x86_64' : [ 'wine', 'wine-arts', 'wine-devel', 'pidgin' ] }, '5' : { 'x86_64' : [ 'wine', 'wine-arts', 'wine-devel' ] }, } # RepoPrune customisation # keep = max.releases per pkg # whitelist = Python regexp list of pkgs to exclude repoprune_keepdict = {'5': { 'keep':1, 'whitelist':["-kmod$"] }, '6': { 'keep':2, 'whitelist':["-kmod$"] }, 'development': [], } # repository symlinks to remove/create since they confuse createrepo repobuild_linkdict = {} # comps.xml updating and installation comps_up_pass1 = 'LC_ALL=C CVS_RSH=ssh cvs -f -d :pserver:anonymous@cvs.fedora.redhat.com:/cvs/extras update' comps_up_pass2 = 'make -f Makefile' comps_dangerousfiles = ['Makefile','update-comps','po/Makefile'] comps_map = { '6' : 'comps-fe6.xml', '5' : 'comps-fe5.xml', } # Previously used to publish packages outside the dist repository. # map: srpm %{name} -> path diversion_dict = {} # For RepoSupport.py features (TODO: use rpmUtils?) targetarchs = { 'i386' : 'i686', 'x86_64' : 'x86_64', 'ppc' : 'ppc', 'ppc64' : 'ppc64' } # For RepoSupport.py features. baserepos = { '5' : ['fedora-core','fedora-core-updates','fedora-extras'], '6' : ['fedora-core','fedora-core-updates','fedora-extras'], '7' : ['fedora','fedora-updates'], 'development' : ['rawhide'] } # For RepoSupport.py features. testrepos = { '5' : ['fedora-core-updates-testing'], '6' : ['fedora-core-updates-testing'], '7' : ['fedora-updates-testing'], 'development' : [] } # For RepoSupport.py features. reponames = { 'fedora-core' : 'Fedora Core', 'fedora-core-updates' : 'Fedora Core Released Updates', 'fedora-core-updates-testing' : 'Fedora Core Test Updates', 'fedora' : 'Fedora', 'fedora-updates' : 'Fedora Updates', 'fedora-updates-testing' : 'Fedora Test Updates', 'fedora-extras' : 'Fedora Extras', 'rawhide' : 'Fedora Development' } # For RepoSupport.py features. # (%s, %s) = (release, arch) repourls = { 'fedora-core' : 'http://download.fedora.redhat.com/pub/fedora/linux/core/%s/%s/os/', 'fedora-core-updates' : 'http://download.fedora.redhat.com/pub/fedora/linux/core/updates/%s/%s/', 'fedora-core-updates-testing' : 'http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/%s/%s/', 'fedora' : 'http://download.fedora.redhat.com/pub/fedora/linux/releases/%s/Everything/%s/os/', 'fedora-updates' : 'http://download.fedora.redhat.com/pub/fedora/linux/updates/%s/%s/', 'fedora-updates-testing' : 'http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/%s/%s/', 'fedora-extras' : 'file:///srv/rpmbuild/extras/tree/extras/%s/%s/', 'rawhide' : 'http://download.fedora.redhat.com/pub/fedora/linux/%s/%s/os/' } sync_cmd = 'extras-sync' createrepo = '/usr/bin/createrepo -q' createrepo_dict = { 'development' : '/usr/bin/createrepo -q -d' } cr_cachedir = '/tmp/repomd-cache' # createrepo cachedir #repoview = '/usr/bin/repoview' repoview = '/srv/extras-push/work/repoview -q' #post_cmds = ['upgradecheck.py -c %s' % os.path.expanduser('~/work/upgradecheck/upgradecheck-fedora.conf'), # 'nohup /srv/extras-push/work/extras-repoclosure/rc-run-all.py --mail=owners --mail=summary &' # ] post_cmds = [] # Build report. smtp_server = '' project_hr = 'Fedora Extras' mail_from = 'buildsys@fedoraproject.org' mail_to = 'fedora-devel-list@redhat.com' mail_footer = ''