Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e3d82c60
Commit
e3d82c60
authored
Nov 29, 2007
by
Jean-Paul Saman
Committed by
Jean-Paul Saman
Mar 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved detection for RPM build binary and capabilities.
parent
29e58960
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
extras/contrib/Makefile
extras/contrib/Makefile
+4
-0
extras/contrib/bootstrap
extras/contrib/bootstrap
+18
-0
No files found.
extras/contrib/Makefile
View file @
e3d82c60
...
...
@@ -114,6 +114,10 @@ package-rpm: FORCE
echo
"Creating RPM build environment"
;
\
mkdir
-p
src/rpm/BUILD src/rpm/SOURCES src/rpm/SPECS src/rpm/RPMS src/rpm/SRPMS
;
\
fi
if
test
-z
"
$(RPMBUILD)
"
;
then
echo
"Cannot build rpm packages without rpm binary capable of building packages. Please install rpm-build (for rpm version 4 and higher)."
exit
1
fi
$(MAKE)
-C
src rpm
echo
-n
"Clearing out rpm/BUILD/ ..."
#
$(MAKE)
-C
src clean-rpm
...
...
extras/contrib/bootstrap
View file @
e3d82c60
...
...
@@ -225,7 +225,25 @@ elif test -x /usr/sbin/rpm; then
elif
test
-x
/bin/rpm
;
then
RPMBUILD
=
"/bin/rpm"
fi
# check rpm version
rpmver
=
if
!
test
-z
"
$RPMBUILD
"
;
then
rpmver
=
`
$RPMBUILD
--version
2>/dev/null |
sed
-e
's/RPM version //'
`
rpmtest
=
`
basename
$RPMBUILD
`
case
$rpmver
in
4.
*
|
4.
*
.
*
|
4.
*
.
*
.
*
|
4.
*
.
*
.
*
)
if
!
test
"
$rpmtest
"
=
"rpmbuild"
;
then
echo
"Unable to build RPM package because rpmbuild binary is not avaible. Please install rpm-build package."
exit
1
fi
;;
*
)
echo
"Unable to buld RPM packages"
RPMBUILD
=
exit
1
;;
esac
echo
"RPMBUILD =
$RPMBUILD
"
>>
config.mak
DOMAINNAME
=
`
dnsdomainname
`
if
test
-z
"
$DOMAINNAME
"
;
then
...
...
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