1 # |
1 # |
2 # spec file for package MozillaFirefox-branding-openSUSE (Version 4.0) |
2 # spec file for package MozillaFirefox-branding-openSUSE |
3 # |
3 # |
4 # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. |
4 # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. |
5 # Copyright (c) 2008-2010 Wolfgang Rosenauer |
5 # Copyright (c) 2008-2011 Wolfgang Rosenauer |
6 # |
6 # |
7 # All modifications and additions to the file contributed by third parties |
7 # All modifications and additions to the file contributed by third parties |
8 # remain the property of their copyright owners, unless otherwise agreed |
8 # remain the property of their copyright owners, unless otherwise agreed |
9 # upon. The license for this file, and modifications and additions to the |
9 # upon. The license for this file, and modifications and additions to the |
10 # file, is the same license as for the pristine package itself (unless the |
10 # file, is the same license as for the pristine package itself (unless the |
16 # Please submit bugfixes or comments via http://bugs.opensuse.org/ |
16 # Please submit bugfixes or comments via http://bugs.opensuse.org/ |
17 # |
17 # |
18 |
18 |
19 # norootforbuild |
19 # norootforbuild |
20 |
20 |
21 BuildRequires: MozillaFirefox bc unzip zip gconf2-devel |
21 BuildRequires: MozillaFirefox bc unzip zip |
22 Name: MozillaFirefox-branding-openSUSE |
22 Name: MozillaFirefox-branding-openSUSE |
23 License: BSD3c(or similar) ; GPLv2+ |
23 License: BSD3c(or similar) ; GPLv2+ |
24 Version: 4.0 |
24 Version: 5.0 |
25 Release: 1 |
25 Release: 1 |
26 Summary: openSUSE branding of MozillaFirefox |
26 Summary: openSUSE branding of MozillaFirefox |
27 Group: Productivity/Networking/Web/Browsers |
27 Group: Productivity/Networking/Web/Browsers |
28 Source: susefox-20101026.tar.bz2 |
28 Source: susefox-20101026.tar.bz2 |
29 Source1: search-addons.tar.bz2 |
29 Source1: search-addons.tar.bz2 |
30 Source2: bookmarks.html.suse |
30 Source2: bookmarks.html.suse |
31 Source3: firefox-suse-default-prefs.js |
31 Source3: firefox-suse-default-prefs.js |
32 Source4: firefox.schemas |
32 Source4: firefox.schemas |
33 Source5: distribution.ini.in |
33 Source5: distribution.ini.in |
34 Source6: %{name}-COPYING |
34 Source6: %{name}-COPYING |
|
35 Source7: all-openSUSE.js |
35 Provides: MozillaFirefox-branding = %{version} |
36 Provides: MozillaFirefox-branding = %{version} |
36 PreReq: MozillaFirefox >= 3.5 |
37 PreReq: MozillaFirefox >= 4.99 |
37 Conflicts: otherproviders(MozillaFirefox-branding) |
38 Conflicts: otherproviders(MozillaFirefox-branding) |
38 Supplements: packageand(MozillaFirefox:branding-openSUSE) |
39 Supplements: packageand(MozillaFirefox:branding-openSUSE) |
39 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
40 BuildRoot: %{_tmppath}/%{name}-%{version}-build |
40 %define default_home_page http://www.opensuse.org/ |
41 %define default_home_page http://www.opensuse.org/ |
41 %define progdir %{_prefix}/%_lib/firefox |
42 %define progdir %{_prefix}/%_lib/firefox |
42 %define libgssapi libgssapi_krb5.so.2 |
43 %define libgssapi libgssapi_krb5.so.2 |
43 %define suseversion %(echo -e "scale=1\\n%{suse_version}/100" | bc 2>/dev/null) |
44 %define suseversion %(echo -e "scale=1\\n%{suse_version}/100" | bc 2>/dev/null) |
44 %define gconf_confdir %{_sysconfdir}/gconf |
45 #%define gconf_confdir %{_sysconfdir}/gconf |
45 %gconf_schemas_prereq |
46 #%gconf_schemas_prereq |
46 |
47 |
47 %description |
48 %description |
48 This package provides openSUSE Look and Feel for MozillaFirefox. |
49 This package provides openSUSE Look and Feel for MozillaFirefox. |
49 |
50 |
50 |
51 |
60 install -d $RPM_BUILD_ROOT%{progdir} |
61 install -d $RPM_BUILD_ROOT%{progdir} |
61 # custom bookmarks |
62 # custom bookmarks |
62 install -d $RPM_BUILD_ROOT%{progdir}/defaults/profile |
63 install -d $RPM_BUILD_ROOT%{progdir}/defaults/profile |
63 install -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{progdir}/defaults/profile/bookmarks.html |
64 install -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{progdir}/defaults/profile/bookmarks.html |
64 # apply SUSE defaults |
65 # apply SUSE defaults |
65 install -d $RPM_BUILD_ROOT%{progdir}/defaults/preferences |
66 install -d $RPM_BUILD_ROOT%{progdir}/defaults/pref |
66 sed -e 's,GSSAPI,%{libgssapi},g' \ |
67 sed -e 's,GSSAPI,%{libgssapi},g' \ |
67 %{SOURCE3} > suse-default-prefs |
68 %{SOURCE3} > suse-default-prefs |
68 install -m0644 suse-default-prefs $RPM_BUILD_ROOT%{progdir}/defaults/preferences/firefox-openSUSE.js |
69 install -m0644 suse-default-prefs $RPM_BUILD_ROOT%{progdir}/defaults/pref/firefox-openSUSE.js |
69 rm suse-default-prefs |
70 rm suse-default-prefs |
|
71 install -m0644 %{SOURCE7} $RPM_BUILD_ROOT%{progdir}/defaults/pref/ |
70 # distribution.ini |
72 # distribution.ini |
71 install -d $RPM_BUILD_ROOT%{progdir}/distribution |
73 install -d $RPM_BUILD_ROOT%{progdir}/distribution |
72 sed -e 's,%VERSION%,%{suseversion},g' \ |
74 sed -e 's,%VERSION%,%{suseversion},g' \ |
73 %{SOURCE5} > distribution.ini |
75 %{SOURCE5} > distribution.ini |
74 install -m 0644 distribution.ini $RPM_BUILD_ROOT%{progdir}/distribution/ |
76 install -m 0644 distribution.ini $RPM_BUILD_ROOT%{progdir}/distribution/ |
75 # search plugins |
77 # search plugins |
76 install -d $RPM_BUILD_ROOT%{progdir}/searchplugins |
78 install -d $RPM_BUILD_ROOT%{progdir}/searchplugins |
77 (cd $RPM_BUILD_ROOT%{progdir}/searchplugins ; tar xjf %{SOURCE1}) |
79 (cd $RPM_BUILD_ROOT%{progdir}/searchplugins ; tar xjf %{SOURCE1}) |
78 # SCHEMA file |
80 # SCHEMA file |
79 mkdir -p $RPM_BUILD_ROOT%{gconf_confdir}/schemas |
81 #mkdir -p $RPM_BUILD_ROOT%{gconf_confdir}/schemas |
80 install -m 644 %{SOURCE4} \ |
82 #install -m 644 %{SOURCE4} \ |
81 $RPM_BUILD_ROOT%{gconf_confdir}/schemas/ |
83 # $RPM_BUILD_ROOT%{gconf_confdir}/schemas/ |
82 %find_gconf_schemas |
84 #%%find_gconf_schemas |
83 # browserconfig.properties |
85 # browserconfig.properties |
84 cat << EOF >> suse-browserconfig.properties |
86 cat << EOF >> suse-browserconfig.properties |
85 browser.startup.homepage=%{default_home_page} |
87 browser.startup.homepage=%{default_home_page} |
86 browser.startup.homepage_reset=%{default_home_page} |
88 browser.startup.homepage_reset=%{default_home_page} |
87 EOF |
89 EOF |
95 $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ |
97 $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ |
96 |
98 |
97 %clean |
99 %clean |
98 rm -rf $RPM_BUILD_ROOT |
100 rm -rf $RPM_BUILD_ROOT |
99 |
101 |
100 %pre -f %{name}.schemas_pre |
102 #%pre -f %{name}.schemas_pre |
101 |
103 |
102 %preun -f %{name}.schemas_preun |
104 #%preun -f %{name}.schemas_preun |
103 |
105 |
104 %posttrans -f %{name}.schemas_posttrans |
106 #%posttrans -f %{name}.schemas_posttrans |
105 |
107 |
106 %files -f %{name}.schemas_list |
108 #%files -f %{name}.schemas_list |
|
109 %files |
107 %defattr(-,root,root) |
110 %defattr(-,root,root) |
108 %doc COPYING.susefox |
111 %doc COPYING.susefox |
109 %doc ../COPYING |
112 %doc ../COPYING |
110 %{progdir}/defaults/preferences/firefox-openSUSE.js |
113 %{progdir}/defaults/pref/all-openSUSE.js |
|
114 %{progdir}/defaults/pref/firefox-openSUSE.js |
|
115 %dir %{progdir}/defaults/profile/ |
111 %{progdir}/defaults/profile/bookmarks.html |
116 %{progdir}/defaults/profile/bookmarks.html |
112 %{progdir}/browserconfig.properties |
117 %{progdir}/browserconfig.properties |
113 %{progdir}/searchplugins/* |
118 %{progdir}/searchplugins/* |
114 %{progdir}/distribution |
119 %{progdir}/distribution |
115 %{_datadir}/mozilla |
120 %{_datadir}/mozilla |