Mageia Bugzilla – Attachment 11592 Details for
Bug 17873
Add Atom text editor to mageia
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
rpm_build patch
rpm_build.patch (text/plain), 1.60 KB, created by
Kristoffer Grundström
on 2020-04-17 03:28:01 CEST
(
hide
)
Description:
rpm_build patch
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2020-04-17 03:28:01 CEST
Size:
1.60 KB
patch
obsolete
>--- script/lib/create-rpm-package.js 2017-06-14 11:29:29.000000000 -0600 >+++ create-rpm-package-new.js 2017-07-27 10:48:53.272779730 -0600 >@@ -19,7 +19,7 @@ > // (Ref.: https://twiki.cern.ch/twiki/bin/view/Main/RPMAndDebVersioning) > const appVersion = CONFIG.appMetadata.version.replace(/-/g, '.') > >- const rpmPackageDirPath = path.join(CONFIG.homeDirPath, 'rpmbuild') >+ const rpmPackageDirPath = path.join(CONFIG.homeDirPath, 'build/BUILD/rpm_out') > const rpmPackageBuildDirPath = path.join(rpmPackageDirPath, 'BUILD') > const rpmPackageSourcesDirPath = path.join(rpmPackageDirPath, 'SOURCES') > const rpmPackageSpecsDirPath = path.join(rpmPackageDirPath, 'SPECS') >@@ -69,16 +69,4 @@ > path.join(CONFIG.repositoryRootPath, 'atom.sh'), > path.join(rpmPackageBuildDirPath, 'atom.sh') > ) >- >- console.log(`Generating .rpm package from "${rpmPackageDirPath}"`) >- spawnSync('rpmbuild', ['-ba', '--clean', rpmPackageSpecFilePath]) >- for (let generatedArch of fs.readdirSync(rpmPackageRpmsDirPath)) { >- const generatedArchDirPath = path.join(rpmPackageRpmsDirPath, generatedArch) >- const generatedPackageFileNames = fs.readdirSync(generatedArchDirPath) >- assert(generatedPackageFileNames.length === 1, 'Generated more than one rpm package') >- const generatedPackageFilePath = path.join(generatedArchDirPath, generatedPackageFileNames[0]) >- const outputRpmPackageFilePath = path.join(CONFIG.buildOutputPath, `atom.${generatedArch}.rpm`) >- console.log(`Copying "${generatedPackageFilePath}" into "${outputRpmPackageFilePath}"`) >- fs.copySync(generatedPackageFilePath, outputRpmPackageFilePath) >- } > }
--- script/lib/create-rpm-package.js 2017-06-14 11:29:29.000000000 -0600 +++ create-rpm-package-new.js 2017-07-27 10:48:53.272779730 -0600 @@ -19,7 +19,7 @@ // (Ref.: https://twiki.cern.ch/twiki/bin/view/Main/RPMAndDebVersioning) const appVersion = CONFIG.appMetadata.version.replace(/-/g, '.') - const rpmPackageDirPath = path.join(CONFIG.homeDirPath, 'rpmbuild') + const rpmPackageDirPath = path.join(CONFIG.homeDirPath, 'build/BUILD/rpm_out') const rpmPackageBuildDirPath = path.join(rpmPackageDirPath, 'BUILD') const rpmPackageSourcesDirPath = path.join(rpmPackageDirPath, 'SOURCES') const rpmPackageSpecsDirPath = path.join(rpmPackageDirPath, 'SPECS') @@ -69,16 +69,4 @@ path.join(CONFIG.repositoryRootPath, 'atom.sh'), path.join(rpmPackageBuildDirPath, 'atom.sh') ) - - console.log(`Generating .rpm package from "${rpmPackageDirPath}"`) - spawnSync('rpmbuild', ['-ba', '--clean', rpmPackageSpecFilePath]) - for (let generatedArch of fs.readdirSync(rpmPackageRpmsDirPath)) { - const generatedArchDirPath = path.join(rpmPackageRpmsDirPath, generatedArch) - const generatedPackageFileNames = fs.readdirSync(generatedArchDirPath) - assert(generatedPackageFileNames.length === 1, 'Generated more than one rpm package') - const generatedPackageFilePath = path.join(generatedArchDirPath, generatedPackageFileNames[0]) - const outputRpmPackageFilePath = path.join(CONFIG.buildOutputPath, `atom.${generatedArch}.rpm`) - console.log(`Copying "${generatedPackageFilePath}" into "${outputRpmPackageFilePath}"`) - fs.copySync(generatedPackageFilePath, outputRpmPackageFilePath) - } }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17873
:
11589
|
11590
|
11591
| 11592 |
11593