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
30ab5f8d
Commit
30ab5f8d
authored
Mar 04, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbph: small fixes
parent
c65ed784
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
rpmbph
bin/rpmbph
+13
-4
No files found.
bin/rpmbph
View file @
30ab5f8d
...
...
@@ -65,16 +65,19 @@ if [ "$PKGVENDOR" = "alt" ] ; then
%undefine __libtoolize"
fi
else
docmd
$ETERBUILDBIN
/rpmcs
$SPECNAME
docmd
$ETERBUILDBIN
/rpmcs
--skip-reqs
$SPECNAME
BUILDREQ
=
"BuildRequires:"
if
[
$(
basename
$SPECNAME
)
!=
"eepm.spec"
]
;
then
# Need our compat package and disable strong patch checking
BUILDREQ
=
"
$BUILDREQ
rpm-build-altlinux-compat >= 0.95"
if
!
grep
-q
"BuildRequires:.*rpm-build-altlinux-compat"
$SPECNAME
;
then
# Need our compat package and disable strong patch checking
BUILDREQ
=
"
$BUILDREQ
rpm-build-altlinux-compat >= 0.95"
fi
fi
# hack against very straight patch command
FIXPATCHFUZZ
=
"%define _default_patch_fuzz 3"
# see install in Korinf, need concatenate
BUILDREQ
=
"
$BUILDREQ
make gcc
\n
$FIXPATCHFUZZ
"
if
[
"
$BUILDARCH
"
=
"x86_64"
]
&&
echo
$BUILDNAME
|
grep
-q
wine
;
then
...
...
@@ -255,9 +258,13 @@ if [ "$PKGVENDOR" != "alt" ] ; then
subst
"s|^
\(
Source.*
\)
%release|
\1
$RELEASE
|g"
$SPECNAME
subst
"s|^
\(
Patch.*
\)
%release|
\1
$RELEASE
|g"
$SPECNAME
grep
-q
"%setup *-q"
$SPECNAME
||
subst
"s|^%setup |%setup -q |g"
$SPECNAME
if
!
grep
-q
"%setup *-q"
$SPECNAME
;
then
subst
"s|^%setup |%setup -q |g"
$SPECNAME
subst
"s|^%setup
$|
%setup -q|g"
$SPECNAME
fi
# obsoletes since Slackware/13 (rpm 4.10)
subst
"s|^BuildPreReq:|BuildRequires:|g"
$SPECNAME
subst
"s|^PreReq:|Requires:|g"
$SPECNAME
fi
# Auto*=yes,nomingw32 works only since ALT 4.1
...
...
@@ -308,6 +315,8 @@ else
DISTRARG
=
""
fi
test
-s
"
$SPECNAME
"
||
fatal
"
$SPECNAME
is empty"
test
-n
"
$TOCHANGELOG
"
&&
ENTRY
=
`
echo
-e
"
$ENTRY
\n
-
$TOCHANGELOG
"
`
add_changelog
$SPECNAME
-e
"
$ENTRY
"
...
...
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