author | Wolfgang Rosenauer <wr@rosenauer.org> |
Thu, 20 Oct 2011 22:26:06 +0200 | |
changeset 10 | 78c0172dda6c |
parent 9 | b0976f9b62ff |
child 11 | ce8283942662 |
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 |
# |
9
b0976f9b62ff
fix build for certain openSUSE versions
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
8
diff
changeset
|
4 |
# Copyright (c) 2011 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 |
10
78c0172dda6c
import latest changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
9
diff
changeset
|
22 |
BuildRequires: bc unzip zip |
0 | 23 |
Name: MozillaFirefox-branding-openSUSE |
24 |
License: BSD3c(or similar) ; GPLv2+ |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
25 |
Version: 5.0 |
9
b0976f9b62ff
fix build for certain openSUSE versions
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
8
diff
changeset
|
26 |
Release: 3 |
0 | 27 |
Summary: openSUSE branding of MozillaFirefox |
28 |
Group: Productivity/Networking/Web/Browsers |
|
10
78c0172dda6c
import latest changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
9
diff
changeset
|
29 |
Source: susefox-20111020.tar.bz2 |
0 | 30 |
Source1: search-addons.tar.bz2 |
31 |
Source2: bookmarks.html.suse |
|
32 |
Source3: firefox-suse-default-prefs.js |
|
33 |
Source4: firefox.schemas |
|
34 |
Source5: distribution.ini.in |
|
35 |
Source6: %{name}-COPYING |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
36 |
Source7: all-openSUSE.js |
0 | 37 |
Provides: MozillaFirefox-branding = %{version} |
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
38 |
PreReq: MozillaFirefox >= 4.99 |
0 | 39 |
Conflicts: otherproviders(MozillaFirefox-branding) |
40 |
Supplements: packageand(MozillaFirefox:branding-openSUSE) |
|
41 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
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) |
|
10
78c0172dda6c
import latest changes from OBS
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
9
diff
changeset
|
45 |
# HINT: default homepage is a property now included in susefox |
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
46 |
#%define gconf_confdir %{_sysconfdir}/gconf |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
47 |
#%gconf_schemas_prereq |
0 | 48 |
|
49 |
%description |
|
50 |
This package provides openSUSE Look and Feel for MozillaFirefox. |
|
51 |
||
52 |
||
53 |
%prep |
|
54 |
cp -a %{SOURCE6} COPYING |
|
5 | 55 |
%setup -n susefox -q |
0 | 56 |
mv COPYING COPYING.susefox |
57 |
||
58 |
%build |
|
59 |
./build.sh |
|
60 |
||
61 |
%install |
|
62 |
install -d $RPM_BUILD_ROOT%{progdir} |
|
63 |
# custom bookmarks |
|
64 |
install -d $RPM_BUILD_ROOT%{progdir}/defaults/profile |
|
65 |
install -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{progdir}/defaults/profile/bookmarks.html |
|
66 |
# apply SUSE defaults |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
67 |
install -d $RPM_BUILD_ROOT%{progdir}/defaults/pref |
0 | 68 |
sed -e 's,GSSAPI,%{libgssapi},g' \ |
69 |
%{SOURCE3} > suse-default-prefs |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
70 |
install -m0644 suse-default-prefs $RPM_BUILD_ROOT%{progdir}/defaults/pref/firefox-openSUSE.js |
0 | 71 |
rm suse-default-prefs |
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
72 |
install -m0644 %{SOURCE7} $RPM_BUILD_ROOT%{progdir}/defaults/pref/ |
0 | 73 |
# distribution.ini |
74 |
install -d $RPM_BUILD_ROOT%{progdir}/distribution |
|
75 |
sed -e 's,%VERSION%,%{suseversion},g' \ |
|
76 |
%{SOURCE5} > distribution.ini |
|
77 |
install -m 0644 distribution.ini $RPM_BUILD_ROOT%{progdir}/distribution/ |
|
78 |
# search plugins |
|
79 |
install -d $RPM_BUILD_ROOT%{progdir}/searchplugins |
|
80 |
(cd $RPM_BUILD_ROOT%{progdir}/searchplugins ; tar xjf %{SOURCE1}) |
|
81 |
# SCHEMA file |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
82 |
#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
|
83 |
#install -m 644 %{SOURCE4} \ |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
84 |
# $RPM_BUILD_ROOT%{gconf_confdir}/schemas/ |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
85 |
#%%find_gconf_schemas |
0 | 86 |
# install the system extension |
87 |
mkdir susefox\@opensuse.org |
|
88 |
(cd susefox\@opensuse.org; unzip ../susefox.xpi) |
|
89 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ |
|
90 |
cp -r susefox\@opensuse.org \ |
|
91 |
$RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ |
|
92 |
||
93 |
%clean |
|
94 |
rm -rf $RPM_BUILD_ROOT |
|
95 |
||
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
96 |
#%pre -f %{name}.schemas_pre |
0 | 97 |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
98 |
#%preun -f %{name}.schemas_preun |
0 | 99 |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
100 |
#%posttrans -f %{name}.schemas_posttrans |
0 | 101 |
|
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
102 |
#%files -f %{name}.schemas_list |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
103 |
%files |
0 | 104 |
%defattr(-,root,root) |
105 |
%doc COPYING.susefox |
|
106 |
%doc ../COPYING |
|
9
b0976f9b62ff
fix build for certain openSUSE versions
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
8
diff
changeset
|
107 |
%dir %{progdir}/defaults/pref |
7
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
108 |
%{progdir}/defaults/pref/all-openSUSE.js |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
109 |
%{progdir}/defaults/pref/firefox-openSUSE.js |
9b3c0c88075a
update for Firefox 5 and higher (standalone edition)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
5
diff
changeset
|
110 |
%dir %{progdir}/defaults/profile/ |
0 | 111 |
%{progdir}/defaults/profile/bookmarks.html |
112 |
%{progdir}/searchplugins/* |
|
113 |
%{progdir}/distribution |
|
114 |
%{_datadir}/mozilla |
|
115 |
||
116 |
%changelog |