From 1a038dc88b19ee601f411d5847ee74751b08c476 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 15 Jun 2015 17:04:07 +0100 Subject: alternative solution to avoid adding a gnome-vfs dependency if disabled i.e. "don't add gnomevfs requires to epm created rpms if GNOMEVFS is disabled" seeing as setup_native/source/packinfo/packinfo_office.txt references find-requires-gnome.sh and doesn't have conditional support revert the split and put the the conditional into find-requires-gnome.sh Change-Id: I34bd37c4fd252f2175ff055024293dea946b4881 --- .../inc_openoffice/unix/find-requires-glib.sh | 26 ----------------- .../inc_openoffice/unix/find-requires-gnome.sh | 33 ++++++++++++++++++++++ .../inc_openoffice/unix/find-requires-gnomevfs.sh | 26 ----------------- 3 files changed, 33 insertions(+), 52 deletions(-) delete mode 100644 instsetoo_native/inc_openoffice/unix/find-requires-glib.sh create mode 100644 instsetoo_native/inc_openoffice/unix/find-requires-gnome.sh delete mode 100644 instsetoo_native/inc_openoffice/unix/find-requires-gnomevfs.sh (limited to 'instsetoo_native/inc_openoffice/unix') diff --git a/instsetoo_native/inc_openoffice/unix/find-requires-glib.sh b/instsetoo_native/inc_openoffice/unix/find-requires-glib.sh deleted file mode 100644 index 4be8766870fa..000000000000 --- a/instsetoo_native/inc_openoffice/unix/find-requires-glib.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -cat > /dev/null -[[ "${PLATFORMID}" == "linux_x86_64" ]] && mark64="()(64bit)" -if [[ "${OS}" == "AIX" ]]; then - echo "libgconf-2.a(libgconf-2.so.4${mark64})" -else - echo "libgconf-2.so.4${mark64}" -fi diff --git a/instsetoo_native/inc_openoffice/unix/find-requires-gnome.sh b/instsetoo_native/inc_openoffice/unix/find-requires-gnome.sh new file mode 100644 index 000000000000..bd40ad3f4d92 --- /dev/null +++ b/instsetoo_native/inc_openoffice/unix/find-requires-gnome.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# This file incorporates work covered by the following license notice: +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed +# with this work for additional information regarding copyright +# ownership. The ASF licenses this file to you under the Apache +# License, Version 2.0 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.apache.org/licenses/LICENSE-2.0 . +# + +cat > /dev/null +[[ "${PLATFORMID}" == "linux_x86_64" ]] && mark64="()(64bit)" +if [[ "${ENABLE_GNOMEVFS}" == "TRUE" ]]; then + if [[ "${OS}" == "AIX" ]]; then + echo "libgnomevfs-2.a(libgnomevfs-2.so.0${mark64})" + else + echo "libgnomevfs-2.so.0${mark64}" + fi +fi +if [[ "${OS}" == "AIX" ]]; then + echo "libgconf-2.a(libgconf-2.so.4${mark64})" +else + echo "libgconf-2.so.4${mark64}" +fi diff --git a/instsetoo_native/inc_openoffice/unix/find-requires-gnomevfs.sh b/instsetoo_native/inc_openoffice/unix/find-requires-gnomevfs.sh deleted file mode 100644 index 12d03c91f500..000000000000 --- a/instsetoo_native/inc_openoffice/unix/find-requires-gnomevfs.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -cat > /dev/null -[[ "${PLATFORMID}" == "linux_x86_64" ]] && mark64="()(64bit)" -if [[ "${OS}" == "AIX" ]]; then - echo "libgnomevfs-2.a(libgnomevfs-2.so.0${mark64})" -else - echo "libgnomevfs-2.so.0${mark64}" -fi -- cgit