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
a0cf1df9
Commit
a0cf1df9
authored
Feb 11, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: eval_spec: skip ExclusiveArch, use spec without changelog part
parent
241f1d0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
spec
share/eterbuild/functions/spec
+17
-6
No files found.
share/eterbuild/functions/spec
View file @
a0cf1df9
...
...
@@ -14,19 +14,30 @@ get_var()
eval_spec
()
{
# TODO: use rpm -showrc instead -bE for get main variables?
local
SPEC
=
$1
local
SPECNAME
=
$1
# Drop changelog and make spec copy
# 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
separate_changelog
$SPECNAME
$SPECNAME
.tmp
$SPECNAME
.changelog
SPEC
=
$SPECNAME
.tmp
USEARCH
=
# FIXME: rpm on 64bit ALT has no macros for ix86 arch
# use i586 if ExclusiveArch is %{ix86}
#[ "$SYSARCH" = "x86_64" ] && grep "^ExclusiveArch:" $SPEC | grep -q "ix86" && USEARCH=i586
# Hack for allow repack on x86_64 packages with ExclusiveArch: %{ix586}
# See https://bugs.etersoft.ru/show_bug.cgi?id=8394
[
"
$SYSARCH
"
=
"x86_64"
]
&&
subst
"s|^ExclusiveArch:.*||g"
$SPEC
# Hack: just print spec if -bE failed
if
is_alt
;
then
# on ALT we have to done without errors
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$SPEC
||
fatal
"Check spec's fields"
$
USEARCH
$
RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$SPEC
||
fatal
"Check spec's fields"
else
$RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$SPEC
2>/dev/null
||
cat
$SPEC
$
USEARCH
$
RPMBUILD
-bE
--target
$SYSARCH
$RPMBUILDARG
$SPEC
2>/dev/null
||
cat
$SPEC
fi
# rm -f $SPEC.tmpspec
rm
-f
$SPECNAME
.tmp
$SPECNAME
.changelog
}
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