SPECS: template-browser-plugin.spec (NEW) - template for plugins, ...
glen
glen at pld-linux.org
Thu Jun 23 13:20:05 CEST 2005
Author: glen Date: Thu Jun 23 11:20:05 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- template for plugins, work in progress
---- Files affected:
SPECS:
template-browser-plugin.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/template-browser-plugin.spec
diff -u /dev/null SPECS/template-browser-plugin.spec:1.1
--- /dev/null Thu Jun 23 13:20:05 2005
+++ SPECS/template-browser-plugin.spec Thu Jun 23 13:20:00 2005
@@ -0,0 +1,81 @@
+# $Revision$, $Date$
+#
+# NOTE: using symlinks will not have rpm file conflicts verification,
+# but that's okay since most of the plugins are cross browser, so you
+# won't be having any regular files in browser specific plugin dir.
+#
+Summary: Template for browser plugins
+Name: template-browser-plugin
+Version: 0.1
+Release: 0.1
+License: GPL
+Group: Development
+# TODO
+BuildRequires: rpmbuild(macros) >= 1.223
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# directory where you store the plugin
+%define _plugindir %{_libdir}/browser-plugins
+
+%description
+This spec is for demonstrating triggers used for linking package
+plugins to all browsers plugins dir capable for NSAPI plugins
+
+See also browser-plugins.spec
+
+%prep
+%setup -q -c -T
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_plugindir}
+
+cat >> $RPM_BUILD_ROOT%{_plugindir}/%{name}.so <<EOF
+# dummy plugin
+EOF
+cat >> $RPM_BUILD_ROOT%{_plugindir}/%{name}.xpi <<EOF
+# Second plugin file.
+EOF
+
+%triggerin -- mozilla-firefox
+%ns_plugin_install -d %{_libdir}/mozilla-firefox/plugins %{name}.so %{name}.xpi
+
+%triggerun -- mozilla-firefox
+%ns_plugin_uninstall -d %{_libdir}/mozilla-firefox/plugins %{name}.so %{name}.xpi
+
+%triggerin -- mozilla
+%ns_plugin_install -d %{_libdir}/mozilla/plugins %{name}.so %{name}.xpi
+
+%triggerun -- mozilla
+%ns_plugin_uninstall -d %{_libdir}/mozilla/plugins %{name}.so %{name}.xpi
+
+%triggerin -- opera
+%ns_plugin_install -d %{_libdir}/opera/plugins %{name}.so %{name}.xpi
+
+%triggerun -- opera
+%ns_plugin_uninstall -d %{_libdir}/opera/plugins %{name}.so %{name}.xpi
+
+%triggerin -- konqueror
+%ns_plugin_install -d %{_libdir}/kde3/plugins/konqueror %{name}.so %{name}.xpi
+
+%triggerun -- konqueror
+%ns_plugin_uninstall -d %{_libdir}/kde3/plugins/konqueror %{name}.so %{name}.xpi
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_plugindir}/*.so
+%{_plugindir}/*.xpi
+
+%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.1 2005/06/23 11:20:00 glen
+- template for plugins, work in progress
+
================================================================
More information about the pld-cvs-commit
mailing list