1 %define name mozplugger 2 %define version 2.1.5 3 %define release 1 4 5 Summary: A generic mozilla plug-in 6 Name: %{name} 7 Version: %{version} 8 Release: %{release} 9 Source0: http://mozdev.mirrors.nyphp.org/mozplugger/%{name}-%{version}.tar.gz 10 Patch0: Makefile.patch 11 License: GPL 12 Group: Networking/WWW 13 BuildRoot: %{_tmppath}/%{name}-buildroot 14 Requires: m4 15 URL: http://mozplugger.mozdev.org/ 16 17 %description 18 MozPlugger is a generic Mozilla plug-in that allows the use of standard Linux 19 programs as plug-ins for media types on the Internet. 20 21 %pre 22 %ifarch x86_64 23 if [ ! -d /usr/lib64/mozilla ]; then 24 ln -s /usr/lib64/mozilla-* /usr/lib/mozilla 25 fi 26 %else 27 if [ ! -d /usr/lib/mozilla ]; then 28 ln -s /usr/lib/mozilla-* /usr/lib/mozilla 29 fi 30 %endif 31 32 %prep 33 %setup -q 34 %patch0 -p1 35 36 %build 37 make linux 38 39 %install 40 make install root=$RPM_BUILD_ROOT 41 42 %clean 43 rm -rf %{buildroot} 44 45 %files 46 %defattr(-,root,root) 47 %config /etc/mozpluggerrc 48 %{_bindir}/* 49 %ifarch x86_64 50 /usr/lib64/mozilla/plugins/mozplugger.so 51 %else 52 /usr/lib/mozilla/plugins/mozplugger.so 53 %endif 54 %{_mandir}/man7/mozplugger.7* 55 56 %changelog 57 * Mon Feb 20 2006 William Bell <w.bell@physics.gla.ac.uk> 58 - Modified to allow 64bit version to be built. 59 * Mon Dec 20 2004 Louis Bavoil <bavoil@sci.utah.edu> 60 - removed dependency with Mozilla. 61 * Mon Feb 2 2004 MATSUURA Takanori <t-matsuu@estyle.ne.jp> 62 - rebuilt from spec file in mozplugger-1.5.0.tar.gz 63 - mozpluggerrc is packed as config file. 64 - added URL to spec file 65 # end of file