X-Git-Url: https://git.ralfj.de/auto-debuild.git/blobdiff_plain/a9d4d5c4a1be0311e53747b98dfd74cabcb8108d..260e43dbae9bcd168245d2c960b68b3df0676eaa:/auto_debuild.py diff --git a/auto_debuild.py b/auto_debuild.py index 61d7efc..0be45a3 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -98,7 +98,7 @@ def pythonRules(config): # build systems buildSystems = { 'cmake': BuildSystem(cmakeRules, ["cmake"]), - 'automake': BuildSystem(automakeRules, ["automake"]), + 'automake': BuildSystem(automakeRules), 'python': BuildSystem(pythonRules, ["python-setuptools"], ["${python:Depends}"]), } @@ -169,12 +169,16 @@ def createDebianFiles(config): print >>f, "" print >>f, "Package:",binaryName print >>f, "Architecture:",packageArchitecture + if 'binaryMultiArch' in config: + print >>f, "Multi-Arch:",config['binaryMultiArch'] writeDependency(f, "Pre-Depends", ["${misc:Pre-Depends}"] + config.get('binaryPreDepends', [])) writeDependency(f, "Depends", ["${shlibs:Depends}", "${misc:Depends}"] + buildSystem.binaryDepends + config.get('binaryDepends', [])) writeDependency(f, "Recommends", config.get('binaryRecommends', [])) writeDependency(f, "Provides", config.get('binaryProvides', [sourceName])) writeDependency(f, "Conflicts", config.get('binaryConflicts', [])) + writeDependency(f, "Breaks", config.get('binaryBreaks', []) + config.get('binaryBreaksReplaces', [])) + writeDependency(f, "Replaces", config.get('binaryReplaces', []) + config.get('binaryBreaksReplaces', [])) print >>f, "Description:",sourceName,"(auto-debuild)" print >>f, " Package auto-generated by auto-debuild." files.append(os.path.join(debDir, "%s_%s_%s.deb" % (binaryName, version, arch))) @@ -244,6 +248,7 @@ def createDebianFiles(config): r.rules['installdocs'] = [safeCall('dh_installdocs', '--link-doc='+binaryName)] # make the doc folder of the dbg package a symlink # wait after configuration? if config.get('waitAfterConfig', False): + if not 'auto_configure' in r.rules: r.rules['auto_configure'] = ['dh_auto_configure'] # make sure there is an override r.rules['auto_configure'].append("@"+safeCall('read', '-p', 'Configuration done. Hit "Enter" to build the package. ', 'DUMMY_VAR')) # if we run in dash, we need to tell it which variable to use for the result... # dump it to a file r.write(f)