X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbrowser-plugins.git;a=blobdiff_plain;f=browser-plugins.README;h=d1ed40086f58797f817fed24df327143f3b72b12;hp=5dc88c498b0298e15ea9bb5ca5f8b2d007bb4b04;hb=947bf7dcf7b24d8f16e47c1d1e16663a5b032269;hpb=22f27ac86777b4e083129bae0b3fb8a51d1d07cb diff --git a/browser-plugins.README b/browser-plugins.README index 5dc88c4..d1ed400 100644 --- a/browser-plugins.README +++ b/browser-plugins.README @@ -1,27 +1,63 @@ -New browser-plugins +browser-plugins 2.0 for PLD Linux + +Author: Elan Ruusamäe +Author: Patryk Zawadzki Technical implementation ~~~~~~~~~~~~~~~~~~~~~~~~ -browser-plugins(%{_target_base_arch}) provides: +filesystem provides: +- %dir %{_plugindir} +%{_plugindir} expands to %{_libdir}/browser-plugins + +browser-plugins provides: - %dir /etc/browser-plugins +- %dir /etc/browser-plugins/browser.d +- %dir /etc/browser-plugins/blacklist.d - %{_sbindir}/update-browser-plugins script The script will parse /etc/browser-plugins/*.blacklist and delete dead and add new symlinks to browser specific plugin directories. -update-browser-plugins script knows about browsers. it has hardcoded list of -browser plugin directories. +The list of browser plugin directories is taken by reading existing symlinks +matching glob: /etc/browser-plugins/browser.d/.%{_target_base_arch} + +The update script will scan /usr/lib/browser-plugins and +/usr/lib64/browser-plugins dir for existing plugins as browser-plugins itself +is noarch package. -plugin provides -- %config(noreplace) /etc/browser-plugins/--%{_target_base_arch}.blacklist +browser-plugins requires: +- filesystem >= EVR +the EVR is package version including %{_libdir}/browser-plugins directory. + +plugin provides: +- %config(noreplace) /etc/browser-plugins/blacklist.d/-.%{_target_base_arch}.blacklist The blacklist contains shell globs of filenames to be excluded from linking to browser specific plugin directory. The shell globs are base of %{_plugindir}, -subdirectories are allowed. +subdirectories are allowed. Comments and empty lines are ignored. + - %post/%postun scriptlet the scriptlet will call %update_browser_plugins -browser provides +plugin requires: +- BuildRequires: rpmbuild(macros) >= VERSION +- Requires: browser-plugins >= 2.0 + +browser provides: - /etc/browser-plugins/browser.d/.%{_target_base_arch} symlink the symlink will point to the single directory where it searches for its plugins. + - %post/%postun scriptlet the scriptlet will call %update_browser_plugins + +browser requires: +- BuildRequires: rpmbuild(macros) >= VERSION +- Requires: browser-plugins >= 2.0 + +rpm-build-macros provides: +- %update_browser_plugins macro +the macro will just call /usr/sbin/update-browser-plugins and ignore any errors from it. +- %{_browser_plugindir} macro +the macro will be defined as /usr/%{_lib}/browser-plugins + +adapter provides: +- replacement for sole location of browser-plugins with %{_browser_plugindir} macro