Remove pangox dependency from centos since it's not in the epel yet
This commit is contained in:
14
installJRMC
14
installJRMC
@@ -245,7 +245,7 @@ EOF
|
|||||||
# parse commands
|
# parse commands
|
||||||
for _pkg in "$@"; do
|
for _pkg in "$@"; do
|
||||||
# Clean up package name and handle OS-specific tweaks
|
# Clean up package name and handle OS-specific tweaks
|
||||||
_packageOverrides "$_pkg"
|
_packageQuirks "$_pkg"
|
||||||
# Insert the package name to test if already installed
|
# Insert the package name to test if already installed
|
||||||
if [[ "$_pkg" != "" ]] && ! "${_pkg_query_cmd[@]}" "$_pkg" > /dev/null 2>&1; then
|
if [[ "$_pkg" != "" ]] && ! "${_pkg_query_cmd[@]}" "$_pkg" > /dev/null 2>&1; then
|
||||||
if [[ -n $_url_pkg ]]; then
|
if [[ -n $_url_pkg ]]; then
|
||||||
@@ -268,7 +268,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_packageOverrides () {
|
_packageQuirks () {
|
||||||
|
|
||||||
unset _url_pkg
|
unset _url_pkg
|
||||||
|
|
||||||
@@ -434,6 +434,14 @@ EOF'
|
|||||||
_build_requires=''
|
_build_requires=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$ID" == "centos" ]]; then
|
||||||
|
_requires='Requires: pangox-compat >= 0.0.2'
|
||||||
|
else
|
||||||
|
_requires=''
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Create spec file
|
# Create spec file
|
||||||
bash -c "cat <<EOF > $_outputdir/SPECS/mediacenter.spec
|
bash -c "cat <<EOF > $_outputdir/SPECS/mediacenter.spec
|
||||||
Name: MediaCenter
|
Name: MediaCenter
|
||||||
@@ -460,7 +468,7 @@ Requires: gtk3 >= 3.14
|
|||||||
Requires: mesa-libGL
|
Requires: mesa-libGL
|
||||||
Requires: libglvnd-glx
|
Requires: libglvnd-glx
|
||||||
Requires: pango >= 1.36
|
Requires: pango >= 1.36
|
||||||
Requires: pangox-compat >= 0.0.2
|
$_requires
|
||||||
Requires: xdg-utils
|
Requires: xdg-utils
|
||||||
Requires: libgomp >= 4.9
|
Requires: libgomp >= 4.9
|
||||||
Requires: gstreamer1 >= 1.4.4
|
Requires: gstreamer1 >= 1.4.4
|
||||||
|
|||||||
Reference in New Issue
Block a user