%define _mozillapluginpath %{_libdir}/mozilla/plugins %define _mozillacomponentpath %{_libdir}/mozilla/plugins %define xulrunner_version %(rpm -q --whatprovides libxulrunner --queryformat %{VERSION}) %define snapshot %{nil} %define build_3264bit 0 %{?_with_3264bit: %{expand: %%global build_3264bit 1}} %{?_without_3264bit: %{expand: %%global build_3264bit 0}} %if %{build_3264bit} %define pkgext 32 %else %define pkgext %{nil} %endif Summary: A browser plugin to allow playing embedded movies on web pages Name: mplayerplugin%{pkgext} Version: 3.55 Release: %mkrel 5 License: GPLv2+ Group: Networking/WWW URL: http://mplayerplug-in.sourceforge.net Source0: http://heanet.dl.sourceforge.net/sourceforge/mplayerplug-in/mplayerplug-in-%{version}.tar.bz2 Patch0: mplayerplugin-3.01-mime.patch Patch1: mplayerplugin-3.50-32_64bit.patch Patch5: mplayerplug-in-3.55-types-nomidi.patch Patch6: mplayerplug-in-3.55-cvs20090908.patch BuildRequires: X11-devel BuildRequires: mozilla-firefox-devel BuildRequires: xulrunner-devel BuildRequires: gtk+2-devel Requires: mplayer%{pkgext} >= 1.0 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description Mplayerplug-in is a Netscape/Mozilla browser plugin to allow playing embedded movies on web pages. %prep %setup -qn mplayerplug-in-%{version} %patch0 -p1 -b .mime %if %{build_3264bit} %patch1 -p1 -b .32_64 %endif %patch5 -p1 -b .nomidi %patch6 -p1 -b .cvs %build autoreconf -fiv #(tpg) hack to include prtime.h and prtypes.h from nsrp4-devel export CFLAGS="%{optflags} -I/usr/include/nspr4" export CXXFLAGS=$CFLAGS %configure2_5x \ --enable-wmp \ --enable-qt \ --enable-gmp \ --enable-rm \ --enable-dvx \ --disable-rpath \ --disable-x \ --disable-gtk1 \ --enable-gtk2 \ --with-gecko-sdk="%{_libdir}/xulrunner-devel-%{xulrunner_version}" %make %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} \ %{buildroot}%{_sysconfdir} \ %{buildroot}%{_mozillapluginpath} \ %{buildroot}%{_mozillacomponentpath} cat > %{buildroot}%{_sysconfdir}/mplayerplug-in%{pkgext}.conf <