1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
%def_disable package_dirs Name: xbrowser-plugins-common Version: 3.1 Release: alt1 Group: System/Base Summary: Netscape Gecko Plug-in API common files License: GPL Provides: browser-plugins-npapi = %version-%release #Obsoletes: browser-plugins-npapi-devel < %version-%release Source: nil %description This package contains directories for storage of plug-ins for NPAPI(Netscape Gecko Plug-in API) compatible browsers. %package -n rpm-build-browser-plugins Summary: Netscape Gecko Plug-in API common packaging files Group: Development/Other %if_enabled package_dirs Requires: %name = %version-%release %endif Provides: rpm-macros-browser-plugins = %version-%release Obsoletes: rpm-macros-browser-plugins < %version-%release Provides: browser-plugins-npapi-devel = %version-%release #Obsoletes: browser-plugins-npapi-devel < %version-%release %description -n rpm-build-browser-plugins This package contains rpm macroses to package NPAPI plugins. %prep %setup -Tc %build %install mkdir -p %buildroot/%_libdir/browser-plugins mkdir -p %buildroot/%_libdir/browser-plugins-npapi mkdir -p %buildroot/%_libdir/mozilla/plugins mkdir -p %buildroot/%_sysconfdir/rpm/macros.d mkdir -p %buildroot/%_rpmlibdir cat >%buildroot/%_sysconfdir/rpm/macros.d/browser-plugins <<__EOF__ %%__xbpc_browser_plugins_api_name_internal %{?browser_plugins_api:%browser_plugins_api}%{!?browser_plugins_api:npapi} %%browser_plugins_path_old %%_libdir/browser-plugins-%%__xbpc_browser_plugins_api_name_internal %%browser_plugins_path %%_libdir/browser-plugins __EOF__ cat >%buildroot/%_rpmlibdir/browser-plugins.req.list <<__EOF__ /usr/lib/browser-plugins %name /usr/lib64/browser-plugins %name __EOF__ %if_enabled package_dirs %files %dir %_libdir/mozilla %dir %_libdir/mozilla/plugins %dir %_libdir/browser-plugins %dir %_libdir/browser-plugins-npapi %endif %files -n rpm-build-browser-plugins %_sysconfdir/rpm/macros.d/browser-plugins %if_enabled package_dirs %_rpmlibdir/browser-plugins.req.list %endif %changelog * Mon Oct 12 2009 Sergey V Turchin <zerg@altlinux.org> 3.1-alt1 - don't package directories * Mon Oct 12 2009 Sergey V Turchin <zerg@altlinux.org> 3.0-alt1 - add browser-plugins.req.list * Thu Oct 01 2009 Sergey V Turchin <zerg@altlinux.org> 2.4-alt1 - add %_libdir/mozilla; thanks shrek@alt * Tue Sep 29 2009 Sergey V Turchin <zerg@altlinux.org> 2.3-alt1 - add %%browser_plugins_path_old * Tue Sep 29 2009 Sergey V Turchin <zerg@altlinux.org> 2.2-alt1 - small rename package * Mon Sep 28 2009 Sergey V Turchin <zerg@altlinux.org> 2.1-alt1 - simplify macroses * Mon Sep 28 2009 Sergey V Turchin <zerg@altlinux.org> 2.0-alt1 - initial release