modify path

This commit is contained in:
Patric Karwat committed 2026-04-10 08:17:58 +02:00
1 parent e317f0e1fd
commit 4e3dbd136c
1 file changed
+4 -4
+4 -4
View File
@@ -238,14 +238,14 @@ def main():
specdir = os.path.join( rpmbase_dir, "SPECS" ) specdir = os.path.join( rpmbase_dir, "SPECS" )
if not os.path.exists(specdir): if not os.path.exists(specdir):
os.makedirs(specdir) os.makedirs(specdir)
b.clean_lts_cc_conf(os.path.join(project_base_dir, 'legatus','Lts', 'Projects')) b.clean_lts_cc_conf(os.path.join(project_base_dir, 'legatus', 'Lts', 'Projects'))
specname = b.specname(os.path.join(project_base_dir, 'specs')) specname = b.specname(os.path.join(project_base_dir,'legatus', 'specs'))
b.copy_spec( specdir, os.path.join(project_base_dir, "specs", specname )) b.copy_spec( specdir, os.path.join(project_base_dir, 'legatus', "specs", specname ))
full_version = "%s.%s-%s" % ( b.version_maj, b.version_min, b.version_rev ) full_version = "%s.%s-%s" % ( b.version_maj, b.version_min, b.version_rev )
b.printOptions() b.printOptions()
b.pack_sources( project_base_dir, os.path.join( rpmbase_dir, "SOURCES" ) ) b.pack_sources( os.path.join(project_base_dir, 'legatus'), os.path.join( rpmbase_dir, "SOURCES" ) )
exec_rpmbuild( specdir, specname ) exec_rpmbuild( specdir, specname )
# move rpms to FOO-1.2-345 # move rpms to FOO-1.2-345
dstdir = os.path.join( b.output_dir, "%s-%s-%s" % ( b.project_name, b.repository, full_version ) ) dstdir = os.path.join( b.output_dir, "%s-%s-%s" % ( b.project_name, b.repository, full_version ) )