1 |
# eu-strip crashes on chrome binary from this build |
2 |
%define _enable_debug_packages %{nil} |
3 |
%global debug_package %{nil} |
4 |
%global __debug_install_post %{nil} |
5 |
|
6 |
%define crname chromium-browser |
7 |
%define _crdir %{_libdir}/%{crname} |
8 |
%define __requires_exclude_from ^%{_crdir}/libwidevinecdmadapter.so$ |
9 |
|
10 |
# eol 'fix' corrupts some .bin |
11 |
%define dont_fix_eol 1 |
12 |
|
13 |
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys |
14 |
# Note: these are for Mageia use ONLY. |
15 |
# For your own builds, please get your own set of keys. |
16 |
%define google_api_key AIzaSyDhhIHB_kQZodiWr8yDAm8E3GwEyiXmuDU |
17 |
%define google_default_client_id 1039996407057-q599ngv7i6ni4sbkd2fsns30246r9s9v.apps.googleusercontent.com |
18 |
%define google_default_client_secret mRHXPjlS4cLpp1beCiXoYbLZ |
19 |
|
20 |
Name: chromium-browser-stable |
21 |
Version: 70.0.3538.77 |
22 |
Release: %mkrel 2 |
23 |
Summary: A fast webkit-based web browser |
24 |
Group: Networking/WWW |
25 |
License: BSD, LGPL |
26 |
URL: http://www.chromium.org/Home |
27 |
# http://omahaproxy.appspot.com/ |
28 |
# http://googlechromereleases.blogspot.com/ |
29 |
Source0: http://commondatastorage.googleapis.com/chromium-browser-official/chromium-%{version}.tar.xz |
30 |
Source1: chromium-wrapper |
31 |
Source2: chromium-browser.desktop |
32 |
Source4: widevine_cdm_version.h.in |
33 |
# from gentoo: compiler setup |
34 |
Patch1: chromium-compiler-r4.patch |
35 |
# fix googleisms in man page |
36 |
Patch2: chromium-mageia.patch |
37 |
# (cjw) Recognize mimetypes for matroska (.mkv) and AVI (.avi) formats (video/x-matroska and audio/x-matroska, video/x-msvideo) + handle A52 "AC3" and DTS compressed audio. |
38 |
Patch6: chromium-55-extra-media.patch |
39 |
# (cjw) Recognize mimetypes for WMV (.wmv), FLV (.flv) and MPEG (.mpg) videos |
40 |
Patch7: chromium-40-wmvflvmpg.patch |
41 |
# (cjw) disable external components -- this stops chromium from downloading hotword stuff, for example |
42 |
Patch10: chromium-45-no-external-components.patch |
43 |
# (debian) disable third party cookies by default |
44 |
Patch11: chromium-third-party-cookies-off-by-default.patch |
45 |
# (cjw) fix webrtc build with system ffmpeg |
46 |
Patch18: chromium-50-system-ffmpeg-3.patch |
47 |
# (cjw) fix build error due to android-specific code |
48 |
Patch19: chromium-50-codec-warnings.patch |
49 |
# (cjw) remove assertion on "chromium" branding in combination with enabled "proprietary codecs" |
50 |
Patch22: chromium-54-proprietary-codecs-assert.patch |
51 |
# (cjw) disable werror for a compilation warning that causes the build to fail |
52 |
Patch23: chromium-53-bignum-werror-fix.patch |
53 |
# (cjw) add -Wno-error=depecated-declarations because ffmpeg deprecations cause the build to fail |
54 |
Patch24: chromium-53-ffmpeg-no-deprecation-errors.patch |
55 |
# (cjw) link several libraries directly instead of loading them using dlopen() |
56 |
Patch27: chromium-53-link-libgio-libpci-libudev-libbrlapi.patch |
57 |
# (cjw) add missing unbundle gn files (1) |
58 |
Patch28: chromium-53-gn-system-icu-jsoncpp.patch |
59 |
# (cjw) add missing unbundle gn files (2) |
60 |
Patch29: chromium-53-gn-system-opus.patch |
61 |
# (cjw) build pdfium with system libtiff and libpng |
62 |
Patch30: chromium-52-pdfium-system-libtiff-libpng.patch |
63 |
# (cjw) fix build with current glib... |
64 |
Patch36: chromium-58-glib.patch |
65 |
# (cjw) use system nodejs to fix build |
66 |
Patch37: chromium-58-system-nodejs.patch |
67 |
# |
68 |
Patch40: chromium-59-gcc5.patch |
69 |
# system libvpx |
70 |
Patch42: chromium-60-system-libvpx.patch |
71 |
# clang builtin subtract functions, scoped enum |
72 |
Patch47: chromium-61-gcc5.patch |
73 |
# enum compared with anonymous enum => warning |
74 |
Patch52: chromium-62-gcc5.patch |
75 |
# (cjw) fix coding errors resulting in gcc 7 warning |
76 |
Patch54: chromium-62-gcc7.patch |
77 |
# (cjw) fix gcc errors and warnings |
78 |
Patch177: chromium-64-gcc7.patch |
79 |
# (cjw) fix even more gcc warnings |
80 |
Patch179: chromium-65-gcc7.patch |
81 |
# (cjw) fix yet mmore gcc warnings |
82 |
Patch182: chromium-66-gcc7.patch |
83 |
# (cjw) try to get widevine binary plugin to work (must be taken from a chrome download bundle), v2 |
84 |
Patch183: chromium-67-widevine.patch |
85 |
# (cjw) fix a few more gcc warnings |
86 |
Patch184: chromium-67-gcc7.patch |
87 |
# (cjw) more gcc warnings |
88 |
Patch186: chromium-68-gcc7.patch |
89 |
# (cjw) moore gcc warnings |
90 |
Patch188: chromium-68-gcc8.patch |
91 |
# (cjw) and more gcc warnings |
92 |
Patch189: chromium-69-gcc7.patch |
93 |
# (cjw) fix gn bootstrapping with gcc |
94 |
Patch190: chromium-69-gn-bootstrap.patch |
95 |
# (cjw) mooore gcc warnings |
96 |
Patch191: chromium-69-gcc8.patch |
97 |
# (cjw) moooore gcc warnings |
98 |
Patch192: chromium-70-gcc8.patch |
99 |
# (cjw) build fixes for 64-bit arm |
100 |
Patch193: chromium-70-aarch64.patch |
101 |
# (cjw) add back support for gtk2 builds |
102 |
Patch194: chromium-70-gtk2.patch |
103 |
# (joequant) fix crash on cinnamon |
104 |
Patch195: chromium-69-cinnamon.patch |
105 |
# (cjw) fix build with harfbuzz 2.0 |
106 |
Patch196: chromium-70-harfbuzz-2.0.patch |
107 |
|
108 |
|
109 |
Provides: %{crname} |
110 |
Obsoletes: chromium-browser-unstable < 26.0.1410.51 |
111 |
Obsoletes: chromium-browser-beta < 26.0.1410.51 |
112 |
Obsoletes: chromium-browser < 1:9.0.597.94 |
113 |
BuildRequires: bison |
114 |
BuildRequires: flex |
115 |
BuildRequires: gperf |
116 |
BuildRequires: icu |
117 |
BuildRequires: ninja |
118 |
BuildRequires: yasm |
119 |
BuildRequires: bzip2-devel |
120 |
BuildRequires: cups-devel |
121 |
BuildRequires: elfutils-devel |
122 |
BuildRequires: ffmpeg-devel |
123 |
BuildRequires: glib2-devel |
124 |
BuildRequires: gtk2-devel |
125 |
BuildRequires: libatomic-devel |
126 |
#BuildRequires: libevent-devel |
127 |
BuildRequires: libmesagl-devel |
128 |
BuildRequires: libpam-devel |
129 |
BuildRequires: libpulseaudio-devel |
130 |
%if %mgaver >= 6 |
131 |
BuildRequires: nodejs |
132 |
%endif |
133 |
BuildRequires: osmesa-devel |
134 |
#BuildRequires: protobuf-devel |
135 |
BuildRequires: snappy-devel |
136 |
BuildRequires: perl(Switch) |
137 |
BuildRequires: pkgconfig(alsa) |
138 |
BuildRequires: pkgconfig(atk) |
139 |
BuildRequires: pkgconfig(dbus-glib-1) |
140 |
BuildRequires: pkgconfig(expat) |
141 |
BuildRequires: pkgconfig(flac) |
142 |
BuildRequires: pkgconfig(fontconfig) |
143 |
BuildRequires: pkgconfig(freetype2) |
144 |
BuildRequires: pkgconfig(glu) |
145 |
BuildRequires: pkgconfig(gnome-keyring-1) |
146 |
BuildRequires: pkgconfig(gnutls) |
147 |
%if %mgaver >= 7 |
148 |
BuildRequires: pkgconfig(harfbuzz) |
149 |
%endif |
150 |
BuildRequires: pkgconfig(icu-i18n) |
151 |
BuildRequires: pkgconfig(jsoncpp) |
152 |
BuildRequires: pkgconfig(libcap) |
153 |
BuildRequires: pkgconfig(libdrm) |
154 |
BuildRequires: pkgconfig(libexif) |
155 |
BuildRequires: pkgconfig(libjpeg) |
156 |
BuildRequires: pkgconfig(libopenjp2) |
157 |
BuildRequires: pkgconfig(libpci) |
158 |
BuildRequires: pkgconfig(libpng) |
159 |
BuildRequires: pkgconfig(libtiff-4) |
160 |
BuildRequires: pkgconfig(libusb-1.0) |
161 |
%if %mgaver >= 7 |
162 |
BuildRequires: pkgconfig(libvpx) |
163 |
%endif |
164 |
BuildRequires: pkgconfig(libwebp) |
165 |
BuildRequires: pkgconfig(libxml-2.0) |
166 |
BuildRequires: pkgconfig(libxslt) |
167 |
BuildRequires: pkgconfig(minizip) |
168 |
BuildRequires: pkgconfig(nspr) |
169 |
BuildRequires: pkgconfig(nss) |
170 |
BuildRequires: pkgconfig(opus) |
171 |
BuildRequires: pkgconfig(speech-dispatcher) |
172 |
BuildRequires: pkgconfig(speex) |
173 |
BuildRequires: pkgconfig(udev) |
174 |
BuildRequires: pkgconfig(xscrnsaver) |
175 |
BuildRequires: pkgconfig(xt) |
176 |
BuildRequires: pkgconfig(xtst) |
177 |
BuildRequires: pkgconfig(zlib) |
178 |
# Unused but building gn wants it to be present |
179 |
BuildRequires: pkgconfig(gconf-2.0) |
180 |
BuildRequires: pkgconfig(gtk+-3.0) |
181 |
BuildRequires: git |
182 |
ExclusiveArch: i586 x86_64 |
183 |
# aarch64 does not build without fewer than default parallel jobs config |
184 |
# armv5tl armv7hl |
185 |
|
186 |
%description |
187 |
Chromium is a browser that combines a minimal design with sophisticated |
188 |
technology to make the web faster, safer, and easier. |
189 |
|
190 |
For certain media playback features - AAC decoding - this package |
191 |
currently assumes decoder support is available, while that is only true if |
192 |
the 'tainted' variety of the libavcodec package is installed. When the 'core' |
193 |
variety of libavcodec is installed, chromium may output noise for AAC audio. |
194 |
|
195 |
%ifarch %{ix86} |
196 |
The i586 build of this package does not work on machines that do not |
197 |
support the SSE2 instruction set extension. |
198 |
%endif |
199 |
|
200 |
%package -n chromium-browser |
201 |
Summary: A fast webkit-based web browser (transition package) |
202 |
Epoch: 1 |
203 |
Group: Networking/WWW |
204 |
Requires: %{name} = %{version}-%{release} |
205 |
|
206 |
%description -n chromium-browser |
207 |
Chromium is a browser that combines a minimal design with sophisticated |
208 |
technology to make the web faster, safer, and easier. |
209 |
|
210 |
This is a transition package that installs the stable channel Chromium |
211 |
browser. |
212 |
|
213 |
%prep |
214 |
%setup -q -n chromium-%{version} |
215 |
%autopatch -p1 |
216 |
|
217 |
# files we do not want from upstream source bundles |
218 |
rm -rf breakpad/src/processor/testdata/ |
219 |
rm -rf chrome/app/test_data/dlls/ |
220 |
rm -rf chrome/common/extensions/docs/ |
221 |
rm -rf chrome/test/data/{android,app_shim,apptest,ash,autofill,automation,automation_proxy_snapshot,banners,bookmark_html_reader,bookmarks,captive_portal,chromedriver,chrome_endure,chromeos,chromeproxy,cld2_component,click_modifier,components,constrained_files,content,content_setting_bubble,devtools,diagnostics,dom_automation,dom_checker,dom_distiller,downloads,drive_first_run,dromaeo,durable,edge_database_reader,edge_profile,encoding_tests,extensions,fast_shutdown,fast_tab_close,favicon,feeds,file_select_helper,find_in_page,firefox320_profile,firefox35_profile,firefox3_nss,firefox3_nss_mac,firefox3_profile,firefox_profile,firefox_searchplugins,focus,frame_dom_access,frame_tree,ftp,fullscreen_mouselock,geolocation,google,gpu,History,image_decoding,image_search,import,indexeddb,inspector,installer,interstitial_page,keyboard,login,native_messaging,navigation_interception,notifications,page_cycler,page_load_metrics,panels,password,pdf,pepper,perf,permissions,plugin_power_saver,policy,popup_blocker,predictor,prefs,pref_service,prerender,printing,profiles,push_messaging,referrer_policy,requirements_checker,safe_browsing,SafeBrowsing,save_page,scroll,sdch,search,session_history,session_restore,sessions,settings,speech,ssl,subresource_filter,sunspider,sync,template_url_scraper,textinput,third_party,top_sites,translate,unit,v8_benchmark_v6,viewsource,web_app_info,webapps,webrtc,websocket,webui_test_resources.grd,whitelists,workers} |
222 |
rm -rf chrome/test/data/nacl/{pnacl_error_handling,cross_origin,irt_exception,pnacl_request_header,nonsfi,pnacl_url_loader,pnacl_hw_eh_disabled,pnacl_nmf_options,pnacl_dyncode_syscall_disabled,extension_mime_handler,ppapi_test_lib,bad,ppapi,ppapi/ppb_instance,ppapi/ppp_instance,ppapi/ppb_core,manifest,manifest/mdir,manifest/ndir,pnacl_debug_url,nacl_test_data.gyp,extension_validation_cache,exit_status,progress_events,manifest_file,sysconf_nprocessors_onln,crash,pnacl_mime_type} |
223 |
rmdir chrome/test/data/webui/{settings,extensions}/a11y |
224 |
rmdir chrome/test/data/webui/{engagement,extensions,media_router,print_preview,cr_elements,settings,md_bookmarks,md_downloads,md_history,md_user_manager,net_internals} |
225 |
rm -rf chrome/tools/test/reference_build/chrome_linux/ |
226 |
rm -rf components/test/data/component_updater/jebgalgnebhfojomionfpkfelancnnkf/component1.dll |
227 |
rm -rf content/test/data/ |
228 |
#rm -rf net/data/ |
229 |
# v the root BUILD.gn includes files from this dir |
230 |
#rm -rf ppapi/examples/ |
231 |
rm -rf ppapi/native_client/tests/ |
232 |
rm -rf third_party/apache-win32/ |
233 |
rm -rf third_party/binutils/ |
234 |
rm -rf third_party/expat/files/ |
235 |
rm -rf third_party/ffmpeg/*/* |
236 |
rm -rf third_party/ffmpeg/*.[ch] |
237 |
rm -rf third_party/flac/{include,src} |
238 |
#rm -rf third_party/freetype/{src,include} |
239 |
rm -rf third_party/icu/{android,linux,mac,patches,public,source,windows} |
240 |
rm -rf third_party/jsoncpp/source |
241 |
rm -rf third_party/lcov |
242 |
#rm -rf base/third_party/libevent/*/* |
243 |
#rm -rf base/third_party/libevent/*.[ch] |
244 |
%if %mgaver >= 7 |
245 |
rm -rf third_party/libvpx/source/{libvpx,config} |
246 |
%endif |
247 |
rm -rf third_party/libexif/sources |
248 |
rm -rf third_party/libjpeg/*.[ch] |
249 |
rm -rf third_party/libjpeg_turbo/*.[ch] |
250 |
rm -rf third_party/libpng/*.[ch] |
251 |
rm -rf third_party/libxslt/{libexslt,libxslt,linux,mac,win32} |
252 |
#rm -rf third_party/mesa/src/src |
253 |
rm -rf third_party/swig |
254 |
rm -rf third_party/WebKit/LayoutTests/ |
255 |
rm -rf third_party/WebKit/Tools/Scripts/ |
256 |
rm -rf third_party/xdg-utils/tests/ |
257 |
rm -rf third_party/yasm/source/ |
258 |
rm -rf third_party/zlib/{*.[ch],contrib/minizip} |
259 |
rm -rf tools/gyp/test/ |
260 |
#rm -rf v8/test/ |
261 |
rm -f third_party/pdfium/third_party/libjpeg/*.[ch] |
262 |
rm -f third_party/pdfium/third_party/libopenjpeg20/*.[ch] |
263 |
rm -rf third_party/pdfium/third_party/libpng16 |
264 |
rm -f third_party/pdfium/third_party/libtiff/*.[ch] |
265 |
rm -rf third_party/pdfium/third_party/zlib_v128 |
266 |
|
267 |
rm -f third_party/skia/platform_tools/android/apps/gradle/wrapper/gradle-wrapper.jar |
268 |
rm -f third_party/WebKit/Source/devtools/scripts/jsdoc-validator/jsdoc-validator.jar |
269 |
rm -f third_party/WebKit/Source/devtools/scripts/closure/compiler.jar |
270 |
rm -f third_party/WebKit/Source/devtools/scripts/compiler-runner/closure-runner.jar |
271 |
rm -rf third_party/sfntly/src/java/lib |
272 |
rm -f third_party/haha/haha-2.0.2.jar |
273 |
rm -f third_party/android_platform/webview/frameworks_5.1.0_r1.jar |
274 |
rm -f third_party/android_platform/webview/frameworks_6.0.jar |
275 |
rm -f third_party/libphonenumber/dist/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar |
276 |
rm -f third_party/libphonenumber/dist/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar |
277 |
rm -rf third_party/libphonenumber/dist/java/demo/war/WEB-INF/lib |
278 |
rm -rf third_party/libphonenumber/dist/java/lib |
279 |
rm -f third_party/webrtc/examples/androidapp/third_party/autobanh/autobanh.jar |
280 |
rm -rf third_party/cacheinvalidation/src/example-app-build/libs |
281 |
rm -f third_party/closure_compiler/runner/runner.jar |
282 |
rm -f third_party/closure_compiler/compiler/compiler.jar |
283 |
rm -rf third_party/proguard/lib |
284 |
rm -f third_party/checkstyle/checkstyle-6.5-all.jar |
285 |
rm -rf third_party/sfntly/src/cpp/ext |
286 |
|
287 |
# Remove bundled ICU; its header files appear to get picked up instead of |
288 |
# the system ones, leading to errors during the final link stage. |
289 |
# https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/BNGvJc08B6Q |
290 |
find third_party/icu -type f \! -regex '.*\.\(gn\|gni\|isolate\)' -delete |
291 |
|
292 |
# Hard code extra version |
293 |
FILE=chrome/common/channel_info_posix.cc |
294 |
sed -i.orig -re 's/char\s*\*(.*)getenv\("CHROME_VERSION_EXTRA"\)/char const *\1"%{product_vendor} %{product_version}"/' $FILE |
295 |
cmp $FILE $FILE.orig && exit 1 |
296 |
|
297 |
# version taken from: strings opt/google/chrome-unstable/chrome | grep -C 1 " (version:" |
298 |
%define widevine_version 1.4.8.1008 |
299 |
for chrome_arch in ia32 x64; do |
300 |
mkdir -p third_party/widevine/cdm/linux/${chrome_arch} |
301 |
sed -e "s/@WIDEVINE_VERSION@/%{widevine_version}/" %{SOURCE4} > third_party/widevine/cdm/linux/${chrome_arch}/widevine_cdm_version.h |
302 |
done |
303 |
|
304 |
%build |
305 |
%if %mgaver >= 7 |
306 |
%define system_gn_list ffmpeg flac libwebp libxml libxslt snappy yasm libvpx libpng icu zlib jsoncpp opus libdrm |
307 |
%else |
308 |
%define system_gn_list ffmpeg flac libwebp libxml libxslt snappy yasm libpng icu zlib jsoncpp opus libdrm freetype |
309 |
%endif |
310 |
# handled by upstream regular build scripts? : freetype harfbuzz-ng |
311 |
# libevent mesa |
312 |
|
313 |
# v NO TABS IN HERE! |
314 |
%define gn_config use_sysroot=false \ |
315 |
system_libdir="%{_lib}" \ |
316 |
icu_use_data_file=true \ |
317 |
enable_nacl=false \ |
318 |
is_nacl_glibc=false \ |
319 |
binutils_path="%{_bindir}" \ |
320 |
linux_use_bundled_binutils=false \ |
321 |
use_gold=true \ |
322 |
custom_toolchain="//build/toolchain/linux/unbundle:default" \ |
323 |
host_toolchain="//build/toolchain/linux/unbundle:default" \ |
324 |
proprietary_codecs=true \ |
325 |
linux_link_libudev = true \ |
326 |
linux_link_libspeechd = true \ |
327 |
enable_ac3_eac3_audio_demuxing=true \ |
328 |
enable_mse_mpeg2ts_stream_parser=true \ |
329 |
enable_hevc_demuxing=true \ |
330 |
use_system_libjpeg=true \ |
331 |
use_libjpeg_turbo=false \ |
332 |
enable_widevine=true \ |
333 |
pdf_enable_xfa=true \ |
334 |
use_pulseaudio=true \ |
335 |
use_allocator="none" \ |
336 |
gtk_version=2 \ |
337 |
fatal_linker_warnings=false \ |
338 |
use_libpci = true \ |
339 |
is_debug=false \ |
340 |
is_clang=false \ |
341 |
use_system_freetype=true \ |
342 |
use_system_harfbuzz=true \ |
343 |
use_system_libpng=true \ |
344 |
use_custom_libcxx=false \ |
345 |
google_api_key="%{google_api_key}" \ |
346 |
google_default_client_id="%{google_default_client_id}" \ |
347 |
google_default_client_secret="%{google_default_client_secret}" |
348 |
|
349 |
|
350 |
# enable_browser_cdms=true \ |
351 |
|
352 |
build/linux/unbundle/replace_gn_files.py --system-libraries %{system_gn_list} |
353 |
third_party/libaddressinput/chromium/tools/update-strings.py |
354 |
|
355 |
%setup_compile_flags |
356 |
CC=%{__cc}; export CC |
357 |
CXX=%{__cxx}; export CXX |
358 |
AR=%{__ar}; export AR |
359 |
NM=%{__nm}; export NM |
360 |
LD=%{__cxx}; export LD |
361 |
|
362 |
# filter out -g from CFLAGS and CXXFLAGS to fix builds |
363 |
CFLAGS=$(echo "$CFLAGS"|sed -e 's/-g //') |
364 |
CXXFLAGS=$(echo "$CXXFLAGS"|sed -e 's/-g //') |
365 |
CXXFLAGS="$CXXFLAGS -Wno-attributes -Wno-error=class-memaccess" |
366 |
|
367 |
%ifarch %{ix86} |
368 |
CFLAGS="$CFLAGS -msse2" |
369 |
CXXFLAGS="$CXXFLAGS -msse2" |
370 |
%endif |
371 |
|
372 |
python tools/gn/bootstrap/bootstrap.py --gn-gen-args='%{gn_config}' |
373 |
|
374 |
out/Release/gn gen --args='%{gn_config}' out/Release |
375 |
|
376 |
pushd out/Release |
377 |
ninja %{_smp_mflags} chrome chrome_sandbox |
378 |
popd |
379 |
|
380 |
# man page |
381 |
sed -e "s/@@PACKAGE@@/chromium/" -e "s/@@MENUNAME@@/Chromium Web Browser/" chrome/app/resources/manpage.1.in >out/Release/chromium.1 |
382 |
|
383 |
%install |
384 |
ls out/Release |
385 |
mkdir -p %{buildroot}%{_bindir} |
386 |
mkdir -p %{buildroot}%{_crdir}/locales |
387 |
mkdir -p %{buildroot}%{_crdir}/themes |
388 |
mkdir -p %{buildroot}%{_crdir}/default_apps |
389 |
mkdir -p %{buildroot}%{_mandir}/man1 |
390 |
install -m 755 %{_sourcedir}/chromium-wrapper %{buildroot}%{_crdir}/ |
391 |
install -m 755 out/Release/chrome %{buildroot}%{_crdir}/ |
392 |
install -m 4755 out/Release/chrome_sandbox %{buildroot}%{_crdir}/chrome-sandbox |
393 |
install -m 644 out/Release/chromium.1 %{buildroot}%{_mandir}/man1/%{crname}.1 |
394 |
install -m 644 out/Release/chrome_100_percent.pak %{buildroot}%{_crdir}/ |
395 |
install -m 644 out/Release/chrome_200_percent.pak %{buildroot}%{_crdir}/ |
396 |
install -m 644 out/Release/resources.pak %{buildroot}%{_crdir}/ |
397 |
install -m 644 out/Release/natives_blob.bin %{buildroot}%{_crdir}/ |
398 |
install -m 644 out/Release/snapshot_blob.bin %{buildroot}%{_crdir}/ |
399 |
install -m 755 out/Release/mksnapshot %{buildroot}%{_crdir}/ |
400 |
install -m 644 out/Release/locales/*.pak %{buildroot}%{_crdir}/locales/ |
401 |
install -m 644 chrome/browser/resources/default_apps/* %{buildroot}%{_crdir}/default_apps/ |
402 |
install -m 644 out/Release/v8_context_snapshot.bin %{buildroot}%{_crdir}/ |
403 |
ln -s %{_crdir}/chromium-wrapper %{buildroot}%{_bindir}/%{crname} |
404 |
|
405 |
%ifarch %{ix86} x86_64 |
406 |
mkdir -p %{buildroot}%{_crdir}/swiftshader |
407 |
install -m 755 out/Release/swiftshader/*.so %{buildroot}%{_crdir}/swiftshader/ |
408 |
%endif |
409 |
|
410 |
find out/Release/resources/ -name "*.d" -exec rm {} \; |
411 |
cp -r out/Release/resources %{buildroot}%{_crdir} |
412 |
|
413 |
# desktop file |
414 |
mkdir -p %{buildroot}%{_datadir}/applications |
415 |
install -m 644 %{_sourcedir}/%{crname}.desktop %{buildroot}%{_datadir}/applications/ |
416 |
|
417 |
# symlink to ICU data file |
418 |
ICUDATADIR=$(icuinfo | grep \"icudata.path\" | sed -re 's/^.*>(.*)<.*$/\1/') |
419 |
ICUDATANAME=$(icuinfo | grep \"icudata.name\" | sed -re 's/^.*>(.*)<.*$/\1/') |
420 |
ICUDATAFILE=$(realpath --relative-to=%{_crdir}/ ${ICUDATADIR}/${ICUDATANAME}.dat) |
421 |
ln -s ${ICUDATAFILE} %{buildroot}%{_crdir}/icudtl.dat |
422 |
|
423 |
# icon |
424 |
for i in 22 24 48 64 128 256; do |
425 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps |
426 |
install -m 644 chrome/app/theme/chromium/product_logo_$i.png \ |
427 |
%{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{crname}.png |
428 |
done |
429 |
|
430 |
for i in 16 32; do |
431 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps |
432 |
install -m 644 chrome/app/theme/default_100_percent/chromium/product_logo_$i.png \ |
433 |
%{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{crname}.png |
434 |
done |
435 |
|
436 |
%files -n chromium-browser |
437 |
|
438 |
%files |
439 |
%{_bindir}/%{crname} |
440 |
%dir %{_crdir} |
441 |
%{_crdir}/chromium-wrapper |
442 |
%{_crdir}/chrome |
443 |
%attr(4755,root,root) %{_crdir}/chrome-sandbox |
444 |
%{_crdir}/icudtl.dat |
445 |
%{_crdir}/locales |
446 |
%{_crdir}/natives_blob.bin |
447 |
%{_crdir}/snapshot_blob.bin |
448 |
%{_crdir}/chrome_100_percent.pak |
449 |
%{_crdir}/chrome_200_percent.pak |
450 |
%{_crdir}/resources.pak |
451 |
%{_crdir}/resources |
452 |
%{_crdir}/mksnapshot |
453 |
%{_crdir}/themes |
454 |
%{_crdir}/default_apps |
455 |
%ifarch %{ix86} x86_64 |
456 |
%{_crdir}/swiftshader |
457 |
%endif |
458 |
%{_crdir}/v8_context_snapshot.bin |
459 |
%{_mandir}/man1/%{crname}* |
460 |
%{_datadir}/applications/*.desktop |
461 |
%{_iconsdir}/hicolor/*/apps/%{crname}.png |