From 9ba2f30c2e889720841e0b6fe403e3957edb939f Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Tue, 7 Aug 2007 08:32:03 +0000 Subject: removed plugin configuration utility --- firefox-plugin-config.sh.in | 65 --------------------------------------------- firefox.sh.in | 6 ++--- firefox.spec | 36 ++----------------------- sources | 1 - 4 files changed, 5 insertions(+), 103 deletions(-) delete mode 100644 firefox-plugin-config.sh.in diff --git a/firefox-plugin-config.sh.in b/firefox-plugin-config.sh.in deleted file mode 100644 index 47bc940..0000000 --- a/firefox-plugin-config.sh.in +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -# -# The contents of this file are subject to the Netscape Public -# License Version 1.1 (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.mozilla.org/NPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Netscape -# Communications Corporation. Portions created by Netscape are -# Copyright (C) 1998 Netscape Communications Corporation. All -# Rights Reserved. -# -# Contributor(s): -# - -## -## Usage: -## -## $ mozilla-plugin-config -## -## This script is meant to configure plugins from the mozilla -## rpm installation. -## -## The script will setup all the plugin voodoo needed to make -## mozilla work. - -## -## Variables -## -MOZ_ARCH=$(uname -m) -case $MOZ_ARCH in - x86_64 | ia64 | s390 ) - MOZ_LIB_DIR="/usr/lib64" - SECONDARY_LIB_DIR="/usr/lib" - ;; - * ) - MOZ_LIB_DIR="/usr/lib" - SECONDARY_LIB_DIR="/usr/lib64" - ;; -esac - -if [ ! -x $MOZ_LIB_DIR/firefox-FIREFOX_VERSION/firefox-bin ]; then - if [ ! -x $SECONDARY_LIB_DIR/firefox-FIREFOX_VERSION/firefox-bin ]; then - echo "Error: $MOZ_LIB_DIR/firefox-FIREFOX_VERSION/firefox-bin not found" - if [ -d $SECONDARY_LIB_DIR ]; then - echo " $SECONDARY_LIB_DIR/firefox-FIREFOX_VERSION/firefox-bin not found" - fi - exit 1 - fi - MOZ_LIB_DIR="$SECONDARY_LIB_DIR" -fi - -export LD_LIBRARY_PATH="$MOZ_LIB_DIR/firefox-FIREFOX_VERSION" - -# Set-up installed plugins - -$MOZ_DIST_BIN/plugin-configuration -c -f -q > /dev/null 2>&1 - diff --git a/firefox.sh.in b/firefox.sh.in index 690fd03..7d133cd 100644 --- a/firefox.sh.in +++ b/firefox.sh.in @@ -75,7 +75,7 @@ export MOZILLA_FIVE_HOME ## Select the propper plugin dir ## Wrapped plug-ins are located in /lib/mozilla/plugins-wrapped ## -if [ -x "$MOZ_LIB_DIR/nspluginwrapper/npviewer" ] +if [ -x "/usr/bin/mozilla-plugin-config" ] then MOZ_PLUGIN_DIR="plugins-wrapped" else @@ -147,9 +147,9 @@ function open_compose() { ## ## If plugins are wrapped, check them ## -if [ -x "$MOZ_LIB_DIR/nspluginwrapper/npviewer" ] +if [ -x "/usr/bin/mozilla-plugin-config" ] then - /usr/bin/firefox-plugin-config + /usr/bin/mozilla-plugin-config fi # check to see if there's an already running instance or not diff --git a/firefox.spec b/firefox.spec index a75afd3..26e006a 100644 --- a/firefox.spec +++ b/firefox.spec @@ -6,9 +6,6 @@ %define cairo_version 0.5 %define builddir %{_builddir}/mozilla %define build_devel_package 1 -%define plugin_config_version 1.1 -%define plugin_config_name plugin-config-%{plugin_config_version} -%define plugin_config_binary plugin-configuration %define official_branding 1 @@ -25,7 +22,6 @@ Group: Applications/Internet %define tarball firefox-2.0rc3-source.tar.bz2 %endif Source0: %{tarball} -Source1: %{plugin_config_name}.tar.gz Source2: firefox-langpacks-%{version}-20070731.tar.bz2 Source10: firefox-mozconfig Source11: firefox-mozconfig-branded @@ -34,7 +30,6 @@ Source20: firefox.desktop Source21: firefox.sh.in Source22: firefox.png Source23: firefox.1 -Source24: firefox-plugin-config.sh.in Source50: firefox-xremote-client.sh.in Source100: find-external-requires Source101: add-gecko-provides.in @@ -147,7 +142,7 @@ removed in favor of xulrunner-devel. #--------------------------------------------------------------------- %prep -%setup -q -n mozilla -a 1 +%setup -q -n mozilla %patch1 -p1 -b .link-layout #%patch3 -p1 #%patch4 -p1 @@ -222,12 +217,6 @@ export LDFLAGS="-Wl,-rpath,%{mozappdir}" export MAKE="gmake %{moz_make_flags}" make -f client.mk build -#Build plugin configuration utility -pushd %{plugin_config_name} -./configure --prefix=/usr CFLAGS="$RPM_OPT_FLAGS" -make -popd - #--------------------------------------------------------------------- %install @@ -286,7 +275,6 @@ EOF # own mozilla plugin dir (#135050) %{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins -%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins-wrapped # Install langpacks %{__mkdir_p} $RPM_BUILD_ROOT%{mozappdir}/extensions @@ -360,23 +348,6 @@ install -c -m 644 LICENSE $RPM_BUILD_ROOT%{mozappdir} touch $RPM_BUILD_ROOT%{mozappdir}/components/compreg.dat touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.dat -# Install plugin-config utility -pushd %{plugin_config_name} -DESTDIR=$RPM_BUILD_ROOT make install - -cd $RPM_BUILD_ROOT/usr/bin -mv %{plugin_config_binary} $RPM_BUILD_ROOT%{mozappdir} - -cd $RPM_BUILD_ROOT/usr/doc -mv plugin-config $RPM_BUILD_ROOT%{mozappdir} -popd - -# set up the firefox plugin configuration script -%{__cat} %{SOURCE24} | %{__sed} -e 's,FIREFOX_VERSION,%{version},g' > \ - $RPM_BUILD_ROOT%{_bindir}/firefox-plugin-config -%{__chmod} 755 $RPM_BUILD_ROOT%{_bindir}/firefox-plugin-config - - #--------------------------------------------------------------------- %clean @@ -386,7 +357,6 @@ popd %post update-desktop-database %{_datadir}/applications -%{mozappdir}/%{plugin_config_binary} -i -f -q > /dev/null 2>&1 %postun update-desktop-database %{_datadir}/applications @@ -402,7 +372,6 @@ fi %files %defattr(-,root,root,-) %{_bindir}/firefox -%{_bindir}/firefox-plugin-config %exclude %{_bindir}/firefox-config %{_mandir}/man1/* %{_datadir}/applications/mozilla-%{name}.desktop @@ -437,8 +406,6 @@ fi %{mozappdir}/mozilla-xremote-client %{mozappdir}/run-mozilla.sh %{mozappdir}/regxpcom -%{mozappdir}/%{plugin_config_binary} -%{mozappdir}/plugin-config/* # XXX See if these are needed still %{mozappdir}/updater* @@ -466,6 +433,7 @@ fi %changelog * Mon Aug 6 2007 Martin Stransky 2.0.0.6-2 - unwrapped plugins moved to the old location +- removed plugin configuration utility * Sat Aug 4 2007 Christopher Aillon 2.0.0.6-1 - Update to 2.0.0.6 diff --git a/sources b/sources index 721106f..0ef2906 100644 --- a/sources +++ b/sources @@ -1,3 +1,2 @@ 73e1094a055496486b1ef685a6bc3960 firefox-langpacks-2.0.0.6-20070731.tar.bz2 16fb252fb7b0371894f7101b88fd9076 firefox-2.0.0.6-source.tar.bz2 -92d71693f1d9d77c0a4d2fcc63de17b2 plugin-config-1.1.tar.gz -- cgit