1 |
%define revision 106587 |
2 |
%define crname chromium-browser |
3 |
%define _crdir %{_libdir}/%{crname} |
4 |
%define basever 15.0.865.0 |
5 |
%define patchver() ([ -f %{_sourcedir}/patch-%1-%2.diff.xz ] || exit 1; xz -dc %{_sourcedir}/patch-%1-%2.diff.xz|patch -p1); |
6 |
|
7 |
Name: chromium-browser-stable |
8 |
Version: 15.0.874.102 |
9 |
Release: %mkrel 1 |
10 |
Summary: A fast webkit-based web browser |
11 |
Group: Networking/WWW |
12 |
License: BSD, LGPL |
13 |
Source0: chromium-%{basever}.tar.xz |
14 |
Source1: chromium-wrapper |
15 |
Source2: chromium-browser.desktop |
16 |
Source3: attributed_string_coder.h |
17 |
Source1000: patch-15.0.865.0-15.0.874.1.diff.xz |
18 |
Source1001: binary-15.0.865.0-15.0.874.1.tar.xz |
19 |
Source1002: script-15.0.865.0-15.0.874.1.sh |
20 |
Source1003: patch-15.0.874.1-15.0.874.12.diff.xz |
21 |
Source1004: patch-15.0.874.12-15.0.874.15.diff.xz |
22 |
Source1005: patch-15.0.874.15-15.0.874.21.diff.xz |
23 |
Source1006: patch-15.0.874.21-15.0.874.51.diff.xz |
24 |
Source1007: binary-15.0.874.21-15.0.874.51.tar.xz |
25 |
Source1008: patch-15.0.874.51-15.0.874.54.diff.xz |
26 |
Source1009: patch-15.0.874.54-15.0.874.81.diff.xz |
27 |
Source1010: binary-15.0.874.54-15.0.874.81.tar.xz |
28 |
Source1011: patch-15.0.874.81-15.0.874.92.diff.xz |
29 |
Source1012: patch-15.0.874.92-15.0.874.100.diff.xz |
30 |
Source1013: patch-15.0.874.100-15.0.874.102.diff.xz |
31 |
Patch0: chromium-15.0.874.1-skip-builder-tests.patch |
32 |
Patch1: chromium-14.0.835.0-gcc46.patch |
33 |
Provides: %{crname} |
34 |
Obsoletes: chromium-browser-unstable < 13.0.761.1 |
35 |
Obsoletes: chromium-browser-beta < 12.0.742.54 |
36 |
Obsoletes: chromium-browser < 1:9.0.597.94 |
37 |
BuildRequires: bison, flex, gtk2-devel, atk-devel, libexpat-devel, gperf |
38 |
BuildRequires: libnspr-devel, libnss-devel, libalsa-devel |
39 |
BuildRequires: libglib2-devel, libbzip2-devel, libz-devel, libpng-devel |
40 |
BuildRequires: libjpeg-devel, libmesagl-devel, libmesaglu-devel |
41 |
BuildRequires: libxscrnsaver-devel, libdbus-glib-devel, libcups-devel |
42 |
BuildRequires: libgnome-keyring-devel libvpx-devel libxtst-devel |
43 |
BuildRequires: libxslt-devel libxml2-devel libxt-devel libpam-devel |
44 |
BuildRequires: libevent-devel libflac-devel libpulseaudio-devel |
45 |
BuildRequires: perl-Switch, libgnutls-devel |
46 |
BuildRequires: libelfutils-devel |
47 |
ExclusiveArch: i586 x86_64 armel |
48 |
|
49 |
%description |
50 |
Chromium is a browser that combines a minimal design with sophisticated |
51 |
technology to make the web faster, safer, and easier. |
52 |
|
53 |
This is the stable channel Chromium browser. It offers a rock solid |
54 |
browser which is updated with features and fixes once they have been |
55 |
thoroughly tested. If you want the latest features, install the |
56 |
chromium-browser-unstable package instead. |
57 |
|
58 |
Note: If you are reverting from unstable to stable or beta channel, you may |
59 |
experience tab crashes on startup. This crash only affects tabs restored |
60 |
during the first launch due to a change in how tab state is stored. |
61 |
See http://bugs.chromium.org/34688. It's always a good idea to back up |
62 |
your profile before changing channels. |
63 |
|
64 |
%package -n chromium-browser |
65 |
Summary: A fast webkit-based web browser (transition package) |
66 |
Epoch: 1 |
67 |
Group: Networking/WWW |
68 |
Requires: %{name} = %{version}-%{release} |
69 |
|
70 |
%description -n chromium-browser |
71 |
Chromium is a browser that combines a minimal design with sophisticated |
72 |
technology to make the web faster, safer, and easier. |
73 |
|
74 |
This is a transition package that installs the stable channel Chromium |
75 |
browser. If you prefer the dev channel browser, install the |
76 |
chromium-browser-unstable package instead. |
77 |
|
78 |
|
79 |
%prep |
80 |
%setup -q -n chromium-%{basever} |
81 |
install -D %{_sourcedir}/attributed_string_coder.h \ |
82 |
chrome/common/mac/attributed_string_coder.h |
83 |
%patchver 15.0.865.0 15.0.874.1 |
84 |
tar xvf %{_sourcedir}/binary-15.0.865.0-15.0.874.1.tar.xz |
85 |
sh -x %{_sourcedir}/script-15.0.865.0-15.0.874.1.sh |
86 |
%patchver 15.0.874.1 15.0.874.12 |
87 |
rm net/data/ssl/certificates/unosoft_hu_cert.der |
88 |
%patchver 15.0.874.12 15.0.874.15 |
89 |
%patchver 15.0.874.15 15.0.874.21 |
90 |
%patchver 15.0.874.21 15.0.874.51 |
91 |
tar xvf %{_sourcedir}/binary-15.0.874.21-15.0.874.51.tar.xz |
92 |
%patchver 15.0.874.51 15.0.874.54 |
93 |
%patchver 15.0.874.54 15.0.874.81 |
94 |
tar xvf %{_sourcedir}/binary-15.0.874.54-15.0.874.81.tar.xz |
95 |
%patchver 15.0.874.81 15.0.874.92 |
96 |
%patchver 15.0.874.92 15.0.874.100 |
97 |
%patchver 15.0.874.100 15.0.874.102 |
98 |
|
99 |
%patch0 -p1 -b .skip-builder-tests |
100 |
%patch1 -p1 -b .gcc46 |
101 |
echo "%{revision}" > build/LASTCHANGE.in |
102 |
|
103 |
sed -i -e '/test_support_common/s/^/#/' \ |
104 |
chrome/browser/sync/tools/sync_tools.gyp |
105 |
|
106 |
# Hard code extra version |
107 |
FILE=chrome/common/chrome_version_info_linux.cc |
108 |
sed -i.orig -e 's/getenv("CHROME_VERSION_EXTRA")/"%{product_vendor} %{product_version}"/' $FILE |
109 |
cmp $FILE $FILE.orig && exit 1 |
110 |
|
111 |
|
112 |
%build |
113 |
export GYP_GENERATORS=make |
114 |
build/gyp_chromium --depth=. \ |
115 |
-D linux_sandbox_path=%{_crdir}/chrome-sandbox \ |
116 |
-D linux_sandbox_chrome_path=%{_crdir}/chrome \ |
117 |
-D linux_link_gnome_keyring=0 \ |
118 |
-D use_gconf=0 \ |
119 |
-D werror='' \ |
120 |
-D use_system_sqlite=0 \ |
121 |
-D use_system_libxml=1 \ |
122 |
-D use_system_zlib=1 \ |
123 |
-D use_system_bzip2=1 \ |
124 |
-D use_system_libpng=1 \ |
125 |
-D use_system_libjpeg=1 \ |
126 |
-D use_system_libevent=1 \ |
127 |
-D use_system_flac=1 \ |
128 |
-D use_system_vpx=0 \ |
129 |
-D use_system_icu=0 \ |
130 |
%ifarch i586 |
131 |
-D disable_sse2=1 \ |
132 |
-D release_extra_cflags="-march=i586" |
133 |
%endif |
134 |
|
135 |
# Note: DON'T use system sqlite (3.7.3) -- it breaks history search |
136 |
|
137 |
%make chrome chrome_sandbox BUILDTYPE=Release |
138 |
|
139 |
%install |
140 |
rm -rf %{buildroot} |
141 |
mkdir -p %{buildroot}%{_bindir} |
142 |
mkdir -p %{buildroot}%{_crdir}/locales |
143 |
mkdir -p %{buildroot}%{_crdir}/themes |
144 |
mkdir -p %{buildroot}%{_mandir}/man1 |
145 |
install -m 755 %{_sourcedir}/chromium-wrapper %{buildroot}%{_crdir}/ |
146 |
install -m 755 out/Release/chrome %{buildroot}%{_crdir}/ |
147 |
install -m 4755 out/Release/chrome_sandbox %{buildroot}%{_crdir}/chrome-sandbox |
148 |
install -m 644 out/Release/chrome.1 %{buildroot}%{_mandir}/man1/%{crname}.1 |
149 |
install -m 644 out/Release/chrome.pak %{buildroot}%{_crdir}/ |
150 |
install -m 755 out/Release/libffmpegsumo.so %{buildroot}%{_crdir}/ |
151 |
install -m 755 out/Release/libppGoogleNaClPluginChrome.so %{buildroot}%{_crdir}/ |
152 |
install -m 755 out/Release/nacl_helper_bootstrap %{buildroot}%{_crdir}/ |
153 |
install -m 755 out/Release/nacl_helper %{buildroot}%{_crdir}/ |
154 |
install -m 644 out/Release/nacl_irt_*.nexe %{buildroot}%{_crdir}/ |
155 |
install -m 644 out/Release/locales/*.pak %{buildroot}%{_crdir}/locales/ |
156 |
install -m 755 out/Release/xdg-mime %{buildroot}%{_crdir}/ |
157 |
install -m 755 out/Release/xdg-settings %{buildroot}%{_crdir}/ |
158 |
install -m 644 out/Release/resources.pak %{buildroot}%{_crdir}/ |
159 |
ln -s %{_crdir}/chromium-wrapper %{buildroot}%{_bindir}/%{crname} |
160 |
|
161 |
find out/Release/resources/ -name "*.d" -exec rm {} \; |
162 |
cp -r out/Release/resources %{buildroot}%{_crdir} |
163 |
|
164 |
# desktop file |
165 |
mkdir -p %{buildroot}%{_datadir}/applications |
166 |
install -m 644 %{_sourcedir}/%{crname}.desktop %{buildroot}%{_datadir}/applications/ |
167 |
|
168 |
# icon |
169 |
for i in 16 22 24 32 48 64 128 256; do |
170 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps |
171 |
install -m 644 chrome/app/theme/chromium/product_logo_$i.png \ |
172 |
%{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{crname}.png |
173 |
done |
174 |
|
175 |
%files -n chromium-browser |
176 |
|
177 |
%files |
178 |
%{_bindir}/%{crname} |
179 |
%{_crdir}/chromium-wrapper |
180 |
%{_crdir}/chrome |
181 |
%{_crdir}/chrome-sandbox |
182 |
%{_crdir}/chrome.pak |
183 |
%{_crdir}/libffmpegsumo.so |
184 |
%{_crdir}/libppGoogleNaClPluginChrome.so |
185 |
%{_crdir}/nacl_helper_bootstrap |
186 |
%{_crdir}/nacl_helper |
187 |
%{_crdir}/nacl_irt_*.nexe |
188 |
%{_crdir}/locales |
189 |
%{_crdir}/resources.pak |
190 |
%{_crdir}/resources |
191 |
%{_crdir}/themes |
192 |
%{_crdir}/xdg-mime |
193 |
%{_crdir}/xdg-settings |
194 |
%{_mandir}/man1/%{crname}* |
195 |
%{_datadir}/applications/*.desktop |
196 |
%{_iconsdir}/hicolor/*/apps/%{crname}.png |