added nspluginwrapper support
This commit is contained in:
parent
d81aecc21d
commit
c6d9eb19e1
@ -1,2 +1,3 @@
|
|||||||
firefox-2.0.0.5-source.tar.bz2
|
firefox-2.0.0.5-source.tar.bz2
|
||||||
firefox-langpacks-2.0.0.5-20070718.tar.bz2
|
firefox-langpacks-2.0.0.5-20070718.tar.bz2
|
||||||
|
plugin-config-1.1.tar.gz
|
||||||
|
@ -12,9 +12,9 @@ export MOZILLA_FIVE_HOME
|
|||||||
##
|
##
|
||||||
if [ "$LD_LIBRARY_PATH" ]
|
if [ "$LD_LIBRARY_PATH" ]
|
||||||
then
|
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
|
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
|
fi
|
||||||
export LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH
|
||||||
|
|
||||||
|
@ -77,9 +77,9 @@ export MOZILLA_FIVE_HOME
|
|||||||
##
|
##
|
||||||
if [ "$MOZ_PLUGIN_PATH" ]
|
if [ "$MOZ_PLUGIN_PATH" ]
|
||||||
then
|
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
|
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
|
fi
|
||||||
export MOZ_PLUGIN_PATH
|
export MOZ_PLUGIN_PATH
|
||||||
|
|
||||||
@ -135,6 +135,9 @@ function open_compose() {
|
|||||||
|
|
||||||
# OK, here's where all the real work gets done
|
# 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
|
# check to see if there's an already running instance or not
|
||||||
ALREADY_RUNNING=`check_running`
|
ALREADY_RUNNING=`check_running`
|
||||||
|
|
||||||
|
42
firefox.spec
42
firefox.spec
@ -6,13 +6,16 @@
|
|||||||
%define cairo_version 0.5
|
%define cairo_version 0.5
|
||||||
%define builddir %{_builddir}/mozilla
|
%define builddir %{_builddir}/mozilla
|
||||||
%define build_devel_package 1
|
%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
|
%define official_branding 1
|
||||||
|
|
||||||
Summary: Mozilla Firefox Web browser.
|
Summary: Mozilla Firefox Web browser.
|
||||||
Name: firefox
|
Name: firefox
|
||||||
Version: 2.0.0.5
|
Version: 2.0.0.5
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
URL: http://www.mozilla.org/projects/firefox/
|
URL: http://www.mozilla.org/projects/firefox/
|
||||||
License: MPL/LGPL
|
License: MPL/LGPL
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
@ -22,6 +25,7 @@ Group: Applications/Internet
|
|||||||
%define tarball firefox-2.0rc3-source.tar.bz2
|
%define tarball firefox-2.0rc3-source.tar.bz2
|
||||||
%endif
|
%endif
|
||||||
Source0: %{tarball}
|
Source0: %{tarball}
|
||||||
|
Source1: %{plugin_config_name}.tar.gz
|
||||||
Source2: firefox-langpacks-%{version}-20070718.tar.bz2
|
Source2: firefox-langpacks-%{version}-20070718.tar.bz2
|
||||||
Source10: firefox-mozconfig
|
Source10: firefox-mozconfig
|
||||||
Source11: firefox-mozconfig-branded
|
Source11: firefox-mozconfig-branded
|
||||||
@ -30,6 +34,7 @@ Source20: firefox.desktop
|
|||||||
Source21: firefox.sh.in
|
Source21: firefox.sh.in
|
||||||
Source22: firefox.png
|
Source22: firefox.png
|
||||||
Source23: firefox.1
|
Source23: firefox.1
|
||||||
|
Source24: firefox-plugin-config.sh.in
|
||||||
Source50: firefox-xremote-client.sh.in
|
Source50: firefox-xremote-client.sh.in
|
||||||
Source100: find-external-requires
|
Source100: find-external-requires
|
||||||
Source101: add-gecko-provides.in
|
Source101: add-gecko-provides.in
|
||||||
@ -141,7 +146,7 @@ removed in favor of xulrunner-devel.
|
|||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n mozilla
|
%setup -q -n mozilla -a 1
|
||||||
%patch1 -p1 -b .link-layout
|
%patch1 -p1 -b .link-layout
|
||||||
#%patch3 -p1
|
#%patch3 -p1
|
||||||
#%patch4 -p1
|
#%patch4 -p1
|
||||||
@ -215,11 +220,18 @@ export LDFLAGS="-Wl,-rpath,%{mozappdir}"
|
|||||||
export MAKE="gmake %{moz_make_flags}"
|
export MAKE="gmake %{moz_make_flags}"
|
||||||
make -f client.mk build
|
make -f client.mk build
|
||||||
|
|
||||||
|
#Build plugin configuration utility
|
||||||
|
pushd %{plugin_config_name}
|
||||||
|
./configure --prefix=/usr CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
make
|
||||||
|
popd
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
DESTDIR=$RPM_BUILD_ROOT make install
|
DESTDIR=$RPM_BUILD_ROOT make install
|
||||||
|
|
||||||
%{__mkdir_p} $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications}
|
%{__mkdir_p} $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications}
|
||||||
@ -272,6 +284,7 @@ EOF
|
|||||||
|
|
||||||
# own mozilla plugin dir (#135050)
|
# own mozilla plugin dir (#135050)
|
||||||
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
|
||||||
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins-wrapped
|
||||||
|
|
||||||
# Install langpacks
|
# Install langpacks
|
||||||
%{__mkdir_p} $RPM_BUILD_ROOT%{mozappdir}/extensions
|
%{__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/compreg.dat
|
||||||
touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.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
|
%clean
|
||||||
@ -354,6 +384,7 @@ touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.dat
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
update-desktop-database %{_datadir}/applications
|
update-desktop-database %{_datadir}/applications
|
||||||
|
%{mozappdir}/%{plugin_config_binary} -i -f -q > /dev/null 2>&1
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
update-desktop-database %{_datadir}/applications
|
update-desktop-database %{_datadir}/applications
|
||||||
@ -365,9 +396,11 @@ if [ $1 -eq 0 ]; then
|
|||||||
%{__rm} -rf %{mozappdir}/extensions
|
%{__rm} -rf %{mozappdir}/extensions
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/firefox
|
%{_bindir}/firefox
|
||||||
|
%{_bindir}/firefox-plugin-config
|
||||||
%exclude %{_bindir}/firefox-config
|
%exclude %{_bindir}/firefox-config
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_datadir}/applications/mozilla-%{name}.desktop
|
%{_datadir}/applications/mozilla-%{name}.desktop
|
||||||
@ -402,6 +435,8 @@ fi
|
|||||||
%{mozappdir}/mozilla-xremote-client
|
%{mozappdir}/mozilla-xremote-client
|
||||||
%{mozappdir}/run-mozilla.sh
|
%{mozappdir}/run-mozilla.sh
|
||||||
%{mozappdir}/regxpcom
|
%{mozappdir}/regxpcom
|
||||||
|
%{mozappdir}/%{plugin_config_binary}
|
||||||
|
%{mozappdir}/plugin-config/*
|
||||||
# XXX See if these are needed still
|
# XXX See if these are needed still
|
||||||
%{mozappdir}/updater*
|
%{mozappdir}/updater*
|
||||||
|
|
||||||
@ -427,6 +462,9 @@ fi
|
|||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 23 2007 Martin Stransky <stransky@redhat.com> 2.0.0.5-3
|
||||||
|
- added nspluginwrapper support
|
||||||
|
|
||||||
* Wed Jul 18 2007 Kai Engert <kengert@redhat.com> - 2.0.0.5-2
|
* Wed Jul 18 2007 Kai Engert <kengert@redhat.com> - 2.0.0.5-2
|
||||||
- Update to 2.0.0.5
|
- Update to 2.0.0.5
|
||||||
|
|
||||||
|
1
sources
1
sources
@ -1,2 +1,3 @@
|
|||||||
5a6ca3e4ac3ebc335d473cd3f682a916 firefox-2.0.0.5-source.tar.bz2
|
5a6ca3e4ac3ebc335d473cd3f682a916 firefox-2.0.0.5-source.tar.bz2
|
||||||
0d24292fcd40f85b3ed64bb1ed2e006e firefox-langpacks-2.0.0.5-20070718.tar.bz2
|
0d24292fcd40f85b3ed64bb1ed2e006e firefox-langpacks-2.0.0.5-20070718.tar.bz2
|
||||||
|
92d71693f1d9d77c0a4d2fcc63de17b2 plugin-config-1.1.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user