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 AIzaSyCV9AOzytWwWCtNE8f7ZV56fP1u9yWwhVU |
17 |
%define google_default_client_id 1039996407057.apps.googleusercontent.com |
18 |
%define google_default_client_secret mLT8XooDODav1OJG5G3bY61d |
19 |
|
20 |
Name: chromium-browser-stable |
21 |
Version: 65.0.3325.162 |
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 |
# (cjw) setup toolchain for mageia builds, from gentoo https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/chromium/files/toolchain/BUILD.gn |
34 |
Source5: BUILD.gn |
35 |
# (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. |
36 |
Patch6: chromium-55-extra-media.patch |
37 |
# (cjw) Recognize mimetypes for WMV (.wmv), FLV (.flv) and MPEG (.mpg) videos |
38 |
Patch7: chromium-40-wmvflvmpg.patch |
39 |
# (cjw) disable external components -- this stops chromium from downloading hotword stuff, for example |
40 |
Patch10: chromium-45-no-external-components.patch |
41 |
# (debian) disable third party cookies by default |
42 |
Patch11: chromium-third-party-cookies-off-by-default.patch |
43 |
# (cjw) try to get widevine binary plugin to work (must be taken from a chrome download bundle), from gentoo |
44 |
Patch14: chromium-45-widevine.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 |
Patch39: chromium-59-system-icu.patch |
69 |
# |
70 |
Patch40: chromium-59-gcc5.patch |
71 |
# system libvpx |
72 |
Patch42: chromium-60-system-libvpx.patch |
73 |
# clang builtin subtract functions, scoped enum |
74 |
Patch47: chromium-61-gcc5.patch |
75 |
# enum compared with anonymous enum => warning |
76 |
Patch52: chromium-62-gcc5.patch |
77 |
# (cjw) fix build with icu 58 |
78 |
Patch53: chromium-62-icu-58.patch |
79 |
# (cjw) fix coding errors resulting in gcc 7 warning |
80 |
Patch54: chromium-62-gcc7.patch |
81 |
# (cjw) fix build with gtk2 |
82 |
Patch55: chromium-62-gtk2.patch |
83 |
# (cjw) fix more gcc warnings |
84 |
Patch58: chromium-63-gcc7.patch |
85 |
# (cjw) fix gcc errors and warnings |
86 |
Patch177: chromium-64-gcc7.patch |
87 |
# (cjw) fix even more gcc warnings |
88 |
Patch179: chromium-65-gcc7.patch |
89 |
# (cjw) fix build with gtk2 |
90 |
Patch180: chromium-65-gtk2.patch |
91 |
|
92 |
Provides: %{crname} |
93 |
Obsoletes: chromium-browser-unstable < 26.0.1410.51 |
94 |
Obsoletes: chromium-browser-beta < 26.0.1410.51 |
95 |
Obsoletes: chromium-browser < 1:9.0.597.94 |
96 |
BuildRequires: bison |
97 |
BuildRequires: flex |
98 |
BuildRequires: gperf |
99 |
BuildRequires: icu |
100 |
BuildRequires: ninja |
101 |
BuildRequires: yasm |
102 |
BuildRequires: bzip2-devel |
103 |
BuildRequires: cups-devel |
104 |
BuildRequires: elfutils-devel |
105 |
BuildRequires: ffmpeg-devel |
106 |
BuildRequires: glib2-devel |
107 |
BuildRequires: gtk2-devel |
108 |
BuildRequires: libatomic-devel |
109 |
#BuildRequires: libevent-devel |
110 |
BuildRequires: libmesagl-devel |
111 |
BuildRequires: libpam-devel |
112 |
BuildRequires: libpulseaudio-devel |
113 |
%if %mgaver >= 6 |
114 |
BuildRequires: nodejs |
115 |
%endif |
116 |
BuildRequires: osmesa-devel |
117 |
#BuildRequires: protobuf-devel |
118 |
BuildRequires: snappy-devel |
119 |
BuildRequires: perl(Switch) |
120 |
BuildRequires: pkgconfig(alsa) |
121 |
BuildRequires: pkgconfig(atk) |
122 |
BuildRequires: pkgconfig(dbus-glib-1) |
123 |
BuildRequires: pkgconfig(expat) |
124 |
BuildRequires: pkgconfig(flac) |
125 |
BuildRequires: pkgconfig(fontconfig) |
126 |
BuildRequires: pkgconfig(freetype2) |
127 |
BuildRequires: pkgconfig(glu) |
128 |
BuildRequires: pkgconfig(gnome-keyring-1) |
129 |
BuildRequires: pkgconfig(gnutls) |
130 |
%if %mgaver >= 7 |
131 |
BuildRequires: pkgconfig(harfbuzz) |
132 |
%endif |
133 |
BuildRequires: pkgconfig(icu-i18n) |
134 |
BuildRequires: pkgconfig(jsoncpp) |
135 |
BuildRequires: pkgconfig(libcap) |
136 |
BuildRequires: pkgconfig(libdrm) |
137 |
BuildRequires: pkgconfig(libexif) |
138 |
BuildRequires: pkgconfig(libjpeg) |
139 |
BuildRequires: pkgconfig(libopenjp2) |
140 |
BuildRequires: pkgconfig(libpci) |
141 |
BuildRequires: pkgconfig(libpng) |
142 |
BuildRequires: pkgconfig(libtiff-4) |
143 |
BuildRequires: pkgconfig(libusb-1.0) |
144 |
%if %mgaver >= 7 |
145 |
BuildRequires: pkgconfig(libvpx) |
146 |
%endif |
147 |
BuildRequires: pkgconfig(libwebp) |
148 |
BuildRequires: pkgconfig(libxml-2.0) |
149 |
BuildRequires: pkgconfig(libxslt) |
150 |
BuildRequires: pkgconfig(minizip) |
151 |
BuildRequires: pkgconfig(nspr) |
152 |
BuildRequires: pkgconfig(nss) |
153 |
BuildRequires: pkgconfig(opus) |
154 |
BuildRequires: pkgconfig(speech-dispatcher) |
155 |
BuildRequires: pkgconfig(speex) |
156 |
BuildRequires: pkgconfig(udev) |
157 |
BuildRequires: pkgconfig(xscrnsaver) |
158 |
BuildRequires: pkgconfig(xt) |
159 |
BuildRequires: pkgconfig(xtst) |
160 |
BuildRequires: pkgconfig(zlib) |
161 |
# Unused but building gn wants it to be present |
162 |
BuildRequires: pkgconfig(gconf-2.0) |
163 |
BuildRequires: pkgconfig(gtk+-3.0) |
164 |
BuildRequires: git |
165 |
ExclusiveArch: i586 x86_64 |
166 |
# armv5tl armv7hl |
167 |
|
168 |
%description |
169 |
Chromium is a browser that combines a minimal design with sophisticated |
170 |
technology to make the web faster, safer, and easier. |
171 |
|
172 |
For certain media playback features - AAC decoding - this package |
173 |
currently assumes decoder support is available, while that is only true if |
174 |
the 'tainted' variety of the libavcodec package is installed. When the 'core' |
175 |
variety of libavcodec is installed, chromium may output noise for AAC audio. |
176 |
|
177 |
%ifarch %{ix86} |
178 |
The i586 build of this package does not work on machines that do not |
179 |
support the SSE2 instruction set extension. |
180 |
%endif |
181 |
|
182 |
%package -n chromium-browser |
183 |
Summary: A fast webkit-based web browser (transition package) |
184 |
Epoch: 1 |
185 |
Group: Networking/WWW |
186 |
Requires: %{name} = %{version}-%{release} |
187 |
|
188 |
%description -n chromium-browser |
189 |
Chromium is a browser that combines a minimal design with sophisticated |
190 |
technology to make the web faster, safer, and easier. |
191 |
|
192 |
This is a transition package that installs the stable channel Chromium |
193 |
browser. |
194 |
|
195 |
%prep |
196 |
%setup -q -n chromium-%{version} |
197 |
%autopatch -p1 |
198 |
|
199 |
# files we do not want from upstream source bundles |
200 |
rm -rf breakpad/src/processor/testdata/ |
201 |
rm -rf chrome/app/test_data/dlls/ |
202 |
rm -rf chrome/common/extensions/docs/ |
203 |
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} |
204 |
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} |
205 |
rmdir chrome/test/data/webui/{settings,extensions}/a11y |
206 |
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} |
207 |
rm -rf chrome/tools/test/reference_build/chrome_linux/ |
208 |
rm -rf components/test/data/component_updater/jebgalgnebhfojomionfpkfelancnnkf/component1.dll |
209 |
rm -rf content/test/data/ |
210 |
#rm -rf net/data/ |
211 |
# v the root BUILD.gn includes files from this dir |
212 |
#rm -rf ppapi/examples/ |
213 |
rm -rf ppapi/native_client/tests/ |
214 |
rm -rf third_party/apache-win32/ |
215 |
rm -rf third_party/binutils/ |
216 |
rm -rf third_party/expat/files/ |
217 |
rm -rf third_party/ffmpeg/*/* |
218 |
rm -rf third_party/ffmpeg/*.[ch] |
219 |
rm -rf third_party/flac/{include,src} |
220 |
#rm -rf third_party/freetype/{src,include} |
221 |
rm -rf third_party/icu/{android,linux,mac,patches,public,source,windows} |
222 |
rm -rf third_party/jsoncpp/source |
223 |
rm -rf third_party/lcov |
224 |
#rm -rf base/third_party/libevent/*/* |
225 |
#rm -rf base/third_party/libevent/*.[ch] |
226 |
%if %mgaver >= 7 |
227 |
rm -rf third_party/libvpx/source/{libvpx,config} |
228 |
%endif |
229 |
rm -rf third_party/libexif/sources |
230 |
rm -rf third_party/libjpeg/*.[ch] |
231 |
rm -rf third_party/libjpeg_turbo/*.[ch] |
232 |
rm -rf third_party/libpng/*.[ch] |
233 |
rm -rf third_party/libxslt/{libexslt,libxslt,linux,mac,win32} |
234 |
#rm -rf third_party/mesa/src/src |
235 |
rm -rf third_party/swig |
236 |
rm -rf third_party/WebKit/LayoutTests/ |
237 |
rm -rf third_party/WebKit/Tools/Scripts/ |
238 |
rm -rf third_party/xdg-utils/tests/ |
239 |
rm -rf third_party/yasm/source/ |
240 |
rm -rf third_party/zlib/{*.[ch],contrib/minizip} |
241 |
rm -rf tools/gyp/test/ |
242 |
#rm -rf v8/test/ |
243 |
rm -f third_party/pdfium/third_party/libjpeg/*.[ch] |
244 |
rm -f third_party/pdfium/third_party/libopenjpeg20/*.[ch] |
245 |
rm -rf third_party/pdfium/third_party/libpng16 |
246 |
rm -f third_party/pdfium/third_party/libtiff/*.[ch] |
247 |
rm -rf third_party/pdfium/third_party/zlib_v128 |
248 |
|
249 |
rm -f third_party/skia/platform_tools/android/apps/gradle/wrapper/gradle-wrapper.jar |
250 |
rm -f third_party/WebKit/Source/devtools/scripts/jsdoc-validator/jsdoc-validator.jar |
251 |
rm -f third_party/WebKit/Source/devtools/scripts/closure/compiler.jar |
252 |
rm -f third_party/WebKit/Source/devtools/scripts/compiler-runner/closure-runner.jar |
253 |
rm -rf third_party/sfntly/src/java/lib |
254 |
rm -f third_party/haha/haha-2.0.2.jar |
255 |
rm -f third_party/android_platform/webview/frameworks_5.1.0_r1.jar |
256 |
rm -f third_party/android_platform/webview/frameworks_6.0.jar |
257 |
rm -f third_party/libphonenumber/dist/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar |
258 |
rm -f third_party/libphonenumber/dist/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar |
259 |
rm -rf third_party/libphonenumber/dist/java/demo/war/WEB-INF/lib |
260 |
rm -rf third_party/libphonenumber/dist/java/lib |
261 |
rm -f third_party/webrtc/examples/androidapp/third_party/autobanh/autobanh.jar |
262 |
rm -rf third_party/cacheinvalidation/src/example-app-build/libs |
263 |
rm -f third_party/closure_compiler/runner/runner.jar |
264 |
rm -f third_party/closure_compiler/compiler/compiler.jar |
265 |
rm -rf third_party/proguard/lib |
266 |
rm -f third_party/checkstyle/checkstyle-6.5-all.jar |
267 |
rm -rf third_party/sfntly/src/cpp/ext |
268 |
|
269 |
# Remove bundled ICU; its header files appear to get picked up instead of |
270 |
# the system ones, leading to errors during the final link stage. |
271 |
# https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/BNGvJc08B6Q |
272 |
find third_party/icu -type f \! -regex '.*\.\(gn\|gni\|isolate\)' -delete |
273 |
|
274 |
# Hard code extra version |
275 |
FILE=chrome/common/channel_info_posix.cc |
276 |
sed -i.orig -re 's/char\s*\*(.*)getenv\("CHROME_VERSION_EXTRA"\)/char const *\1"%{product_vendor} %{product_version}"/' $FILE |
277 |
cmp $FILE $FILE.orig && exit 1 |
278 |
|
279 |
# version taken from: strings opt/google/chrome-unstable/chrome | grep -C 1 " (version:" |
280 |
%define widevine_version 1.4.8.1008 |
281 |
for chrome_arch in ia32 x64; do |
282 |
mkdir -p third_party/widevine/cdm/linux/${chrome_arch} |
283 |
sed -e "s/@WIDEVINE_VERSION@/%{widevine_version}/" %{SOURCE4} > third_party/widevine/cdm/linux/${chrome_arch}/widevine_cdm_version.h |
284 |
done |
285 |
|
286 |
%build |
287 |
%if %mgaver >= 7 |
288 |
%define system_gn_list ffmpeg flac libwebp libxml libxslt snappy yasm libvpx libpng icu zlib jsoncpp opus libdrm |
289 |
%else |
290 |
%define system_gn_list ffmpeg flac libwebp libxml libxslt snappy yasm libpng icu zlib jsoncpp opus libdrm freetype |
291 |
%endif |
292 |
# handled by upstream regular build scripts? : freetype harfbuzz-ng |
293 |
# libevent mesa |
294 |
|
295 |
# v NO TABS IN HERE! |
296 |
%define gn_config use_gconf=false\ |
297 |
use_sysroot=false \ |
298 |
system_libdir="%{_lib}" \ |
299 |
icu_use_data_file=true \ |
300 |
enable_nacl=false \ |
301 |
is_nacl_glibc=false \ |
302 |
binutils_path="%{_bindir}" \ |
303 |
linux_use_bundled_binutils=false \ |
304 |
use_gold=false \ |
305 |
custom_toolchain="%{_sourcedir}:default" \ |
306 |
proprietary_codecs=true \ |
307 |
linux_link_libgio = true \ |
308 |
linux_link_libudev = true \ |
309 |
linux_link_libspeechd = true \ |
310 |
enable_ac3_eac3_audio_demuxing=true \ |
311 |
enable_mse_mpeg2ts_stream_parser=true \ |
312 |
enable_hevc_demuxing=true \ |
313 |
use_system_libjpeg=true \ |
314 |
use_libjpeg_turbo=false \ |
315 |
enable_widevine=true \ |
316 |
pdf_enable_xfa=true \ |
317 |
use_pulseaudio=true \ |
318 |
use_allocator="none" \ |
319 |
use_gtk3=false \ |
320 |
fatal_linker_warnings=false \ |
321 |
use_libpci = true \ |
322 |
is_debug=false \ |
323 |
is_clang=false \ |
324 |
use_system_freetype=true \ |
325 |
use_system_harfbuzz=true \ |
326 |
use_system_libpng=true \ |
327 |
use_custom_libcxx=false \ |
328 |
google_api_key="%{google_api_key}" \ |
329 |
google_default_client_id="%{google_default_client_id}" \ |
330 |
google_default_client_secret="%{google_default_client_secret}" |
331 |
|
332 |
|
333 |
# enable_browser_cdms=true \ |
334 |
|
335 |
build/linux/unbundle/replace_gn_files.py --system-libraries %{system_gn_list} |
336 |
third_party/libaddressinput/chromium/tools/update-strings.py |
337 |
|
338 |
%setup_compile_flags |
339 |
CC=%{__cc}; export CC |
340 |
CXX=%{__cxx}; export CXX |
341 |
AR=%{__ar}; export AR |
342 |
NM=%{__nm}; export NM |
343 |
LD=%{__cxx}; export LD |
344 |
|
345 |
# filter out -g from CFLAGS and CXXFLAGS to fix builds |
346 |
CFLAGS=$(echo "$CFLAGS"|sed -e 's/-g //') |
347 |
CXXFLAGS=$(echo "$CXXFLAGS"|sed -e 's/-g //') |
348 |
CXXFLAGS="$CXXFLAGS -Wno-error=attributes -Wno-error=comment -Wno-error=unused-variable -Wno-error=noexcept-type -Wno-error=register -Wno-error=strict-overflow -Wno-error=deprecated-declarations" |
349 |
|
350 |
python tools/gn/bootstrap/bootstrap.py --gn-gen-args='%{gn_config}' |
351 |
|
352 |
out/Release/gn gen --args='%{gn_config}' out/Release |
353 |
|
354 |
pushd out/Release |
355 |
ninja %{_smp_mflags} chrome chrome_sandbox widevinecdmadapter |
356 |
popd |
357 |
|
358 |
%install |
359 |
ls out/Release |
360 |
mkdir -p %{buildroot}%{_bindir} |
361 |
mkdir -p %{buildroot}%{_crdir}/locales |
362 |
mkdir -p %{buildroot}%{_crdir}/themes |
363 |
mkdir -p %{buildroot}%{_crdir}/default_apps |
364 |
mkdir -p %{buildroot}%{_crdir}/swiftshader |
365 |
install -m 755 %{_sourcedir}/chromium-wrapper %{buildroot}%{_crdir}/ |
366 |
install -m 755 out/Release/chrome %{buildroot}%{_crdir}/ |
367 |
install -m 4755 out/Release/chrome_sandbox %{buildroot}%{_crdir}/chrome-sandbox |
368 |
install -m 644 out/Release/chrome_100_percent.pak %{buildroot}%{_crdir}/ |
369 |
install -m 644 out/Release/chrome_200_percent.pak %{buildroot}%{_crdir}/ |
370 |
install -m 644 out/Release/resources.pak %{buildroot}%{_crdir}/ |
371 |
install -m 644 out/Release/natives_blob.bin %{buildroot}%{_crdir}/ |
372 |
install -m 644 out/Release/snapshot_blob.bin %{buildroot}%{_crdir}/ |
373 |
install -m 644 out/Release/keyboard_resources.pak %{buildroot}%{_crdir}/ |
374 |
install -m 644 out/Release/libwidevinecdmadapter.so %{buildroot}%{_crdir}/ |
375 |
install -m 755 out/Release/mksnapshot %{buildroot}%{_crdir}/ |
376 |
install -m 644 out/Release/locales/*.pak %{buildroot}%{_crdir}/locales/ |
377 |
install -m 644 chrome/browser/resources/default_apps/* %{buildroot}%{_crdir}/default_apps/ |
378 |
install -m 755 out/Release/swiftshader/*.so %{buildroot}%{_crdir}/swiftshader/ |
379 |
ln -s %{_crdir}/chromium-wrapper %{buildroot}%{_bindir}/%{crname} |
380 |
|
381 |
find out/Release/resources/ -name "*.d" -exec rm {} \; |
382 |
cp -r out/Release/resources %{buildroot}%{_crdir} |
383 |
|
384 |
# desktop file |
385 |
mkdir -p %{buildroot}%{_datadir}/applications |
386 |
install -m 644 %{_sourcedir}/%{crname}.desktop %{buildroot}%{_datadir}/applications/ |
387 |
|
388 |
# symlink to ICU data file |
389 |
ICUDATADIR=$(icuinfo | grep \"icudata.path\" | sed -re 's/^.*>(.*)<.*$/\1/') |
390 |
ICUDATANAME=$(icuinfo | grep \"icudata.name\" | sed -re 's/^.*>(.*)<.*$/\1/') |
391 |
ICUDATAFILE=$(realpath --relative-to=%{_crdir}/ ${ICUDATADIR}/${ICUDATANAME}.dat) |
392 |
ln -s ${ICUDATAFILE} %{buildroot}%{_crdir}/icudtl.dat |
393 |
|
394 |
# icon |
395 |
for i in 22 24 48 64 128 256; do |
396 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps |
397 |
install -m 644 chrome/app/theme/chromium/product_logo_$i.png \ |
398 |
%{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{crname}.png |
399 |
done |
400 |
|
401 |
for i in 16 32; do |
402 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps |
403 |
install -m 644 chrome/app/theme/default_100_percent/chromium/product_logo_$i.png \ |
404 |
%{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{crname}.png |
405 |
done |
406 |
|
407 |
%files -n chromium-browser |
408 |
|
409 |
%files |
410 |
%{_bindir}/%{crname} |
411 |
%dir %{_crdir} |
412 |
%{_crdir}/chromium-wrapper |
413 |
%{_crdir}/chrome |
414 |
%attr(4755,root,root) %{_crdir}/chrome-sandbox |
415 |
%{_crdir}/icudtl.dat |
416 |
%{_crdir}/locales |
417 |
%{_crdir}/natives_blob.bin |
418 |
%{_crdir}/snapshot_blob.bin |
419 |
%{_crdir}/chrome_100_percent.pak |
420 |
%{_crdir}/chrome_200_percent.pak |
421 |
%{_crdir}/keyboard_resources.pak |
422 |
%{_crdir}/resources.pak |
423 |
%{_crdir}/resources |
424 |
%{_crdir}/libwidevinecdmadapter.so |
425 |
%{_crdir}/mksnapshot |
426 |
%{_crdir}/themes |
427 |
%{_crdir}/default_apps |
428 |
%{_crdir}/swiftshader |
429 |
%{_datadir}/applications/*.desktop |
430 |
%{_iconsdir}/hicolor/*/apps/%{crname}.png |