2011-03-05 19:41:13 -08:00
|
|
|
%define name nspluginwrapper
|
2011-03-05 19:15:22 -08:00
|
|
|
%define version 0.9.91.5
|
2011-03-05 19:41:13 -08:00
|
|
|
%define release 1
|
2011-03-05 19:15:22 -08:00
|
|
|
#define svndate 20070826
|
2011-03-05 19:41:13 -08:00
|
|
|
|
|
|
|
# define 32-bit arch of multiarch platforms
|
|
|
|
%define arch_32 %{nil}
|
|
|
|
%ifarch x86_64
|
|
|
|
%define arch_32 i386
|
|
|
|
%endif
|
|
|
|
%ifarch ppc64
|
|
|
|
%define arch_32 ppc
|
|
|
|
%endif
|
|
|
|
%ifarch sparc64
|
|
|
|
%define arch_32 sparc
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# define target architecture of plugins we want to support
|
|
|
|
%define target_arch i386
|
|
|
|
|
|
|
|
# define target operating system of plugins we want to support
|
|
|
|
%define target_os linux
|
|
|
|
|
|
|
|
# define nspluginswrapper libdir (invariant, including libdir)
|
|
|
|
%define pkglibdir %{_prefix}/lib/%{name}
|
|
|
|
|
|
|
|
# define mozilla plugin dir
|
|
|
|
%define plugindir %{_libdir}/mozilla/plugins
|
|
|
|
|
|
|
|
# define to build a biarch package
|
2011-03-05 19:13:51 -08:00
|
|
|
# NOTE: biarch builds require a "multilib" capable compiler, which
|
|
|
|
# should be the default on decent Linux distributions
|
2011-03-05 19:41:13 -08:00
|
|
|
%define build_biarch 0
|
|
|
|
%if "%{_arch}:%{arch_32}" == "x86_64:i386"
|
|
|
|
%define build_biarch 1
|
|
|
|
%endif
|
|
|
|
%{expand: %{?_with_biarch: %%global build_biarch 1}}
|
|
|
|
%{expand: %{?_without_biarch: %%global build_biarch 0}}
|
|
|
|
|
2011-03-05 19:13:51 -08:00
|
|
|
# define to build a Linux package suitable for other OS (e.g. NetBSD)
|
|
|
|
# NOTE: this option is *not* needed on Linux usually. However, if you
|
|
|
|
# need this package to be used verbatim on *BSD systems, you have to
|
|
|
|
# define this option for your Linux build
|
|
|
|
%define build_generic 0
|
|
|
|
%{expand: %{?_with_generic: %%global build_generic 1}}
|
|
|
|
%{expand: %{?_without_generic: %%global build_generic 0}}
|
|
|
|
|
2011-03-05 19:41:13 -08:00
|
|
|
Summary: A compatibility layer for Netscape 4 plugins
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
|
|
|
Source0: %{name}-%{version}%{?svndate:-%{svndate}}.tar.bz2
|
|
|
|
License: GPL
|
|
|
|
Group: Networking/WWW
|
|
|
|
Url: http://gwenole.beauchesne.info/projects/nspluginwrapper/
|
2011-03-05 19:15:22 -08:00
|
|
|
BuildRequires: gtk2-devel
|
2011-03-05 19:41:13 -08:00
|
|
|
Provides: %{name}-%{_arch} = %{version}-%{release}
|
|
|
|
Requires: %{name}-%{target_arch} = %{version}-%{release}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
|
|
|
|
|
%description
|
|
|
|
nspluginwrapper makes it possible to use Netscape 4 compatible plugins
|
|
|
|
compiled for %{target_arch} into Mozilla for another architecture, e.g. x86_64.
|
|
|
|
|
|
|
|
This package consists in:
|
|
|
|
* npviewer: the plugin viewer
|
|
|
|
* npwrapper.so: the browser-side plugin
|
|
|
|
* nspluginwrapper: a tool to manage plugins installation and update
|
|
|
|
|
|
|
|
%if %{build_biarch}
|
|
|
|
%package %{target_arch}
|
|
|
|
Summary: A viewer for %{target_arch} compiled Netscape 4 plugins
|
|
|
|
Group: Networking/WWW
|
2011-03-05 19:13:51 -08:00
|
|
|
%if "%{target_arch}" == "i386"
|
|
|
|
Requires: %{_bindir}/linux32
|
|
|
|
%endif
|
2011-03-05 19:41:13 -08:00
|
|
|
|
|
|
|
%description %{target_arch}
|
|
|
|
nspluginwrapper makes it possible to use Netscape 4 compatible plugins
|
|
|
|
compiled for %{target_arch} into Mozilla for another architecture, e.g. x86_64.
|
|
|
|
|
|
|
|
This package consists in:
|
|
|
|
* npviewer: the plugin viewer
|
|
|
|
* npwrapper.so: the browser-side plugin
|
|
|
|
* nspluginwrapper: a tool to manage plugins installation and update
|
|
|
|
|
|
|
|
This package provides the npviewer program for %{target_arch}.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if %{build_biarch}
|
|
|
|
biarch="--with-biarch"
|
|
|
|
%else
|
|
|
|
biarch="--without-biarch"
|
|
|
|
%endif
|
2011-03-05 19:13:51 -08:00
|
|
|
%if %{build_generic}
|
|
|
|
generic_build="--generic-build"
|
|
|
|
%endif
|
2011-03-05 19:41:13 -08:00
|
|
|
mkdir objs
|
|
|
|
pushd objs
|
2011-03-05 19:13:51 -08:00
|
|
|
../configure --prefix=%{_prefix} $biarch $generic_build
|
2011-03-05 19:41:13 -08:00
|
|
|
make
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make -C objs install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{plugindir}
|
|
|
|
ln -s %{pkglibdir}/%{_arch}/%{_os}/npwrapper.so $RPM_BUILD_ROOT%{plugindir}/npwrapper.so
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 = 1 ]; then
|
|
|
|
%{_bindir}/%{name} -v -a -i
|
|
|
|
else
|
|
|
|
%{_bindir}/%{name} -v -a -u
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
%{_bindir}/%{name} -v -a -r
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README COPYING NEWS
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{plugindir}/npwrapper.so
|
|
|
|
%dir %{pkglibdir}
|
|
|
|
%dir %{pkglibdir}/noarch
|
|
|
|
%{pkglibdir}/noarch/npviewer
|
|
|
|
%{pkglibdir}/noarch/mkruntime
|
|
|
|
%dir %{pkglibdir}/%{_arch}
|
|
|
|
%dir %{pkglibdir}/%{_arch}/%{_os}
|
|
|
|
%{pkglibdir}/%{_arch}/%{_os}/npconfig
|
|
|
|
%if ! %{build_biarch}
|
|
|
|
%{pkglibdir}/%{_arch}/%{_os}/npviewer
|
|
|
|
%{pkglibdir}/%{_arch}/%{_os}/npviewer.bin
|
|
|
|
%{pkglibdir}/%{_arch}/%{_os}/libxpcom.so
|
|
|
|
%endif
|
|
|
|
%{pkglibdir}/%{_arch}/%{_os}/npwrapper.so
|
|
|
|
|
|
|
|
%if %{build_biarch}
|
|
|
|
%files %{target_arch}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{pkglibdir}/%{target_arch}
|
|
|
|
%dir %{pkglibdir}/%{target_arch}/%{target_os}
|
|
|
|
%{pkglibdir}/%{target_arch}/%{target_os}/npviewer
|
|
|
|
%{pkglibdir}/%{target_arch}/%{target_os}/npviewer.bin
|
|
|
|
%{pkglibdir}/%{target_arch}/%{target_os}/libxpcom.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2011-03-05 19:15:22 -08:00
|
|
|
* Sun Aug 26 2007 Gwenole Beauchesne <gb.public@free.fr> 0.9.91.5-1
|
|
|
|
- fix a memory leak in NPP_Destroy()
|
|
|
|
- fix DiamondX XEmbed example plugin
|
|
|
|
- fix focus problems (debian bug #435912)
|
|
|
|
- add support for 64-bit plugins (Martin Stransky)
|
|
|
|
- add support for newer NPAPI 0.17 functions and variables
|
|
|
|
- add support for broken 64-bit Konqueror versions (run-time detect)
|
|
|
|
|
2011-03-05 19:13:51 -08:00
|
|
|
* Mon Apr 2 2007 Gwenole Beauchesne <gb.public@free.fr> 0.9.91.4-1
|
|
|
|
- use anonymous sockets by default
|
|
|
|
- don't try to wrap native plugins
|
|
|
|
- require linux32 for nspluginwrapper-i386
|
|
|
|
- fix build on systems with SSP enabled by default
|
|
|
|
|
2011-03-05 19:12:48 -08:00
|
|
|
* Sun Mar 4 2007 Gwenole Beauchesne <gb.public@free.fr> 0.9.91.3-1
|
|
|
|
- fix printing with EMBED plugins
|
|
|
|
- fix build on Debian systems (Rob Andrews)
|
|
|
|
- use sound wrappers whenever possible on Linux (Flash Player 9)
|
|
|
|
- don't wait for dying processes (i.e. avoid hangs on NP_Shutdown)
|
|
|
|
|
2011-03-05 19:41:58 -08:00
|
|
|
* Fri Dec 29 2006 Gwenole Beauchesne <gb.public@free.fr> 0.9.91.2-1
|
|
|
|
- fix some rare RPC synchronisation issues (flashearth.com)
|
|
|
|
- fix hangs when the plugin exits unexpectedly (e.g. a crash)
|
|
|
|
|
2011-03-05 19:41:13 -08:00
|
|
|
* Tue Dec 26 2006 Gwenole Beauchesne <gb.public@free.fr> 0.9.91.1-1
|
|
|
|
- fix NPRuntime bridge (VLC plugin)
|
|
|
|
- fix Mozilla plugins dir creation on NetBSD and FreeBSD hosts
|
|
|
|
- fix potential buffer overflow in RPC marshalers
|
|
|
|
- handle empty args for plugin creation (flasharcade.com)
|
|
|
|
|
|
|
|
* Thu Dec 21 2006 Gwenole Beauchesne <gb.public@free.fr> 0.9.91-1
|
|
|
|
- add scripting support through npruntime
|
|
|
|
- add XEMBED support (mplayer plug-in)
|
|
|
|
- add NPN_RequestRead() support (Acrobat Reader)
|
|
|
|
- add support for NetBSD, FreeBSD and non-x86 Linux hosts
|
|
|
|
- fix ppc64 / ppc32 support
|
|
|
|
- fix focus problems
|
|
|
|
- fix some rare hangs (add delayed requests)
|
|
|
|
- fix libstdc++2 compat glue for broken plugins
|
|
|
|
- create user mozilla plugins dir if it does not exist yet
|
|
|
|
|
|
|
|
* Wed Nov 18 2006 Gwenole Beauchesne <gb.public@free.fr> 0.9.90.4-1
|
|
|
|
- add printing support (NPP_Print)
|
|
|
|
- add initial support for Konqueror
|
|
|
|
- fix post data to a URL (NPN_PostURL, NPN_PostURLNotify)
|
|
|
|
- reduce plugin load times
|
|
|
|
- robustify error condition (Darryl L. Miles)
|
|
|
|
|
|
|
|
* Tue Sep 19 2006 Gwenole Beauchesne <gb.public@free.fr> 0.9.90.3-1
|
|
|
|
- fix acrobat reader 7 plugin
|
|
|
|
|
|
|
|
* Sun Sep 17 2006 Gwenole Beauchesne <gb.public@free.fr> 0.9.90.2-1
|
|
|
|
- use a bidirectional communication channel
|
|
|
|
|
|
|
|
* Sun Jun 4 2006 Gwenole Beauchesne <gb.public@free.fr> 0.9.90.1-1
|
|
|
|
- relicense under GPL
|
|
|
|
- don't use QEMU on IA-64
|
|
|
|
- handle SuSE Linux Mozilla paths
|
|
|
|
- portability fixes to non-Linux platforms
|
|
|
|
|
|
|
|
* Tue Oct 25 2005 Gwenole Beauchesne <gb.public@free.fr> 0.9.90-1
|
|
|
|
- first public beta version
|