1 browser-plugins 2.0 for PLD Linux
3 Author: Elan Ruusamäe <glen@pld-linux.org>
4 Author: Patryk Zawadzki <patrys@pld-linux.org>
6 Technical implementation
7 ~~~~~~~~~~~~~~~~~~~~~~~~
11 %{_plugindir} expands to %{_libdir}/browser-plugins
13 browser-plugins provides:
14 - %dir /etc/browser-plugins
15 - %dir /etc/browser-plugins/browser.d
16 - %dir /etc/browser-plugins/blacklist.d
17 - %{_sbindir}/update-browser-plugins script
18 The script will parse /etc/browser-plugins/*.blacklist and delete dead and add
19 new symlinks to browser specific plugin directories.
21 The list of browser plugin directories is taken by reading existing symlinks
22 matching glob: /etc/browser-plugins/browser.d/<browser>.%{_target_base_arch}
24 The update script will scan /usr/lib/browser-plugins and
25 /usr/lib64/browser-plugins dir for existing plugins as browser-plugins itself
28 browser-plugins requires:
30 the EVR is package version including %{_libdir}/browser-plugins directory.
33 - %config(noreplace) /etc/browser-plugins/blacklist.d/<plugin>-<browser>.%{_target_base_arch}.blacklist
34 The blacklist contains shell globs of filenames to be excluded from linking to
35 browser specific plugin directory. The shell globs are base of %{_plugindir},
36 subdirectories are allowed. Comments and empty lines are ignored.
38 - %post/%postun scriptlet
39 the scriptlet will call %update_browser_plugins
42 - BuildRequires: rpmbuild(macros) >= VERSION
43 - Requires: browser-plugins >= 2.0
46 - /etc/browser-plugins/browser.d/<browser>.%{_target_base_arch} symlink
47 the symlink will point to the single directory where it searches for its plugins.
49 - %post/%postun scriptlet
50 the scriptlet will call %update_browser_plugins
53 - BuildRequires: rpmbuild(macros) >= VERSION
54 - Requires: browser-plugins >= 2.0
56 rpm-build-macros provides:
57 - %update_browser_plugins macro
58 the macro will just call /usr/sbin/update-browser-plugins and ignore any errors from it.
59 - %{_browser_plugindir} macro
60 the macro will be defined as /usr/%{_lib}/browser-plugins
63 - replacement for sole location of browser-plugins with %{_browser_plugindir} macro