Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10691)

Unified Diff: chrome_linux/installer/rpm/chrome.spec.template

Issue 42163002: Roll Linux reference build to official build 31.0.1650.34 (trunk r224845, branch r230433) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/reference_builds/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_linux/installer/rpm/build.sh ('k') | chrome_linux/installer/rpm/expected_deps_i386 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_linux/installer/rpm/chrome.spec.template
===================================================================
--- chrome_linux/installer/rpm/chrome.spec.template (revision 230844)
+++ chrome_linux/installer/rpm/chrome.spec.template (working copy)
@@ -17,6 +17,8 @@
Provides : @@PROVIDES@@ = %{version}
Requires : @@DEPENDS@@
+Requires(post) : %{_sbindir}/update-alternatives
+Requires(preun) : %{_sbindir}/update-alternatives
Autoreqprov : No
Conflicts : @@REPLACES@@
@@ -85,7 +87,8 @@
# Be explicit about the files we scatter throughout the system we don't
# accidentally "own" stuff that's not ours (crbug.com/123990).
/etc/cron.daily/@@PACKAGE_FILENAME@@
-/usr/bin/@@PACKAGE_FILENAME@@
+%ghost %attr(755,root,root) /usr/bin/google-chrome
+/usr/bin/@@USR_BIN_SYMLINK_NAME@@
/usr/share/gnome-control-center/default-apps/@@PACKAGE_FILENAME@@.xml
%docdir /usr/share/man/man1
/usr/share/man/man1/@@PACKAGE_FILENAME@@.1
@@ -151,6 +154,26 @@
# required LSB command.
service atd start
echo "sh /etc/cron.daily/@@PACKAGE@@" | at now + 2 minute > /dev/null 2>&1
+
+CHANNEL=@@CHANNEL@@
+case $CHANNEL in
+ stable )
+ PRIORITY=200
+ ;;
+ beta )
+ PRIORITY=150
+ ;;
+ unstable )
+ PRIORITY=120
+ ;;
+ * )
+ PRIORITY=0
+ ;;
+esac
+
+%{_sbindir}/update-alternatives --install /usr/bin/google-chrome google-chrome \
+ /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY
+
exit 0
@@ -175,6 +198,9 @@
@@include@@../common/prerm.include
remove_nss_symlinks
remove_udev_symlinks
+
+ %{_sbindir}/update-alternatives --remove google-chrome \
+ /usr/bin/@@USR_BIN_SYMLINK_NAME@@
fi
# On Debian we only remove when we purge. However, RPM has no equivalent to
« no previous file with comments | « chrome_linux/installer/rpm/build.sh ('k') | chrome_linux/installer/rpm/expected_deps_i386 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698