diff --git a/.cvsignore b/.cvsignore index 2941ca7..0d0915f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1,3 @@ firefox-2.0.0.5-source.tar.bz2 firefox-langpacks-2.0.0.5-20070718.tar.bz2 +plugin-config-1.1.tar.gz diff --git a/firefox-xremote-client.sh.in b/firefox-xremote-client.sh.in index 224f518..fa53f02 100644 --- a/firefox-xremote-client.sh.in +++ b/firefox-xremote-client.sh.in @@ -12,9 +12,9 @@ export MOZILLA_FIVE_HOME ## if [ "$LD_LIBRARY_PATH" ] then - LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$MOZILLA_FIVE_HOME/plugins:LIBDIR/mozilla/plugins:LIBDIR:$LD_LIBRARY_PATH + LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$MOZILLA_FIVE_HOME/plugins-wrapped:LIBDIR/mozilla/plugins-wrapped:LIBDIR:$LD_LIBRARY_PATH else - LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$MOZILLA_FIVE_HOME/plugins:LIBDIR/mozilla/plugins:LIBDIR + LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$MOZILLA_FIVE_HOME/plugins-wrapped:LIBDIR/mozilla/plugins-wrapped:LIBDIR fi export LD_LIBRARY_PATH diff --git a/firefox.sh.in b/firefox.sh.in index 7a7ea56..4ce0537 100644 --- a/firefox.sh.in +++ b/firefox.sh.in @@ -77,9 +77,9 @@ export MOZILLA_FIVE_HOME ## if [ "$MOZ_PLUGIN_PATH" ] then - MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:$MOZ_LIB_DIR/mozilla/plugins:$MOZ_DIST_BIN/plugins + MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:$MOZ_LIB_DIR/mozilla/plugins-wrapped:$MOZ_DIST_BIN/plugins-wrapped else - MOZ_PLUGIN_PATH=$MOZ_LIB_DIR/mozilla/plugins:$MOZ_DIST_BIN/plugins + MOZ_PLUGIN_PATH=$MOZ_LIB_DIR/mozilla/plugins-wrapped:$MOZ_DIST_BIN/plugins-wrapped fi export MOZ_PLUGIN_PATH @@ -135,6 +135,9 @@ function open_compose() { # OK, here's where all the real work gets done +# configure plug-ins +/usr/bin/firefox-plugin-config + # check to see if there's an already running instance or not ALREADY_RUNNING=`check_running` diff --git a/firefox.spec b/firefox.spec index 34b5c24..a8f616d 100644 --- a/firefox.spec +++ b/firefox.spec @@ -6,13 +6,16 @@ %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 Summary: Mozilla Firefox Web browser. Name: firefox Version: 2.0.0.5 -Release: 2%{?dist} +Release: 3%{?dist} URL: http://www.mozilla.org/projects/firefox/ License: MPL/LGPL Group: Applications/Internet @@ -22,6 +25,7 @@ Group: Applications/Internet %define tarball firefox-2.0rc3-source.tar.bz2 %endif Source0: %{tarball} +Source1: %{plugin_config_name}.tar.gz Source2: firefox-langpacks-%{version}-20070718.tar.bz2 Source10: firefox-mozconfig Source11: firefox-mozconfig-branded @@ -30,6 +34,7 @@ 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 @@ -141,7 +146,7 @@ removed in favor of xulrunner-devel. #--------------------------------------------------------------------- %prep -%setup -q -n mozilla +%setup -q -n mozilla -a 1 %patch1 -p1 -b .link-layout #%patch3 -p1 #%patch4 -p1 @@ -215,11 +220,18 @@ 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 %{__rm} -rf $RPM_BUILD_ROOT + DESTDIR=$RPM_BUILD_ROOT make install %{__mkdir_p} $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications} @@ -272,6 +284,7 @@ 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 @@ -345,6 +358,23 @@ 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 @@ -354,6 +384,7 @@ touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.dat %post update-desktop-database %{_datadir}/applications +%{mozappdir}/%{plugin_config_binary} -i -f -q > /dev/null 2>&1 %postun update-desktop-database %{_datadir}/applications @@ -365,9 +396,11 @@ if [ $1 -eq 0 ]; then %{__rm} -rf %{mozappdir}/extensions fi + %files %defattr(-,root,root,-) %{_bindir}/firefox +%{_bindir}/firefox-plugin-config %exclude %{_bindir}/firefox-config %{_mandir}/man1/* %{_datadir}/applications/mozilla-%{name}.desktop @@ -402,6 +435,8 @@ 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* @@ -427,6 +462,9 @@ fi #--------------------------------------------------------------------- %changelog +* Mon Jul 23 2007 Martin Stransky 2.0.0.5-3 +- added nspluginwrapper support + * Wed Jul 18 2007 Kai Engert - 2.0.0.5-2 - Update to 2.0.0.5 diff --git a/sources b/sources index d28b42b..a33d75f 100644 --- a/sources +++ b/sources @@ -1,2 +1,3 @@ 5a6ca3e4ac3ebc335d473cd3f682a916 firefox-2.0.0.5-source.tar.bz2 0d24292fcd40f85b3ed64bb1ed2e006e firefox-langpacks-2.0.0.5-20070718.tar.bz2 +92d71693f1d9d77c0a4d2fcc63de17b2 plugin-config-1.1.tar.gz