SPECS: mplayerplug-in.spec - separate build and install for Opera ...

charles charles at pld-linux.org
Tue Feb 7 18:13:37 CET 2006


Author: charles                      Date: Tue Feb  7 17:13:37 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separate build and install for Opera (works only with X toolkit - limited features)
- added locales (required only by Gtk+2 toolkit)
- separated -common and -opera files, updates R,O
- rel. 2

---- Files affected:
SPECS:
   mplayerplug-in.spec (1.40 -> 1.41) 

---- Diffs:

================================================================
Index: SPECS/mplayerplug-in.spec
diff -u SPECS/mplayerplug-in.spec:1.40 SPECS/mplayerplug-in.spec:1.41
--- SPECS/mplayerplug-in.spec:1.40	Fri Dec  9 04:07:58 2005
+++ SPECS/mplayerplug-in.spec	Tue Feb  7 18:13:32 2006
@@ -3,11 +3,12 @@
 Summary(pl):	Osadzony odtwarzacz wideo dla Mozilli
 Name:		mplayerplug-in
 Version:	3.17
-Release:	1
+Release:	2
 License:	GPL
 Group:		X11/Applications/Multimedia
 Source0:	http://dl.sourceforge.net/mplayerplug-in/mplayerplug-in-%{version}.tar.gz
 # Source0-md5:	1d7b46707091ce4f81b03a36abc0603d
+Patch0:		%{name}-opera.patch
 URL:		http://mplayerplug-in.sourceforge.net/
 BuildRequires:	autoconf >= 2.57
 BuildRequires:	automake
@@ -17,8 +18,8 @@
 BuildRequires:	mozilla-devel
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.236
+Requires:	%{name}-common = %{version}-%{release}
 Requires:	browser-plugins(%{_target_cpu})
-Requires:	mplayer >= 1:1.0-0.pre5
 Obsoletes:	konqueror-plugin-mplayer
 Obsoletes:	mozilla-firefox-plugin-mplayer
 Obsoletes:	mozilla-plugin-mplayer
@@ -26,13 +27,7 @@
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_plugindir	%{_libdir}/browser-plugins
-
-# use macro, otherwise extra LF isinserted along with the ifarch
-%ifarch %{ix86} ppc sparc sparc64
-%define	browsers mozilla, mozilla-firefox, opera, konqueror
-%else
-%define	browsers mozilla, mozilla-firefox, konqueror
-%endif
+%define		browsers	mozilla, mozilla-firefox, konqueror
 
 %description
 mplayerplug-in is a browser plugin that uses mplayer to play videos
@@ -46,23 +41,70 @@
 
 Obsługiwane przeglądarki: %{browsers}.
 
+%package common
+Summary:	Common files for %{name}
+Summary(pl):	Wspólne pliki dla %{name}
+Group:		X11/Applications/Multimedia
+Requires:	mplayer >= 1:1.0-0.pre5
+
+%description common
+This package provides common files for %{name}.
+
+%description common -l pl
+Ten pakiet dostarcza wspólne pliki dla %{name}.
+
+%package opera
+Summary:	Embedded Video Player for Opera
+Summary(pl):	Osadzony odtwarzacz wideo dla Opery
+Group:		X11/Applications/Multimedia
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	opera
+Obsoletes:	opera-plugin-mplayer
+
+%description opera
+mplayerplug-in is a browser plugin that uses mplayer to play videos
+from websites. This plugin is adapted for Opera.
+
+%description opera -l pl
+mplayerplug-in jest wtyczką przeglądarki wykorzystującą mplayera do
+odtwarzania klipów filmowych ze stron WWW. Ten plugin jest
+dostosowany do Opery.
+
+
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
 %{__aclocal}
 %{__autoconf}
-%configure
+
+# for opera (works only with X toolkit)
+%configure \
+	--enable-x
+%{__make}
+mkdir -p opera
+mv -f *.so opera/
+
+# other (with no limited features)
+%configure \
+	--enable-gtk2
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_plugindir},%{_sysconfdir}/mplayer}
+install -d $RPM_BUILD_ROOT{%{_libdir}/opera/plugins,%{_plugindir},%{_sysconfdir}/mplayer}
+
+%{__make} install -C po \
+	DESTDIR=$RPM_BUILD_ROOT
 
 install *.so $RPM_BUILD_ROOT%{_plugindir}
+install opera/*.so $RPM_BUILD_ROOT%{_libdir}/opera/plugins
 install mplayerplug-in.conf $RPM_BUILD_ROOT%{_sysconfdir}
 install mplayerplug-in.types $RPM_BUILD_ROOT%{_sysconfdir}/mplayer
 
+%find_lang %{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -78,37 +120,38 @@
 %triggerun -- mozilla
 %nsplugin_uninstall -d %{_libdir}/mozilla/plugins %{name}.so %{name}-{gmp,qt,rm,wmp}.so
 
-%ifarch %{ix86} ppc sparc sparc64
-%triggerin -- opera
-%nsplugin_install -d %{_libdir}/opera/plugins %{name}.so %{name}-{gmp,qt,rm,wmp}.so
-
-%triggerun -- opera
-%nsplugin_uninstall -d %{_libdir}/opera/plugins %{name}.so %{name}-{gmp,qt,rm,wmp}.so
-%endif
-
 %triggerin -- konqueror
 %nsplugin_install -d %{_libdir}/kde3/plugins/konqueror %{name}.so %{name}-{gmp,qt,rm,wmp}.so
 
 %triggerun -- konqueror
 %nsplugin_uninstall -d %{_libdir}/kde3/plugins/konqueror %{name}.so %{name}-{gmp,qt,rm,wmp}.so
 
-%files
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_plugindir}/*.so
+
+%files common
 %defattr(644,root,root,755)
 %doc ChangeLog TODO README
-%attr(755,root,root) %{_plugindir}/%{name}.so
-%attr(755,root,root) %{_plugindir}/%{name}-gmp.so
-%attr(755,root,root) %{_plugindir}/%{name}-qt.so
-%attr(755,root,root) %{_plugindir}/%{name}-rm.so
-%attr(755,root,root) %{_plugindir}/%{name}-wmp.so
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mplayerplug-in.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mplayer/mplayerplug-in.types
 
+%files opera
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/opera/plugins/*.so
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.41  2006/02/07 17:13:32  charles
+- separate build and install for Opera (works only with X toolkit - limited features)
+- added locales (required only by Gtk+2 toolkit)
+- separated -common and -opera files, updates R,O
+- rel. 2
+
 Revision 1.40  2005/12/09 03:07:58  aredridel
 - up to 3.17
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mplayerplug-in.spec?r1=1.40&r2=1.41&f=u



More information about the pld-cvs-commit mailing list