#!/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 = 101314 # signers group signersumask = 0002 signkeyname = 'epel@fedoraproject.org' distro = 'fedora' project = 'epel' class opts: mail = True repoprune = True repoview = True pushtotesting = True signkeycheck = True 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) rundir = top_workdir+'/epel-push-rundir' cachedir = rundir+'/mdcache' alldists = [ '5', 'testing/5', '4', 'testing/4' ] # also the order in build reports frozendists = [] archdict = { '4':['ppc','x86_64', 'i386'], '5':['ppc','x86_64', 'i386'], 'testing/4':['ppc','x86_64', 'i386'], 'testing/5':['ppc','x86_64', 'i386'] } multilibdists = [ '5', 'testing/5', '4', 'testing/4' ] # 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 = { '5' : { 'x86_64' : [ 'gnustep-make', 'nagios.*'] }, '4' : { 'x86_64' : [ 'ghex-devel', 'gnucash', 'graphviz-devel', 'libgnomeuimm26-devel', 'nagios-devel', 'wv2-devel', 'xsupplicant-devel' ] }, 'testing/5' : { 'x86_64' : [ 'gnustep-make', 'nagios.*'] }, 'testing/4' : { 'x86_64' : [ 'ghex-devel', 'gnucash', 'graphviz-devel', 'libgnomeuimm26-devel', 'nagios-devel', 'wv2-devel' , 'xsupplicant-devel' ] }, } multiwhitelists = { '5' : { 'x86_64' : [ '.*-devel', 'wine', 'wine-arts', 'wine-devel' ] }, '4' : { 'x86_64' : [ '.*-devel', 'wine', 'wine-arts', 'wine-devel' ] }, 'testing/5' : { 'x86_64' : [ '.*-devel', 'wine', 'wine-arts', 'wine-devel' ] }, 'testing/4' : { 'x86_64' : [ '.*-devel', 'wine', 'wine-arts', 'wine-devel' ] }, } # RepoPrune customisation # keep = max.releases per pkg # whitelist = Python regexp list of pkgs to exclude repoprune_keepdict = { '4': ["-kmod$"], '5': ["-kmod$"], 'testing/4': { 'keep':1, 'whitelist':["-kmod$"] }, 'testing/5': { 'keep':1, 'whitelist':["-kmod$"] }, } # 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.fedoraproject.org:/cvs/pkgs update' comps_up_pass2 = 'make -f Makefile' comps_dangerousfiles = ['Makefile','update-comps','po/Makefile'] comps_map = { 'testing/5' : 'comps-el5.xml', '5' : 'comps-el5.xml', 'testing/4' : 'comps-el4.xml', '4' : 'comps-el4.xml', } diversion_dict = {} # For RepoSupport.py features (TODO: use rpmUtils?) targetarchs = { 'i386' : 'i686', 'x86_64' : 'x86_64', 'ppc' : 'ppc' } # For RepoSupport.py features. baserepos = { '4' : ['fedora-epel'], '5' : ['fedora-epel'] } # For RepoSupport.py features. testrepos = { '4' : ['fedora-epel-testing'], '5' : ['fedora-epel-testing'] } # For RepoSupport.py features. reponames = { 'fedora-epel' : 'Fedora EPEL', 'fedora-epel-testing' : 'Fedora EPEL Test Updates' } # For RepoSupport.py features. # (%s, %s) = (release, arch) repourls = { 'fedora-epel' : 'file:///srv/rpmbuild/epel/tree/epel/%s/%s/', 'fedora-epel-testing' : 'file:///srv/rpmbuild/epel/tree/epel/testing/%s/%s/' } sync_cmd = './epel-sync' createrepo = '/usr/bin/createrepo -q -d' createrepo_dict = { '4' : '/srv/extras-push/work/buildsys-utils/pushscript/epel4-createrepo -q', 'testing/4' : '/srv/extras-push/work/buildsys-utils/pushscript/epel4-createrepo -q', } cr_cachedir = '/tmp/repomd-cache-epel' # createrepo cachedir #repoview = '/usr/bin/repoview' repoview = '/srv/extras-push/work/repoview -q' post_cmds = [] #post_cmds = ['upgradecheck.py -c %s' % os.path.expanduser('~/work/upgradecheck/upgradecheck-epel.conf'), # 'nohup /srv/extras-push/work/extras-repoclosure/rc-run-all.py --mail=owners --mail=summary &' # ] # Build report. smtp_server = '' project_hr = 'Fedora EPEL' mail_from = 'buildsys@fedoraproject.org' mail_to = 'epel-devel-list@redhat.com' mail_footer = ''