Removes comments and refs

This commit is contained in:
torsten committed 2026-07-18 13:06:31 +02:00
1 parent d6584b3519
commit 6bb80ee9c8
12 files changed
+215 -215

No files matched your search

+24 -24
View File
@@ -1,11 +1,11 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# $Id: make_rpm15.2.py 1382 2023-10-09 04:11:49Z fritsche_h $
# $HeadURL: svn://192.168.133.21/admin/rpmbuild/make_rpm15.2.py $
# $Author: fritsche_h $
# Created by Christian Ehrlicher, SLSE, 20013-02-19
#
import datetime
import getopt
@@ -17,7 +17,7 @@ import time
import ConfigParser
import fnmatch
# helper functions
loc = os.path.dirname( sys.argv[0] )
loc = os.path.abspath( loc )
exec(compile(open('helpers.py').read(), 'helpers.py', 'exec'))
@@ -62,7 +62,7 @@ class build(object):
print("")
time.sleep(2)
# does a svn export, returns True when it's a checkout or False when it's an update
def svn_export( self, svn_path, dest_dir, svn_revision = "HEAD", svn_user = None, svn_passwd = None ):
removeDirectory( dest_dir )
@@ -108,17 +108,17 @@ class build(object):
die( 'Unable to find a valid spec file in %s' % specdir )
def copy_spec( self, svn_fullpath, dest_dir, spec_fullpath ):
# copy spec to build
f = open( spec_fullpath, 'r' )
content = f.read()
f.close()
# Jenkins Build Tag (wird von Jenkins gesetzt wenn darüber gebaut wird)
jenkins_build_tag = os.getenv( "BUILD_TAG" )
if jenkins_build_tag == None or len(jenkins_build_tag) == 0:
jenkins_build_tag = 'Not build with jenkins job'
# Versionsinformationen übergeben
cmake_flags = ""
cmake_flags += '-D%s_VERSION_MAJOR:STRING="%s" ' % (self.cmake_version_prefix, self.version_maj)
cmake_flags += '-D%s_VERSION_MINOR:STRING="%s" ' % (self.cmake_version_prefix, self.version_min)
@@ -132,7 +132,7 @@ class build(object):
if self.cmake_build_flags:
cmake_flags += ' %s ' % self.cmake_build_flags
# und den Buildtype
cmake_flags += '-DCMAKE_BUILD_TYPE="%s" ' % self.buildtype
filename = 'project.%s.cfg' % self.project_name
@@ -181,8 +181,8 @@ class build(object):
info( "Packing sources in %s to %s" % ( src_dir, xzfilename ) )
info( "--------------------------------" )
removeDirectory( xzfilename ) # falls es ein directory ist
if os.path.exists( xzfilename ): # falls es eine datei ist
removeDirectory( xzfilename )
if os.path.exists( xzfilename ):
os.remove( xzfilename )
if not os.path.exists( dest_dir ):
os.makedirs( dest_dir )
@@ -191,16 +191,16 @@ class build(object):
cmd = "tar cJf %s %s" % ( xzfilename, os.path.split( src_dir )[1] )
system( cmd, sys.stdout ) and die( "while packing. cmd: %s" % command )
# svn export ${svn} ${base}
# fixup_rde_header ${base} "c"
# fixup_rde_header ${base} "h"
# fixup_rde_header ${base} "cpp"
# fixup_rde_header ${base} "hpp"
# fixup_rde_header ${base} "txt"
# fixup_rde_header ${base} "py"
# cp ${base}/specs/ctc.spec /usr/src/packages/SPECS/
def usage():
@@ -256,7 +256,7 @@ def main():
else:
b.svn_fullpath = "svn://%s/%s/%s/" % ( svn_server, b.repository, svn_path )
# b.check_rpm("ctc_EXTFW_%s" % os_str)
b.version_rev = getSvn_Release( b.svn_fullpath )
b.version_date = getSvn_Date( b.svn_fullpath )
@@ -283,7 +283,7 @@ def main():
removeDirectory( svn_destdir )
exec_rpmbuild( specdir, specname )
# move rpms to FOO-1.2-345
dstdir = os.path.join( b.output_dir, "%s-%s-%s" % ( b.project_name, b.repository, full_version ) )
filter = re.compile( "^.*%s\..*\.rpm$" % full_version )
moved_files = moveFilesToDir( rpmbase_dir,