author | Wolfgang Rosenauer <wr@rosenauer.org> |
Sat, 21 May 2011 14:32:03 +0200 | |
changeset 8 | f089e41153dd |
parent 7 | 9b3c0c88075a |
child 9 | b0976f9b62ff |
permissions | -rw-r--r-- |
0 | 1 |
# |
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
2 |
# spec file for package MozillaFirefox-branding-openSUSE |
0 | 3 |
# |
4 |
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
5 |
# Copyright (c) 2008-2011 Wolfgang Rosenauer |
0 | 6 |
# |
7 |
# All modifications and additions to the file contributed by third parties |
|
8 |
# remain the property of their copyright owners, unless otherwise agreed |
|
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 |
|
11 |
# license for the pristine package is not an Open Source License, in which |
|
12 |
# case the license is the MIT License). An "Open Source License" is a |
|
13 |
# license that conforms to the Open Source Definition (Version 1.9) |
|
14 |
# published by the Open Source Initiative. |
|
15 |
||
16 |
# Please submit bugfixes or comments via http://bugs.opensuse.org/ |
|
17 |
# |
|
18 |
||
19 |
# norootforbuild |
|
20 |
||
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
21 |
BuildRequires: MozillaFirefox bc unzip zip |
0 | 22 |
Name: MozillaFirefox-branding-openSUSE |
23 |
License: BSD3c(or similar) ; GPLv2+ |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
24 |
Version: 5.0 |
3 | 25 |
Release: 1 |
0 | 26 |
Summary: openSUSE branding of MozillaFirefox |
27 |
Group: Productivity/Networking/Web/Browsers |
|
8 | 28 |
Source: susefox-20110521.tar.bz2 |
0 | 29 |
Source1: search-addons.tar.bz2 |
30 |
Source2: bookmarks.html.suse |
|
31 |
Source3: firefox-suse-default-prefs.js |
|
32 |
Source4: firefox.schemas |
|
33 |
Source5: distribution.ini.in |
|
34 |
Source6: %{name}-COPYING |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
35 |
Source7: all-openSUSE.js |
0 | 36 |
Provides: MozillaFirefox-branding = %{version} |
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
37 |
PreReq: MozillaFirefox >= 4.99 |
0 | 38 |
Conflicts: otherproviders(MozillaFirefox-branding) |
39 |
Supplements: packageand(MozillaFirefox:branding-openSUSE) |
|
40 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
41 |
%define default_home_page http://www.opensuse.org/ |
|
42 |
%define progdir %{_prefix}/%_lib/firefox |
|
43 |
%define libgssapi libgssapi_krb5.so.2 |
|
44 |
%define suseversion %(echo -e "scale=1\\n%{suse_version}/100" | bc 2>/dev/null) |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
45 |
#%define gconf_confdir %{_sysconfdir}/gconf |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
46 |
#%gconf_schemas_prereq |
0 | 47 |
|
48 |
%description |
|
49 |
This package provides openSUSE Look and Feel for MozillaFirefox. |
|
50 |
||
51 |
||
52 |
%prep |
|
53 |
cp -a %{SOURCE6} COPYING |
|
5 | 54 |
%setup -n susefox -q |
0 | 55 |
mv COPYING COPYING.susefox |
56 |
||
57 |
%build |
|
58 |
./build.sh |
|
59 |
||
60 |
%install |
|
61 |
install -d $RPM_BUILD_ROOT%{progdir} |
|
62 |
# custom bookmarks |
|
63 |
install -d $RPM_BUILD_ROOT%{progdir}/defaults/profile |
|
64 |
install -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{progdir}/defaults/profile/bookmarks.html |
|
65 |
# apply SUSE defaults |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
66 |
install -d $RPM_BUILD_ROOT%{progdir}/defaults/pref |
0 | 67 |
sed -e 's,GSSAPI,%{libgssapi},g' \ |
68 |
%{SOURCE3} > suse-default-prefs |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
69 |
install -m0644 suse-default-prefs $RPM_BUILD_ROOT%{progdir}/defaults/pref/firefox-openSUSE.js |
0 | 70 |
rm suse-default-prefs |
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
71 |
install -m0644 %{SOURCE7} $RPM_BUILD_ROOT%{progdir}/defaults/pref/ |
0 | 72 |
# distribution.ini |
73 |
install -d $RPM_BUILD_ROOT%{progdir}/distribution |
|
74 |
sed -e 's,%VERSION%,%{suseversion},g' \ |
|
75 |
%{SOURCE5} > distribution.ini |
|
76 |
install -m 0644 distribution.ini $RPM_BUILD_ROOT%{progdir}/distribution/ |
|
77 |
# search plugins |
|
78 |
install -d $RPM_BUILD_ROOT%{progdir}/searchplugins |
|
79 |
(cd $RPM_BUILD_ROOT%{progdir}/searchplugins ; tar xjf %{SOURCE1}) |
|
80 |
# SCHEMA file |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
81 |
#mkdir -p $RPM_BUILD_ROOT%{gconf_confdir}/schemas |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
82 |
#install -m 644 %{SOURCE4} \ |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
83 |
# $RPM_BUILD_ROOT%{gconf_confdir}/schemas/ |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
84 |
#%%find_gconf_schemas |
0 | 85 |
# browserconfig.properties |
86 |
cat << EOF >> suse-browserconfig.properties |
|
87 |
browser.startup.homepage=%{default_home_page} |
|
88 |
browser.startup.homepage_reset=%{default_home_page} |
|
89 |
EOF |
|
90 |
install -m0644 suse-browserconfig.properties $RPM_BUILD_ROOT%{progdir}/browserconfig.properties |
|
91 |
rm suse-browserconfig.properties |
|
92 |
# install the system extension |
|
93 |
mkdir susefox\@opensuse.org |
|
94 |
(cd susefox\@opensuse.org; unzip ../susefox.xpi) |
|
95 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ |
|
96 |
cp -r susefox\@opensuse.org \ |
|
97 |
$RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ |
|
98 |
||
99 |
%clean |
|
100 |
rm -rf $RPM_BUILD_ROOT |
|
101 |
||
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
102 |
#%pre -f %{name}.schemas_pre |
0 | 103 |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
104 |
#%preun -f %{name}.schemas_preun |
0 | 105 |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
106 |
#%posttrans -f %{name}.schemas_posttrans |
0 | 107 |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
108 |
#%files -f %{name}.schemas_list |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
109 |
%files |
0 | 110 |
%defattr(-,root,root) |
111 |
%doc COPYING.susefox |
|
112 |
%doc ../COPYING |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
113 |
%{progdir}/defaults/pref/all-openSUSE.js |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
114 |
%{progdir}/defaults/pref/firefox-openSUSE.js |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
115 |
%dir %{progdir}/defaults/profile/ |
0 | 116 |
%{progdir}/defaults/profile/bookmarks.html |
117 |
%{progdir}/browserconfig.properties |
|
118 |
%{progdir}/searchplugins/* |
|
119 |
%{progdir}/distribution |
|
120 |
%{_datadir}/mozilla |
|
121 |
||
122 |
%changelog |