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: 72.0.3626.121 |
22 |
Release: %mkrel 1 |
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 |
# (joequant) fix crash on cinnamon |
102 |
Patch194: chromium-69-cinnamon.patch |
103 |
# (cjw) gn bootstrap fix |
104 |
Patch195: chromium-72-gn-bootstrap.patch |
105 |
# (cjw) yet more gcc warnings |
106 |
Patch196: chromium-72-gcc8.patch |
107 |
# (cjw) use system closure compiler |
108 |
Patch197: chromium-72-system-closure-compiler.patch |
109 |
# (cjw) fix i586 build |
110 |
Patch198: chromium-72-i586.patch |
111 |
|
112 |
|
113 |
Provides: %{crname} |
114 |
Obsoletes: chromium-browser-unstable < 26.0.1410.51 |
115 |
Obsoletes: chromium-browser-beta < 26.0.1410.51 |
116 |
Obsoletes: chromium-browser < 1:9.0.597.94 |
117 |
BuildRequires: bison |
118 |
BuildRequires: flex |
119 |
BuildRequires: gperf |
120 |
BuildRequires: icu |
121 |
BuildRequires: ninja |
122 |
BuildRequires: yasm |
123 |
BuildRequires: bzip2-devel |
124 |
BuildRequires: closure-compiler |
125 |
BuildRequires: cups-devel |
126 |
BuildRequires: elfutils-devel |
127 |
BuildRequires: ffmpeg-devel |
128 |
BuildRequires: glib2-devel |
129 |
BuildRequires: gtk3-devel |
130 |
BuildRequires: libatomic-devel |
131 |
#BuildRequires: libevent-devel |
132 |
BuildRequires: libmesagl-devel |
133 |
BuildRequires: libpam-devel |
134 |
BuildRequires: libpulseaudio-devel |
135 |
BuildRequires: mesaglesv2-devel |
136 |
%if %mgaver >= 6 |
137 |
BuildRequires: nodejs |
138 |
%endif |
139 |
BuildRequires: osmesa-devel |
140 |
#BuildRequires: protobuf-devel |
141 |
BuildRequires: snappy-devel |
142 |
BuildRequires: perl(Switch) |
143 |
BuildRequires: pkgconfig(alsa) |
144 |
BuildRequires: pkgconfig(atk) |
145 |
BuildRequires: pkgconfig(dbus-glib-1) |
146 |
BuildRequires: pkgconfig(expat) |
147 |
BuildRequires: pkgconfig(flac) |
148 |
BuildRequires: pkgconfig(fontconfig) |
149 |
BuildRequires: pkgconfig(freetype2) |
150 |
BuildRequires: pkgconfig(glu) |
151 |
BuildRequires: pkgconfig(gnome-keyring-1) |
152 |
BuildRequires: pkgconfig(gnutls) |
153 |
%if %mgaver >= 7 |
154 |
BuildRequires: pkgconfig(harfbuzz) |
155 |
%endif |
156 |
BuildRequires: pkgconfig(icu-i18n) |
157 |
BuildRequires: pkgconfig(jsoncpp) |
158 |
BuildRequires: pkgconfig(libcap) |
159 |
BuildRequires: pkgconfig(libdrm) |
160 |
BuildRequires: pkgconfig(libexif) |
161 |
BuildRequires: pkgconfig(libjpeg) |
162 |
BuildRequires: pkgconfig(libopenjp2) |
163 |
BuildRequires: pkgconfig(libpci) |
164 |
BuildRequires: pkgconfig(libpng) |
165 |
BuildRequires: pkgconfig(libtiff-4) |
166 |
BuildRequires: pkgconfig(libusb-1.0) |
167 |
%if %mgaver >= 7 |
168 |
BuildRequires: pkgconfig(libvpx) |
169 |
%endif |
170 |
BuildRequires: pkgconfig(libwebp) |
171 |
BuildRequires: pkgconfig(libxml-2.0) |
172 |
BuildRequires: pkgconfig(libxslt) |
173 |
BuildRequires: pkgconfig(minizip) |
174 |
BuildRequires: pkgconfig(nspr) |
175 |
BuildRequires: pkgconfig(nss) |
176 |
BuildRequires: pkgconfig(opus) |
177 |
BuildRequires: pkgconfig(speech-dispatcher) |
178 |
BuildRequires: pkgconfig(speex) |
179 |
BuildRequires: pkgconfig(udev) |
180 |
BuildRequires: pkgconfig(xscrnsaver) |
181 |
BuildRequires: pkgconfig(xt) |
182 |
BuildRequires: pkgconfig(xtst) |
183 |
BuildRequires: pkgconfig(zlib) |
184 |
# Unused but building gn wants it to be present |
185 |
BuildRequires: pkgconfig(gconf-2.0) |
186 |
BuildRequires: git |
187 |
ExclusiveArch: i586 x86_64 |
188 |
# aarch64 does not build without fewer than default parallel jobs config |
189 |
# armv5tl armv7hl |
190 |
|
191 |
%description |
192 |
Chromium is a browser that combines a minimal design with sophisticated |
193 |
technology to make the web faster, safer, and easier. |
194 |
|
195 |
For certain media playback features - AAC decoding - this package |
196 |
currently assumes decoder support is available, while that is only true if |
197 |
the 'tainted' variety of the libavcodec package is installed. When the 'core' |
198 |
variety of libavcodec is installed, chromium may output noise for AAC audio. |
199 |
|
200 |
%ifarch %{ix86} |
201 |
The i586 build of this package does not work on machines that do not |
202 |
support the SSE2 instruction set extension. |
203 |
%endif |
204 |
|
205 |
%package -n chromium-browser |
206 |
Summary: A fast webkit-based web browser (transition package) |
207 |
Epoch: 1 |
208 |
Group: Networking/WWW |
209 |
Requires: %{name} = %{version}-%{release} |
210 |
|
211 |
%description -n chromium-browser |
212 |
Chromium is a browser that combines a minimal design with sophisticated |
213 |
technology to make the web faster, safer, and easier. |
214 |
|
215 |
This is a transition package that installs the stable channel Chromium |
216 |
browser. |
217 |
|
218 |
%prep |
219 |
%setup -q -n chromium-%{version} |
220 |
%autopatch -p1 |
221 |
|
222 |
# files we do not want from upstream source bundles |
223 |
rm -rf breakpad/src/processor/testdata/ |
224 |
rm -rf chrome/app/test_data/dlls/ |
225 |
rm -rf chrome/common/extensions/docs/ |
226 |
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} |
227 |
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} |
228 |
rmdir chrome/test/data/webui/{settings,extensions}/a11y |
229 |
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} |
230 |
rm -rf chrome/tools/test/reference_build/chrome_linux/ |
231 |
rm -rf components/test/data/component_updater/jebgalgnebhfojomionfpkfelancnnkf/component1.dll |
232 |
rm -rf content/test/data/ |
233 |
#rm -rf net/data/ |
234 |
# v the root BUILD.gn includes files from this dir |
235 |
#rm -rf ppapi/examples/ |
236 |
rm -rf ppapi/native_client/tests/ |
237 |
rm -rf third_party/apache-win32/ |
238 |
rm -rf third_party/binutils/ |
239 |
rm -rf third_party/expat/files/ |
240 |
rm -rf third_party/ffmpeg/*/* |
241 |
rm -rf third_party/ffmpeg/*.[ch] |
242 |
rm -rf third_party/flac/{include,src} |
243 |
#rm -rf third_party/freetype/{src,include} |
244 |
rm -rf third_party/icu/{android,linux,mac,patches,public,source,windows} |
245 |
rm -rf third_party/jsoncpp/source |
246 |
rm -rf third_party/lcov |
247 |
#rm -rf base/third_party/libevent/*/* |
248 |
#rm -rf base/third_party/libevent/*.[ch] |
249 |
%if %mgaver >= 7 |
250 |
rm -rf third_party/libvpx/source/{libvpx,config} |
251 |
%endif |
252 |
rm -rf third_party/libexif/sources |
253 |
rm -rf third_party/libjpeg/*.[ch] |
254 |
rm -rf third_party/libjpeg_turbo/*.[ch] |
255 |
rm -rf third_party/libpng/*.[ch] |
256 |
rm -rf third_party/libxslt/{libexslt,libxslt,linux,mac,win32} |
257 |
#rm -rf third_party/mesa/src/src |
258 |
rm -rf third_party/swig |
259 |
rm -rf third_party/WebKit/LayoutTests/ |
260 |
rm -rf third_party/WebKit/Tools/Scripts/ |
261 |
rm -rf third_party/xdg-utils/tests/ |
262 |
rm -rf third_party/yasm/source/ |
263 |
rm -rf third_party/zlib/{*.[ch],contrib/minizip} |
264 |
rm -rf tools/gyp/test/ |
265 |
#rm -rf v8/test/ |
266 |
rm -f third_party/pdfium/third_party/libjpeg/*.[ch] |
267 |
rm -f third_party/pdfium/third_party/libopenjpeg20/*.[ch] |
268 |
rm -rf third_party/pdfium/third_party/libpng16 |
269 |
rm -f third_party/pdfium/third_party/libtiff/*.[ch] |
270 |
rm -rf third_party/pdfium/third_party/zlib_v128 |
271 |
|
272 |
rm -f third_party/skia/platform_tools/android/apps/gradle/wrapper/gradle-wrapper.jar |
273 |
rm -f third_party/WebKit/Source/devtools/scripts/jsdoc-validator/jsdoc-validator.jar |
274 |
rm -f third_party/WebKit/Source/devtools/scripts/closure/compiler.jar |
275 |
rm -f third_party/WebKit/Source/devtools/scripts/compiler-runner/closure-runner.jar |
276 |
rm -rf third_party/sfntly/src/java/lib |
277 |
rm -f third_party/haha/haha-2.0.2.jar |
278 |
rm -f third_party/android_platform/webview/frameworks_5.1.0_r1.jar |
279 |
rm -f third_party/android_platform/webview/frameworks_6.0.jar |
280 |
rm -f third_party/libphonenumber/dist/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar |
281 |
rm -f third_party/libphonenumber/dist/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar |
282 |
rm -rf third_party/libphonenumber/dist/java/demo/war/WEB-INF/lib |
283 |
rm -rf third_party/libphonenumber/dist/java/lib |
284 |
rm -f third_party/webrtc/examples/androidapp/third_party/autobanh/autobanh.jar |
285 |
rm -rf third_party/cacheinvalidation/src/example-app-build/libs |
286 |
rm -f third_party/closure_compiler/runner/runner.jar |
287 |
rm -f third_party/closure_compiler/compiler/compiler.jar |
288 |
rm -rf third_party/proguard/lib |
289 |
rm -f third_party/checkstyle/checkstyle-6.5-all.jar |
290 |
rm -rf third_party/sfntly/src/cpp/ext |
291 |
|
292 |
# Remove bundled ICU; its header files appear to get picked up instead of |
293 |
# the system ones, leading to errors during the final link stage. |
294 |
# https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/BNGvJc08B6Q |
295 |
find third_party/icu -type f \! -regex '.*\.\(gn\|gni\|isolate\)' -delete |
296 |
|
297 |
# Hard code extra version |
298 |
FILE=chrome/common/channel_info_posix.cc |
299 |
sed -i.orig -re 's/char\s*\*(.*)getenv\("CHROME_VERSION_EXTRA"\)/char const *\1"%{product_vendor} %{product_version}"/' $FILE |
300 |
cmp $FILE $FILE.orig && exit 1 |
301 |
|
302 |
# version taken from: strings opt/google/chrome-unstable/chrome | grep -C 1 " (version:" |
303 |
%define widevine_version 1.4.8.1008 |
304 |
for chrome_arch in ia32 x64; do |
305 |
mkdir -p third_party/widevine/cdm/linux/${chrome_arch} |
306 |
sed -e "s/@WIDEVINE_VERSION@/%{widevine_version}/" %{SOURCE4} > third_party/widevine/cdm/linux/${chrome_arch}/widevine_cdm_version.h |
307 |
done |
308 |
|
309 |
%build |
310 |
%if %mgaver >= 7 |
311 |
%define system_gn_list ffmpeg flac libwebp libxml libxslt snappy yasm libvpx libpng icu zlib jsoncpp opus libdrm |
312 |
%else |
313 |
%define system_gn_list ffmpeg flac libwebp libxml libxslt snappy yasm libpng icu zlib jsoncpp opus libdrm |
314 |
%endif |
315 |
# handled by upstream regular build scripts? : freetype harfbuzz-ng |
316 |
# libevent mesa |
317 |
|
318 |
# v NO TABS IN HERE! |
319 |
%define gn_config use_sysroot=false \ |
320 |
system_libdir="%{_lib}" \ |
321 |
icu_use_data_file=true \ |
322 |
enable_nacl=false \ |
323 |
is_nacl_glibc=false \ |
324 |
binutils_path="%{_bindir}" \ |
325 |
linux_use_bundled_binutils=false \ |
326 |
custom_toolchain="//build/toolchain/linux/unbundle:default" \ |
327 |
host_toolchain="//build/toolchain/linux/unbundle:default" \ |
328 |
proprietary_codecs=true \ |
329 |
linux_link_libudev = true \ |
330 |
linux_link_libspeechd = true \ |
331 |
enable_ac3_eac3_audio_demuxing=true \ |
332 |
enable_mse_mpeg2ts_stream_parser=true \ |
333 |
enable_hevc_demuxing=true \ |
334 |
use_system_libjpeg=true \ |
335 |
use_libjpeg_turbo=false \ |
336 |
enable_widevine=true \ |
337 |
pdf_enable_xfa=true \ |
338 |
use_pulseaudio=true \ |
339 |
use_allocator="none" \ |
340 |
gtk_version=3 \ |
341 |
fatal_linker_warnings=false \ |
342 |
use_libpci = true \ |
343 |
is_debug=false \ |
344 |
is_clang=false \ |
345 |
use_system_freetype=true \ |
346 |
use_system_harfbuzz=true \ |
347 |
use_system_libpng=true \ |
348 |
use_custom_libcxx=false \ |
349 |
google_api_key="%{google_api_key}" \ |
350 |
google_default_client_id="%{google_default_client_id}" \ |
351 |
google_default_client_secret="%{google_default_client_secret}" |
352 |
|
353 |
|
354 |
# enable_browser_cdms=true \ |
355 |
|
356 |
build/linux/unbundle/replace_gn_files.py --system-libraries %{system_gn_list} |
357 |
third_party/libaddressinput/chromium/tools/update-strings.py |
358 |
|
359 |
%setup_compile_flags |
360 |
CC=%{__cc}; export CC |
361 |
CXX=%{__cxx}; export CXX |
362 |
AR=%{__ar}; export AR |
363 |
NM=%{__nm}; export NM |
364 |
LD="%{__cxx} -fuse-ld=gold"; export LD |
365 |
|
366 |
# filter out -g from CFLAGS and CXXFLAGS to fix builds |
367 |
CFLAGS=$(echo "$CFLAGS"|sed -e 's/-g //') |
368 |
CXXFLAGS=$(echo "$CXXFLAGS"|sed -e 's/-g //') |
369 |
CXXFLAGS="$CXXFLAGS -Wno-attributes -Wno-error=class-memaccess" |
370 |
|
371 |
%ifarch %{ix86} |
372 |
CFLAGS="$CFLAGS -msse2" |
373 |
CXXFLAGS="$CXXFLAGS -msse2" |
374 |
%endif |
375 |
|
376 |
python tools/gn/bootstrap/bootstrap.py --gn-gen-args='%{gn_config}' |
377 |
|
378 |
out/Release/gn gen --args='%{gn_config}' out/Release |
379 |
|
380 |
pushd out/Release |
381 |
ninja %{_smp_mflags} chrome chrome_sandbox |
382 |
popd |
383 |
|
384 |
# man page |
385 |
sed -e "s/@@PACKAGE@@/chromium/" -e "s/@@MENUNAME@@/Chromium Web Browser/" chrome/app/resources/manpage.1.in >out/Release/chromium.1 |
386 |
|
387 |
%install |
388 |
ls out/Release |
389 |
mkdir -p %{buildroot}%{_bindir} |
390 |
mkdir -p %{buildroot}%{_crdir}/locales |
391 |
mkdir -p %{buildroot}%{_crdir}/themes |
392 |
mkdir -p %{buildroot}%{_crdir}/default_apps |
393 |
mkdir -p %{buildroot}%{_mandir}/man1 |
394 |
install -m 755 %{_sourcedir}/chromium-wrapper %{buildroot}%{_crdir}/ |
395 |
install -m 755 out/Release/chrome %{buildroot}%{_crdir}/ |
396 |
install -m 4755 out/Release/chrome_sandbox %{buildroot}%{_crdir}/chrome-sandbox |
397 |
install -m 644 out/Release/chromium.1 %{buildroot}%{_mandir}/man1/%{crname}.1 |
398 |
install -m 644 out/Release/chrome_100_percent.pak %{buildroot}%{_crdir}/ |
399 |
install -m 644 out/Release/chrome_200_percent.pak %{buildroot}%{_crdir}/ |
400 |
install -m 644 out/Release/resources.pak %{buildroot}%{_crdir}/ |
401 |
install -m 644 out/Release/natives_blob.bin %{buildroot}%{_crdir}/ |
402 |
install -m 644 out/Release/snapshot_blob.bin %{buildroot}%{_crdir}/ |
403 |
install -m 755 out/Release/mksnapshot %{buildroot}%{_crdir}/ |
404 |
install -m 644 out/Release/locales/*.pak %{buildroot}%{_crdir}/locales/ |
405 |
install -m 644 chrome/browser/resources/default_apps/* %{buildroot}%{_crdir}/default_apps/ |
406 |
install -m 644 out/Release/v8_context_snapshot.bin %{buildroot}%{_crdir}/ |
407 |
ln -s %{_crdir}/chromium-wrapper %{buildroot}%{_bindir}/%{crname} |
408 |
|
409 |
%ifarch %{ix86} x86_64 |
410 |
mkdir -p %{buildroot}%{_crdir}/swiftshader |
411 |
install -m 755 out/Release/swiftshader/*.so %{buildroot}%{_crdir}/swiftshader/ |
412 |
%endif |
413 |
|
414 |
find out/Release/resources/ -name "*.d" -exec rm {} \; |
415 |
cp -r out/Release/resources %{buildroot}%{_crdir} |
416 |
|
417 |
# desktop file |
418 |
mkdir -p %{buildroot}%{_datadir}/applications |
419 |
install -m 644 %{_sourcedir}/%{crname}.desktop %{buildroot}%{_datadir}/applications/ |
420 |
|
421 |
# symlink to ICU data file |
422 |
ICUDATADIR=$(icuinfo | grep \"icudata.path\" | sed -re 's/^.*>(.*)<.*$/\1/') |
423 |
ICUDATANAME=$(icuinfo | grep \"icudata.name\" | sed -re 's/^.*>(.*)<.*$/\1/') |
424 |
ICUDATAFILE=$(realpath --relative-to=%{_crdir}/ ${ICUDATADIR}/${ICUDATANAME}.dat) |
425 |
ln -s ${ICUDATAFILE} %{buildroot}%{_crdir}/icudtl.dat |
426 |
|
427 |
# icon |
428 |
for i in 22 24 48 64 128 256; do |
429 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps |
430 |
install -m 644 chrome/app/theme/chromium/product_logo_$i.png \ |
431 |
%{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{crname}.png |
432 |
done |
433 |
|
434 |
for i in 16 32; do |
435 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps |
436 |
install -m 644 chrome/app/theme/default_100_percent/chromium/product_logo_$i.png \ |
437 |
%{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{crname}.png |
438 |
done |
439 |
|
440 |
%files -n chromium-browser |
441 |
|
442 |
%files |
443 |
%{_bindir}/%{crname} |
444 |
%dir %{_crdir} |
445 |
%{_crdir}/chromium-wrapper |
446 |
%{_crdir}/chrome |
447 |
%attr(4755,root,root) %{_crdir}/chrome-sandbox |
448 |
%{_crdir}/icudtl.dat |
449 |
%{_crdir}/locales |
450 |
%{_crdir}/natives_blob.bin |
451 |
%{_crdir}/snapshot_blob.bin |
452 |
%{_crdir}/chrome_100_percent.pak |
453 |
%{_crdir}/chrome_200_percent.pak |
454 |
%{_crdir}/resources.pak |
455 |
%{_crdir}/resources |
456 |
%{_crdir}/mksnapshot |
457 |
%{_crdir}/themes |
458 |
%{_crdir}/default_apps |
459 |
%ifarch %{ix86} x86_64 |
460 |
%{_crdir}/swiftshader |
461 |
%endif |
462 |
%{_crdir}/v8_context_snapshot.bin |
463 |
%{_mandir}/man1/%{crname}* |
464 |
%{_datadir}/applications/*.desktop |
465 |
%{_iconsdir}/hicolor/*/apps/%{crname}.png |