SPECS: swfdec.spec - use browser plugins, rel 2

glen glen at pld-linux.org
Fri May 5 01:33:41 CEST 2006

Author: glen                         Date: Thu May  4 23:33:41 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use browser plugins, rel 2

---- Files affected:
   swfdec.spec (1.40 -> 1.41) 

---- Diffs:

Index: SPECS/swfdec.spec
diff -u SPECS/swfdec.spec:1.40 SPECS/swfdec.spec:1.41
--- SPECS/swfdec.spec:1.40	Thu May  4 23:41:19 2006
+++ SPECS/swfdec.spec	Fri May  5 01:33:36 2006
@@ -9,7 +9,7 @@
 Summary(pl):	Biblioteka renderująca animacje flash
 Name:		swfdec
 Version:	0.3.6
-Release:	1
+Release:	2
 License:	GPL
 Group:		Libraries
 Source0:	http://www.schleef.org/swfdec/download/%{name}-%{version}.tar.gz
@@ -37,6 +37,7 @@
 %if %{with gimp}
 %define		gimpplugindir	%(gimptool --gimpplugindir 2>/dev/null)/plug-ins
+%define		_plugindir	%{_libdir}/browser-plugins
 Libswfdec is a library for rendering Flash animations. Currently it
@@ -91,17 +92,32 @@
 %description -n gimp-plugin-%{name} -l pl
 Filtr wczytujący pliki SWF dla GIMP-a.
-%package -n mozilla-plugin-%{name}
-Summary:	Mozilla plugin for Flash rendering
-Summary(pl):	Wtyczka mozilli wuświetlająca animacje flash
+%package -n browser-plugin-%{name}
+Summary:	Browser plugin for Flash rendering
+Summary(pl):	Wtyczka przeglądarki wyświetlająca animacje Flash
 Group:		X11/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	browser-plugins(%{_target_base_arch})
+Obsoletes:	mozilla-plugin-%{name}
-%description -n mozilla-plugin-%{name}
-Mozilla plugin for rendering of Flash animations based on swfdec library.
+# use macro, otherwise extra LF inserted along with the ifarch
+%ifarch %{ix86} ppc sparc sparc64
+%define	browsers mozilla, mozilla-firefox, seamonkey, opera, konqueror
+%define	browsers mozilla, mozilla-firefox, seamonkey, konqueror
+%description -n browser-plugin-%{name}
+Browser plugin for rendering of Flash animations based on swfdec
+Supported browsers: %{browsers}.
+%description -n browser-plugin-%{name} -l pl
+Wtyczka przeglądarki wyświetlająca animacje Flash oparta na bibliotece
-%description -n mozilla-plugin-%{name} -l pl
-Wtyczka mozilli wyświetlająca animacje flash bazująca na bibliotece swfdec.
+Obsługiwane przeglądarki: %{browsers}.
 %setup -q
@@ -124,10 +140,11 @@
 %{__make} install \
+	plugindir=%{_plugindir} \
 	gimpdir=%{gimpplugindir} \
-rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*.{a,la} \
+rm -f $RPM_BUILD_ROOT%{_plugindir}/*.{a,la} \
@@ -136,6 +153,43 @@
 %post	-p /sbin/ldconfig
 %postun	-p /sbin/ldconfig
+%triggerin -n browser-plugin-%{name} -- mozilla-firefox
+%nsplugin_install -d %{_libdir}/mozilla-firefox/plugins libswfdecmozilla.so
+%triggerun -n browser-plugin-%{name} -- mozilla-firefox
+%nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins libswfdecmozilla.so
+%triggerin -n browser-plugin-%{name} -- mozilla
+%nsplugin_install -d %{_libdir}/mozilla/plugins libswfdecmozilla.so
+%triggerun -n browser-plugin-%{name} -- mozilla
+%nsplugin_uninstall -d %{_libdir}/mozilla/plugins libswfdecmozilla.so
+%ifarch %{ix86} ppc sparc sparc64
+%triggerin -n browser-plugin-%{name} -- opera
+%nsplugin_install -d %{_libdir}/opera/plugins libswfdecmozilla.so
+%triggerun -n browser-plugin-%{name} -- opera
+%nsplugin_uninstall -d %{_libdir}/opera/plugins libswfdecmozilla.so
+%triggerin -n browser-plugin-%{name} -- konqueror
+%nsplugin_install -d %{_libdir}/kde3/plugins/konqueror libswfdecmozilla.so
+%triggerun -n browser-plugin-%{name} -- konqueror
+%nsplugin_uninstall -d %{_libdir}/kde3/plugins/konqueror libswfdecmozilla.so
+%triggerin -n browser-plugin-%{name} -- seamonkey
+%nsplugin_install -d %{_libdir}/seamonkey/plugins libswfdecmozilla.so
+%triggerun -n browser-plugin-%{name} -- seamonkey
+%nsplugin_uninstall -d %{_libdir}/seamonkey/plugins libswfdecmozilla.so
+# as rpm removes the old obsoleted package files after the triggers
+# above are ran, add another trigger to make the links there.
+%triggerpostun -- mozilla-plugin-swfdec
+%nsplugin_install -f -d %{_libdir}/mozilla/plugins libswfdecmozilla.so
@@ -163,9 +217,9 @@
 %attr(755,root,root) %{gimpplugindir}/swf
-%files -n mozilla-plugin-%{name}
+%files -n browser-plugin-%{name}
-%attr(755,root,root) %{_libdir}/mozilla/plugins/libswfdecmozilla.so
+%attr(755,root,root) %{_plugindir}/libswfdecmozilla.so
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -173,6 +227,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
+Revision 1.41  2006/05/04 23:33:36  glen
+- use browser plugins, rel 2
 Revision 1.40  2006/05/04 21:41:19  glen
 - 2>/dev/null macro parsing

---- CVS-web:

More information about the pld-cvs-commit mailing list