author | Alasdair Lumsden <al@everycity.co.uk> |
Tue, 16 Aug 2011 20:54:07 +0000 | |
branch | oi_151a |
changeset 1398 | 3cd5b2156d4c |
parent 37 | 829190321f53 |
permissions | -rw-r--r-- |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
1 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
3 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
7 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
11 |
# and limitations under the License. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
12 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
14 |
# file and include the License file at src/OPENSOLARIS.LICENSE. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
18 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
20 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
21 |
# Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
22 |
# Use is subject to license terms. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
23 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
24 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
25 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
26 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
27 |
# spec file for package SUNWgui-install |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
28 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
29 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
30 |
%include Solaris.inc |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
31 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
32 |
Name: SUNWgui-install |
1398
3cd5b2156d4c
imported patch oi-branding-cmd-gui-install
Alasdair Lumsden <al@everycity.co.uk>
parents:
37
diff
changeset
|
33 |
Summary: Updated OpenIndiana installation GUI |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
34 |
Version: 0.2 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
35 |
Source: gui-install-%{version}.tar.bz2 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
36 |
Source1: gui-install-01-locale-data.tar.bz2 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
37 |
Source2: gui-install-orchestrator-libs.tar.bz2 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
38 |
SUNW_BaseDir: %{_basedir} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
39 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
40 |
%include default-depend.inc |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
41 |
BuildRequires: SUNWgnome-libs-devel |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
42 |
Requires: SUNWgnome-libs |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
43 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
44 |
%if %build_l10n |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
45 |
%package l10n |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
46 |
Summary: %{summary} - l10n files |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
47 |
SUNW_BaseDir: %{_basedir} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
48 |
%include default-depend.inc |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
49 |
Requires: %{name} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
50 |
%endif |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
51 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
52 |
%prep |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
53 |
%setup -q -n gui-install-%version |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
54 |
touch NEWS |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
55 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
56 |
%build |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
57 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
58 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
59 |
CPUS=1 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
60 |
fi |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
61 |
export CFLAGS="%optflags -DANSICPP" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
62 |
export RPM_OPT_FLAGS="$CFLAGS" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
63 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
64 |
export MSGFMT="/usr/bin/msgfmt" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
65 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
66 |
# Switch to running configure when po directory is fixed |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
67 |
./autogen.sh --prefix=%{_prefix} --mandir=%{_mandir} \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
68 |
--libdir=%{_libdir} \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
69 |
--libexecdir=%{_libexecdir} \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
70 |
--sysconfdir=%{_sysconfdir} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
71 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
72 |
make -j$CPUS |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
73 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
74 |
%install |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
75 |
rm -rf $RPM_BUILD_ROOT |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
76 |
make install DESTDIR=$RPM_BUILD_ROOT |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
77 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
78 |
# contains gui-install/data/lib/locale/* and gui-install/locale/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
79 |
cd $RPM_BUILD_ROOT%{_datadir} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
80 |
bzcat %SOURCE1|tar -xf - |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
81 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
82 |
# contains bin/dummy_install and lib/lib* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
83 |
cd $RPM_BUILD_ROOT%{_prefix} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
84 |
bzcat %SOURCE2|tar -xf - |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
85 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
86 |
%if %build_l10n |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
87 |
%else |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
88 |
# REMOVE l10n FILES |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
89 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
90 |
%endif |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
91 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
92 |
%clean |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
93 |
rm -rf $RPM_BUILD_ROOT |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
94 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
95 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
96 |
%files |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
97 |
%defattr (-, root, bin) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
98 |
%dir %attr (0755, root, bin) %{_bindir} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
99 |
%{_bindir}/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
100 |
%dir %attr (0755, root, bin) %{_libdir} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
101 |
%{_libdir}/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
102 |
%dir %attr (0755, root, sys) %{_datadir} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
103 |
%dir %attr (0755, root, other) %{_datadir}/gui-install |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
104 |
%{_datadir}/gui-install/* |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
105 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
106 |
%if %build_l10n |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
107 |
%files l10n |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
108 |
%defattr (-, root, bin) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
109 |
%dir %attr (0755, root, sys) %{_datadir} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
110 |
%attr (-, root, other) %{_datadir}/locale |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
111 |
%endif |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
112 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
113 |
%changelog |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
114 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
115 |
* Wed Apr 26 2007 - [email protected] |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
116 |
- Initial spec file created |