Name : mplayerplug-in Version : 2.70 Release : 1.FC1 License : GPL Summary : MPlayer Plugin for Netscape/Mozilla/Firefox Group : Browser/Plugin URL : http://mplayerplug-in.sourceforge.net/ Vendor : Kevin DeKorte Packager : Thomas Chung BuildRoot : %{_tmppath}/%{name}-%{version}-buildroot Source : %{name}-%{version}.tar.gz Requires : mozilla >= 1.4, mplayer > 0.90 BuildRequires : XFree86-devel >= 4.3.0, gtk2-devel >= 2.2.4, mozilla-devel >= 1.6 AutoReq : no AutoProv : no %description mplayerplug-in is a Mozilla/Firefox browser plugin to allow playing embedded movies on web pages. %prep rm -rf %{buildroot} ####################################################################### # setup macro # -a num : Only unpack source number after changing to the directory # -b num : Only unpack source number before changing to the directory # -c : Create directory before unpacking. # -D : Do not delete the directory before unpacking # -n name : Name the directory as name # -q : Run quiety with minimum output # -T : Disable the automatic unpacking of the archives. ####################################################################### %setup -n %{name} -q ############################################ # {_sourcedir} : /usr/src/redhat/SOURCES # {_builddir} : /usr/src/redhat/BUILD # {_tmppath} : /var/tmp # {_libdir} : /usr/lib # {_bindir} : /usr/bin # {_datadir} : /usr/share # {_mandir} : /usr/share/man # {_sysconfdir} : /etc # {buildroot} # {name} # {version} # {release} # rpm --showrc for more info ############################################# %build ./configure %{__make} %install %{__mkdir} -p %{buildroot}%{_libdir}/mozilla/{plugins,components} %{__mkdir} -p %{buildroot}%{_libdir}/firefox/{plugins,components} %{__mkdir} -p %{buildroot}%{_sysconfdir} install -m755 mplayerplug-in.so %{buildroot}%{_libdir}/mozilla/plugins install -m755 mplayerplug-in.so %{buildroot}%{_libdir}/firefox/plugins install -m755 mplayerplug-in.xpt %{buildroot}%{_libdir}/mozilla/components install -m755 mplayerplug-in.xpt %{buildroot}%{_libdir}/firefox/components install -m644 mplayerplug-in.types %{buildroot}%{_sysconfdir} install -m644 mplayerplug-in.conf %{buildroot}%{_sysconfdir} %clean rm -rf %{buildroot} %files ########################################################### # defattr sets the default attributes for all files # config(noreplace) will save new config file as .rpmnew # config will save old config file as .rpmsave ########################################################### %defattr (-,root,root) %doc ChangeLog INSTALL README TODO %{_libdir}/mozilla/plugins/mplayerplug-in.so %{_libdir}/firefox/plugins/mplayerplug-in.so %{_libdir}/mozilla/components/mplayerplug-in.xpt %{_libdir}/firefox/components/mplayerplug-in.xpt %config(noreplace) %{_sysconfdir}/mplayerplug-in.conf %config(noreplace) %{_sysconfdir}/mplayerplug-in.types %changelog * Sun Oct 10 2004 Thomas Chung 2.70-1.FC1 - Disable MIMEType application/smil in plugin-setup.cpp * Sun Sep 26 2004 Thomas Chung 2.70-0.FC1 - Rebuild for Fedora Core 1 - Add Plugin for Firefox - See /usr/share/doc/mplayerplug-in-2.70/ChangeLog