Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
721c6d64
Commit
721c6d64
authored
Jul 31, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm=repack-rpm: use eepm-rpmbuild if available
parent
48c6bc04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
epm-repack-rpm
bin/epm-repack-rpm
+19
-12
No files found.
bin/epm-repack-rpm
View file @
721c6d64
...
...
@@ -113,15 +113,22 @@ __epm_repack_to_rpm()
# Note: install epm-repack for static (package based) dependencies
assure_exists alien
||
fatal
# TODO: check for all systems
case
$PKGFORMAT
in
rpm
)
assure_exists /usr/bin/rpmbuild rpm-build
||
fatal
;;
deb
)
assure_exists /usr/bin/rpmbuild rpm
||
fatal
;;
esac
RPMBUILD
=
/usr/bin/eepm-rpmbuild
if
[
-x
$RPMBUILD
]
;
then
warning
"will use eepm-rpmbuild for rpm packing"
else
RPMBUILD
=
/usr/bin/rpmbuild
# TODO: check for all systems
case
$PKGFORMAT
in
rpm
)
assure_exists
$RPMBUILD
rpm-build
||
fatal
;;
deb
)
assure_exists
$RPMBUILD
rpm
||
fatal
;;
esac
fi
umask
022
...
...
@@ -199,11 +206,11 @@ __epm_repack_to_rpm()
TARGETARCH
=
$(
epm print info
-a
|
sed
-e
's|^x86$|i586|'
)
showcmd
rpmbuild
--buildroot
$buildroot
--target
$TARGETARCH
-bb
$spec
showcmd
$RPMBUILD
--buildroot
$buildroot
--target
$TARGETARCH
-bb
$spec
if
[
-n
"
$verbose
"
]
;
then
a
=
''
rpmbuild
--buildroot
$buildroot
--target
$TARGETARCH
-bb
$spec
||
fatal
a
=
''
$RPMBUILD
--buildroot
$buildroot
--target
$TARGETARCH
-bb
$spec
||
fatal
else
a
=
''
rpmbuild
--buildroot
$buildroot
--target
$TARGETARCH
-bb
$spec
>
/dev/null
||
fatal
a
=
''
$RPMBUILD
--buildroot
$buildroot
--target
$TARGETARCH
-bb
$spec
>
/dev/null
||
fatal
fi
# remove copy of source binary package (don't mix with generated)
...
...
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