OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # TODO(mmoss) This currently only works with official builds, since non-official | 7 # TODO(mmoss) This currently only works with official builds, since non-official |
8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging. | 8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging. |
9 | 9 |
10 set -e | 10 set -e |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 # libcairo, libpangocairo, libasound are in LSB 4. and no longer explicitly | 119 # libcairo, libpangocairo, libasound are in LSB 4. and no longer explicitly |
120 # required. | 120 # required. |
121 # xdg-utils is still optional in LSB 4.0. | 121 # xdg-utils is still optional in LSB 4.0. |
122 # nss (bundled) is optional in LSB 4.0. | 122 # nss (bundled) is optional in LSB 4.0. |
123 # | 123 # |
124 # We want to depend on the system SSL certs so wget can upload crash reports | 124 # We want to depend on the system SSL certs so wget can upload crash reports |
125 # securely, but there's no common capability between the distros. Bugs filed: | 125 # securely, but there's no common capability between the distros. Bugs filed: |
126 # https://qa.mandriva.com/show_bug.cgi?id=55714 | 126 # https://qa.mandriva.com/show_bug.cgi?id=55714 |
127 # https://bugzilla.redhat.com/show_bug.cgi?id=538158 | 127 # https://bugzilla.redhat.com/show_bug.cgi?id=538158 |
128 # https://bugzilla.novell.com/show_bug.cgi?id=556248 | 128 # https://bugzilla.novell.com/show_bug.cgi?id=556248 |
129 # | |
130 # We want to depend on liberation-fonts as well, but there is no such package | |
131 # for Fedora. https://bugzilla.redhat.com/show_bug.cgi?id=1252564 | |
132 DEPENDS="lsb >= 4.0, \ | 129 DEPENDS="lsb >= 4.0, \ |
133 libcurl.so.4${EMPTY_VERSION}${PKG_ARCH}, \ | 130 libcurl.so.4${EMPTY_VERSION}${PKG_ARCH}, \ |
| 131 liberation-fonts, \ |
134 libnss3.so(NSS_3.14.3)${PKG_ARCH}, \ | 132 libnss3.so(NSS_3.14.3)${PKG_ARCH}, \ |
135 wget, \ | 133 wget, \ |
136 xdg-utils, \ | 134 xdg-utils, \ |
137 zlib, \ | 135 zlib, \ |
138 $(echo "${DETECTED_DEPENDS}" | tr '\n' ',')" | 136 $(echo "${DETECTED_DEPENDS}" | tr '\n' ',')" |
139 gen_spec | 137 gen_spec |
140 | 138 |
141 # Create temporary rpmbuild dirs. | 139 # Create temporary rpmbuild dirs. |
142 RPMBUILD_DIR=$(mktemp -d -t rpmbuild.XXXXXX) || exit 1 | 140 RPMBUILD_DIR=$(mktemp -d -t rpmbuild.XXXXXX) || exit 1 |
143 mkdir -p "$RPMBUILD_DIR/BUILD" | 141 mkdir -p "$RPMBUILD_DIR/BUILD" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 ;; | 304 ;; |
307 * ) | 305 * ) |
308 echo | 306 echo |
309 echo "ERROR: Don't know how to build RPMs for '$TARGETARCH'." | 307 echo "ERROR: Don't know how to build RPMs for '$TARGETARCH'." |
310 echo | 308 echo |
311 exit 1 | 309 exit 1 |
312 ;; | 310 ;; |
313 esac | 311 esac |
314 | 312 |
315 do_package | 313 do_package |
OLD | NEW |