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
f35e47d9
Commit
f35e47d9
authored
May 13, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add undefine libtoolize for al systems
set vendor when repack src.rpm with rpmbph
parent
51be2980
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
rpmbph
bin/rpmbph
+6
-2
common
share/eterbuild/functions/common
+3
-1
rpm
share/eterbuild/functions/rpm
+4
-0
No files found.
bin/rpmbph
View file @
f35e47d9
...
...
@@ -35,8 +35,6 @@ if [ "$VENDOR" = "alt" ] ; then
set_release
$SPECNAME
alt
$(
decrement_release
$BASERELEASE
)
.
$MDISTR
.
$BASERELEASE
ADDDEF
=
""
CLEANTEXT
=
""
# due new libtool
RECONFT
=
"%undefine __libtoolize"
else
# Need our compat package and disable strong patch checking
BUILDREQ
=
"BuildRequires: rpm-build-altlinux-compat >= 0.95
\n
$FIXPATCHFUZZ
"
...
...
@@ -46,9 +44,13 @@ else
CLEANTEXT
=
""
fi
# due new libtool, affected on ALT Linux and Mandriva 2009.0
RECONFT
=
"%undefine __libtoolize"
# Do not add BuildReq if already exist
cat
$SPECNAME
|
grep
rpm-build-compat &>/dev/null
&&
BUILDREQ
=
"
$FIXPATCHFUZZ
"
# TODO: fix readlink -m, introduced by new libtool and missed in RHEL4
# fix mktemp using for MCBC
if
[
"
$VENDOR
"
=
"mcbc"
]
;
then
FIXMKTEMP
=
"%__subst "
s|mktemp
-dt
|mktemp
-d
|g
" configure"
...
...
@@ -194,6 +196,8 @@ if [ "$VENDOR" = "alt" ] ; then
else
subst
"1i# This spec is autoported from ALT Linux Sisyphus to
`
distr_vendor
-d
`
$DISTRVERSION
automatically by rpmbph script. Do not edit it."
$SPECNAME
ENTRY
=
"- autoport to
`
distr_vendor
-d
`
$DISTRVERSION
(by rpmbph script)"
#DISTRARG="--define '_vendor $VENDOR'"
export
USE_VENDOR
=
$VENDOR
DISTRARG
=
""
fi
...
...
share/eterbuild/functions/common
View file @
f35e47d9
...
...
@@ -12,6 +12,7 @@ set_eterbuilddir()
ETERBUILDDIR
=
/usr/share/eterbuild
else
# if run from no system installation
# TODO: use real root dir not script dirname
ETERBUILDDIR
=
$(
realpath
`
dirname
$0
`
/../share/eterbuild
)
ETERBUILDETC
=
$(
realpath
`
dirname
$0
`
/../etc
)
if
[
-r
"
$ETERBUILDETC
/../AUTHORS"
]
;
then
...
...
@@ -19,11 +20,12 @@ set_eterbuilddir()
echo
"Note: run from source tree, datadir=
$ETERBUILDDIR
, sysconfdir=
$ETERBUILDETC
"
fi
else
warning
"Cannot find source tree root in source tree mode"
ETERBUILDETC
=
/etc/eterbuild
ETERBUILDDIR
=
/usr/share/eterbuild
fi
fi
ETERBUILDBIN
=
$(
rea
dlink
-f
$ETERBUILDDIR
/../../bin
)
ETERBUILDBIN
=
$(
rea
lpath
$ETERBUILDDIR
/../../bin
)
test
-n
"
$ETERBUILDDIR
"
# returns test result
}
...
...
share/eterbuild/functions/rpm
View file @
f35e47d9
...
...
@@ -24,6 +24,10 @@ uni_rpmbuild()
# FIXME: do not override -v
ONEPARAM
=
"--define=_source_payload w9.gzdio"
fi
if
[
-n
"
$USE_VENDOR
"
]
;
then
ONEPARAM
=
"--define=_vendor
$USE_VENDOR
"
fi
if
[
-n
"
$RPMTOPDIR
"
]
;
then
TWOPARAM
=
"--define=_topdir
$RPMTOPDIR
"
...
...
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