From: Elan Ruusamäe Date: Wed, 23 Sep 2009 15:14:44 +0000 (+0000) Subject: - package xdg-utils for desktop integration X-Git-Tag: auto/th/chromium-browser-bin-4_0_254_0-0_32603_1~14 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fchromium-browser-bin.git;a=commitdiff_plain;h=0660457846d4fef229e79f560c4507c27719a784 - package xdg-utils for desktop integration Changed files: chromium-browser-bin.spec -> 1.5 chromium-browser.sh -> 1.1 --- diff --git a/chromium-browser-bin.spec b/chromium-browser-bin.spec index 36db61c..4e9ba21 100644 --- a/chromium-browser-bin.spec +++ b/chromium-browser-bin.spec @@ -15,6 +15,7 @@ Source4: find-lang.sh Requires: browser-plugins >= 2.0 Requires: nspr Requires: nss +Requires: xdg-utils Provides: wwwbrowser ExclusiveArch: %{x8664} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -40,7 +41,6 @@ Chromium is an open-source web browser, powered by WebKit. %{__sed} -e 's,@localedir@,%{_libdir}/%{name},' %{SOURCE4} > find-lang.sh mv chrome-linux/product_logo_48.png . -mv chrome-linux/xdg-settings . mv chrome-linux/chromium-browser.1 . mv chrome-linux/chrome-wrapper . mv chrome-linux/{chrome,chromium-browser} @@ -84,6 +84,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/%{name}/resources %{_libdir}/%{name}/themes %attr(755,root,root) %{_libdir}/%{name}/chromium-browser + # These unique permissions are intentional and necessary for the sandboxing %attr(4555,root,root) %{_libdir}/%{name}/chrome_sandbox @@ -100,3 +101,6 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/chromium-browser-bin/libnssutil3.so.1d %attr(755,root,root) %{_libdir}/chromium-browser-bin/libsmime3.so.1d %attr(755,root,root) %{_libdir}/chromium-browser-bin/libssl3.so.1d + +# bundle a this copy until xdg-utils will have this itself +%attr(755,root,root) %{_libdir}/%{name}/xdg-settings diff --git a/chromium-browser.sh b/chromium-browser.sh new file mode 100644 index 0000000..9775730 --- /dev/null +++ b/chromium-browser.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Always use our ffmpeg libs. +# Also symlinkes for nss/nspr libs can be found from our dir. +export LD_LIBRARY_PATH=/usr/lib64/chromium-browser-bin${LD_LIBRARY_PATH:+:"$LD_LIBRARY_PATH"} + +# for to find xdg-settings +export PATH=/usr/lib64/chromium-browser-bin${PATH:+:"$PATH"} + +exec /usr/lib64/chromium-browser-bin/chromium-browser "$@"