]>
Commit | Line | Data |
---|---|---|
ac828673 ER |
1 | New browser-plugins |
2 | ||
22f27ac8 ER |
3 | Technical implementation |
4 | ~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 | ||
7c305dcd | 6 | filesystem provides |
90e18e58 ER |
7 | - %dir %{_plugindir} |
8 | %{_plugindir} expands to %{_libdir}/browser-plugins | |
9 | ||
7c305dcd ER |
10 | browser-plugins provides: |
11 | - %dir /etc/browser-plugins | |
12 | - %dir /etc/browser-plugins/browser.d | |
13 | - %dir /etc/browser-plugins/blacklist.d | |
22f27ac8 ER |
14 | - %{_sbindir}/update-browser-plugins script |
15 | The script will parse /etc/browser-plugins/*.blacklist and delete dead and add | |
16 | new symlinks to browser specific plugin directories. | |
17 | ||
90e18e58 ER |
18 | The list of browser plugin directories is taken by reading existing symlinks |
19 | matching glob: /etc/browser-plugins/browser.d/<browser>.%{_target_base_arch} | |
22f27ac8 | 20 | |
7c305dcd ER |
21 | The update script will scan /usr/lib/browser-plugins and |
22 | /usr/lib64/browser-plugins dir for existing plugins as browser-plugins itself | |
23 | is noarch package. | |
24 | ||
22f27ac8 | 25 | plugin provides |
7c305dcd | 26 | - %config(noreplace) /etc/browser-plugins/blacklist.d/<plugin>-<browser>-%{_target_base_arch}.blacklist |
22f27ac8 ER |
27 | The blacklist contains shell globs of filenames to be excluded from linking to |
28 | browser specific plugin directory. The shell globs are base of %{_plugindir}, | |
90e18e58 ER |
29 | subdirectories are allowed. Comments and empty lines are ignored. |
30 | ||
22f27ac8 ER |
31 | - %post/%postun scriptlet |
32 | the scriptlet will call %update_browser_plugins | |
33 | ||
ffed8261 ER |
34 | plugin requires |
35 | - BuildRequires: rpmbuild(macros) >= VERSION | |
36 | - Requires: browser-plugins >= 2.0 | |
37 | ||
22f27ac8 ER |
38 | browser provides |
39 | - /etc/browser-plugins/browser.d/<browser>.%{_target_base_arch} symlink | |
40 | the symlink will point to the single directory where it searches for its plugins. | |
90e18e58 | 41 | |
22f27ac8 ER |
42 | - %post/%postun scriptlet |
43 | the scriptlet will call %update_browser_plugins | |
ffed8261 ER |
44 | |
45 | browser requires | |
46 | - BuildRequires: rpmbuild(macros) >= VERSION | |
47 | - Requires: browser-plugins >= 2.0 | |
48 | ||
49 | rpm-build-macros provides | |
50 | - %update_browser_plugins macro | |
51 | the macro will just call /usr/sbin/update-browser-plugins and ignore any errors from it. | |
52 | - %{_browser_plugindir} macro | |
53 | the macro will be defined as /usr/%{_lib}/browser-plugins | |
54 | ||
55 | adapter provides | |
56 | - replacement for sole location of browser-plugins with %{_browser_plugindir} macro |