Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
f0434ea1
Commit
f0434ea1
authored
Oct 13, 2011
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: add commented code for use spec without changelog
parent
db2b541e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
spec
share/eterbuild/functions/spec
+7
-2
No files found.
share/eterbuild/functions/spec
View file @
f0434ea1
...
...
@@ -14,14 +14,19 @@ get_var()
eval_spec
()
{
# TODO: use rpm -showrc instead -bE for get main variables?
local
SPEC
=
$1
# see http://bugs.etersoft.ru/show_bug.cgi?id=6588
#cat $SPEC | awk 'BEGIN{desk=0}{if (desk==0) {print}; if(/^%changelog/&&desk==0){desk++}}' > $SPEC.tmpspec
# SPEC=$SPEC.tmpspec
# Hack: just print spec if -bE failed
if
is_alt
;
then
# on ALT we have to done without errors
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$
@
||
fatal
"Check spec's fields"
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$
SPEC
||
fatal
"Check spec's fields"
else
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$
@
2>/dev/null
||
cat
$1
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$
SPEC
2>/dev/null
||
cat
$SPEC
fi
# rm -f $SPEC.tmpspec
}
get_release
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment