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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #------------------------------------------------------------------------------ 1 #------------------------------------------------------------------------------
2 # chrome.spec 2 # chrome.spec
3 #------------------------------------------------------------------------------ 3 #------------------------------------------------------------------------------
4 4
5 #------------------------------------------------------------------------------ 5 #------------------------------------------------------------------------------
6 # Prologue information 6 # Prologue information
7 #------------------------------------------------------------------------------ 7 #------------------------------------------------------------------------------
8 Summary : @@MENUNAME@@ 8 Summary : @@MENUNAME@@
9 License : Multiple, see @@PRODUCTURL@@ 9 License : Multiple, see @@PRODUCTURL@@
10 Name : @@PACKAGE@@-@@CHANNEL@@ 10 Name : @@PACKAGE@@-@@CHANNEL@@
11 Version : @@VERSION@@ 11 Version : @@VERSION@@
12 Release : @@PACKAGE_RELEASE@@ 12 Release : @@PACKAGE_RELEASE@@
13 Group : Applications/Internet 13 Group : Applications/Internet
14 Vendor : @@COMPANY_FULLNAME@@ 14 Vendor : @@COMPANY_FULLNAME@@
15 Url : @@PRODUCTURL@@ 15 Url : @@PRODUCTURL@@
16 Packager : @@MAINTNAME@@ <@@MAINTMAIL@@> 16 Packager : @@MAINTNAME@@ <@@MAINTMAIL@@>
17 17
18 Provides : @@PROVIDES@@ = %{version} 18 Provides : @@PROVIDES@@ = %{version}
19 Requires : @@DEPENDS@@ 19 Requires : @@DEPENDS@@
20 Requires(post) : %{_sbindir}/update-alternatives
21 Requires(preun) : %{_sbindir}/update-alternatives
20 Autoreqprov : No 22 Autoreqprov : No
21 Conflicts : @@REPLACES@@ 23 Conflicts : @@REPLACES@@
22 24
23 BuildRoot : %{_tmppath}/%{name}-%{version}-root 25 BuildRoot : %{_tmppath}/%{name}-%{version}-root
24 26
25 # The prefix is pretty important; RPM uses this to figure out 27 # The prefix is pretty important; RPM uses this to figure out
26 # how to make a package relocatable 28 # how to make a package relocatable
27 prefix : /opt 29 prefix : /opt
28 30
29 #------------------------------------------------------------------------------ 31 #------------------------------------------------------------------------------
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 %defattr(-,root,root) 80 %defattr(-,root,root)
79 #%doc README 81 #%doc README
80 82
81 # We cheat and just let RPM figure it out for us; everything we install 83 # We cheat and just let RPM figure it out for us; everything we install
82 # should go under this prefix anyways. 84 # should go under this prefix anyways.
83 @@INSTALLDIR@@ 85 @@INSTALLDIR@@
84 86
85 # Be explicit about the files we scatter throughout the system we don't 87 # Be explicit about the files we scatter throughout the system we don't
86 # accidentally "own" stuff that's not ours (crbug.com/123990). 88 # accidentally "own" stuff that's not ours (crbug.com/123990).
87 /etc/cron.daily/@@PACKAGE_FILENAME@@ 89 /etc/cron.daily/@@PACKAGE_FILENAME@@
88 /usr/bin/@@PACKAGE_FILENAME@@ 90 %ghost %attr(755,root,root) /usr/bin/google-chrome
91 /usr/bin/@@USR_BIN_SYMLINK_NAME@@
89 /usr/share/gnome-control-center/default-apps/@@PACKAGE_FILENAME@@.xml 92 /usr/share/gnome-control-center/default-apps/@@PACKAGE_FILENAME@@.xml
90 %docdir /usr/share/man/man1 93 %docdir /usr/share/man/man1
91 /usr/share/man/man1/@@PACKAGE_FILENAME@@.1 94 /usr/share/man/man1/@@PACKAGE_FILENAME@@.1
92 95
93 #------------------------------------------------------------------------------ 96 #------------------------------------------------------------------------------
94 # Pre install script 97 # Pre install script
95 #------------------------------------------------------------------------------ 98 #------------------------------------------------------------------------------
96 %pre 99 %pre
97 100
98 exit 0 101 exit 0
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 # configured at install time, so wait a bit then kick the cron job to do 147 # configured at install time, so wait a bit then kick the cron job to do
145 # whatever is left. Probably the db will be unlocked by then, but if not, the 148 # whatever is left. Probably the db will be unlocked by then, but if not, the
146 # cron job will keep retrying. 149 # cron job will keep retrying.
147 # Do this with 'at' instead of a backgrounded shell because zypper waits on all 150 # Do this with 'at' instead of a backgrounded shell because zypper waits on all
148 # sub-shells to finish before it finishes, which is exactly the opposite of 151 # sub-shells to finish before it finishes, which is exactly the opposite of
149 # what we want here. Also preemptively start atd because for some reason it's 152 # what we want here. Also preemptively start atd because for some reason it's
150 # not always running, which kind of defeats the purpose of having 'at' as a 153 # not always running, which kind of defeats the purpose of having 'at' as a
151 # required LSB command. 154 # required LSB command.
152 service atd start 155 service atd start
153 echo "sh /etc/cron.daily/@@PACKAGE@@" | at now + 2 minute > /dev/null 2>&1 156 echo "sh /etc/cron.daily/@@PACKAGE@@" | at now + 2 minute > /dev/null 2>&1
157
158 CHANNEL=@@CHANNEL@@
159 case $CHANNEL in
160 stable )
161 PRIORITY=200
162 ;;
163 beta )
164 PRIORITY=150
165 ;;
166 unstable )
167 PRIORITY=120
168 ;;
169 * )
170 PRIORITY=0
171 ;;
172 esac
173
174 %{_sbindir}/update-alternatives --install /usr/bin/google-chrome google-chrome \
175 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY
176
154 exit 0 177 exit 0
155 178
156 179
157 #------------------------------------------------------------------------------ 180 #------------------------------------------------------------------------------
158 # Pre uninstallation script 181 # Pre uninstallation script
159 #------------------------------------------------------------------------------ 182 #------------------------------------------------------------------------------
160 %preun 183 %preun
161 184
162 if [ "$1" -eq "0" ]; then 185 if [ "$1" -eq "0" ]; then
163 mode="uninstall" 186 mode="uninstall"
164 elif [ "$1" -eq "1" ]; then 187 elif [ "$1" -eq "1" ]; then
165 mode="upgrade" 188 mode="upgrade"
166 fi 189 fi
167 190
168 @@include@@../common/rpm.include 191 @@include@@../common/rpm.include
169 192
170 @@include@@../common/symlinks.include 193 @@include@@../common/symlinks.include
171 194
172 # Only remove menu items and symlinks on uninstall. When upgrading, 195 # Only remove menu items and symlinks on uninstall. When upgrading,
173 # old_pkg's %preun runs after new_pkg's %post. 196 # old_pkg's %preun runs after new_pkg's %post.
174 if [ "$mode" = "uninstall" ]; then 197 if [ "$mode" = "uninstall" ]; then
175 @@include@@../common/prerm.include 198 @@include@@../common/prerm.include
176 remove_nss_symlinks 199 remove_nss_symlinks
177 remove_udev_symlinks 200 remove_udev_symlinks
201
202 %{_sbindir}/update-alternatives --remove google-chrome \
203 /usr/bin/@@USR_BIN_SYMLINK_NAME@@
178 fi 204 fi
179 205
180 # On Debian we only remove when we purge. However, RPM has no equivalent to 206 # On Debian we only remove when we purge. However, RPM has no equivalent to
181 # dpkg --purge, so this is all disabled. 207 # dpkg --purge, so this is all disabled.
182 # 208 #
183 #determine_rpm_package_manager 209 #determine_rpm_package_manager
184 # 210 #
185 #case $PACKAGEMANAGER in 211 #case $PACKAGEMANAGER in
186 #"yum") 212 #"yum")
187 # remove_yum 213 # remove_yum
188 # ;; 214 # ;;
189 #"urpmi") 215 #"urpmi")
190 # remove_urpmi 216 # remove_urpmi
191 # ;; 217 # ;;
192 #"yast") 218 #"yast")
193 # remove_yast 219 # remove_yast
194 # ;; 220 # ;;
195 #esac 221 #esac
196 222
197 exit 0 223 exit 0
198 224
199 #------------------------------------------------------------------------------ 225 #------------------------------------------------------------------------------
200 # Post uninstallation script 226 # Post uninstallation script
201 #------------------------------------------------------------------------------ 227 #------------------------------------------------------------------------------
202 %postun 228 %postun
203 229
204 exit 0 230 exit 0
OLDNEW
« 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