author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19719 | d184ca39d269 |
permissions | -rw-r--r-- |
19693 | 1 |
# |
2 |
# spec file for package jds-registration |
|
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
2559 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
||
9 |
Name: jds-registration |
|
10 |
License: GPL |
|
11 |
Group: System/GUI |
|
4607 | 12 |
Version: 1.3 |
19643 | 13 |
Release: 40 |
19693 | 14 |
Distribution: Java Desktop System |
2559 | 15 |
Vendor: Sun Microsystems, Inc. |
16 |
Summary: Customer registration application. |
|
17 |
Source: %{name}-%{version}.tar.bz2 |
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
19 |
Autoreqprov: on |
|
20 |
||
2840 | 21 |
PreReq: j2re-integration |
2958 | 22 |
BuildRequires: jdk |
23 |
Requires: jdk |
|
2562 | 24 |
|
2559 | 25 |
%description |
26 |
The JDS registration program allows the user to enter registration |
|
27 |
information, such as the product serial number, email address and |
|
28 |
optional personal information. The serial number is used to perform |
|
29 |
online patch updates using JSUS (Java System Update Services). |
|
30 |
||
31 |
%prep |
|
32 |
%setup -q |
|
33 |
||
19643 | 34 |
%ifos linux |
35 |
%define java_home /usr/java/jdk1.5.0_03 |
|
36 |
%define jre_home /usr/java/j2redefault |
|
37 |
%else |
|
38 |
%define java_home /usr/jdk/instances/jdk1.5.0 |
|
39 |
%define jre_home /usr/j2se/jre |
|
40 |
%endif |
|
41 |
||
4455 | 42 |
|
2559 | 43 |
%build |
3263 | 44 |
%ifos linux |
45 |
if [ -x /usr/bin/getconf ]; then |
|
46 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
47 |
fi |
|
48 |
%else |
|
3846 | 49 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 50 |
%endif |
51 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
52 |
CPUS=1 |
|
53 |
fi |
|
54 |
||
19636
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
55 |
%ifos linux |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
56 |
export JAVA_HOME="/usr/java/jdk1.5.0_03" |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
57 |
%else |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
58 |
export JAVA_HOME="/usr/java" |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
59 |
%endif |
3263 | 60 |
make -j $CPUS |
2559 | 61 |
|
62 |
%install |
|
19636
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
63 |
%ifos linux |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
64 |
export JRE_HOME="/usr/java/j2redefault" |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
65 |
%else |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
66 |
export JRE_HOME="/usr/j2se/jre2" |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
67 |
%endif |
2559 | 68 |
make install DESTDIR=$RPM_BUILD_ROOT |
19636
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
69 |
echo "$JRE_HOME/lib/ext/jds-registration.jar" > jds-registration.files |
2559 | 70 |
|
71 |
%clean |
|
72 |
make clean |
|
73 |
rm -rf $RPM_BUILD_ROOT |
|
74 |
||
2783 | 75 |
%files -f jds-registration.files |
2559 | 76 |
%defattr(-,root,root) |
77 |
||
2616
1884dc8e5228
jds-registration.spec jdshelp.spec: fixed Linux Java version
dermotm
parents:
2585
diff
changeset
|
78 |
%changelog |
19636
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
79 |
* Fri Jul 29 2005 - [email protected] |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
80 |
- Drop intermediate java_home/jre_home vars and set env vars directly. |
d820d6b48ca1
* freetts.spec: Use stable JAVA_HOME directory, not the one that
dc144907
parents:
19394
diff
changeset
|
81 |
|
19394
64603d5d4d14
* jds-registration.spec: Change how java_home and jre_home are defined
dc144907
parents:
5370
diff
changeset
|
82 |
* Fri Jun 10 2005 - [email protected] |
64603d5d4d14
* jds-registration.spec: Change how java_home and jre_home are defined
dc144907
parents:
5370
diff
changeset
|
83 |
- Change how java_home and jre_home are defined - remove the use of tmp files. |
64603d5d4d14
* jds-registration.spec: Change how java_home and jre_home are defined
dc144907
parents:
5370
diff
changeset
|
84 |
|
19643 | 85 |
* Mon May 09 2005 - [email protected] |
86 |
- New jdk (1.5.0_03) |
|
87 |
||
4607 | 88 |
* Mon Nov 22 2004 - [email protected] |
89 |
- change version to make use of latest (1.3) source tarball |
|
90 |
that removes embargoed countries for export compliance. |
|
91 |
||
4108 | 92 |
* Thu Sep 30 2004 - [email protected] |
93 |
- change version to make use of latest (1.2) source tarball |
|
94 |
that includes all the I18N'd properties files. |
|
95 |
||
3938 | 96 |
* Wed Sep 15 2004 - [email protected] |
97 |
- new install dir for JDK 1.5.0 |
|
98 |
||
3263 | 99 |
* Wed Jul 07 2004 - [email protected] |
100 |
- added "-j $CPUS" to make to speed up builds |
|
101 |
||
3251 | 102 |
* Mon Jul 05 2004 - [email protected] |
103 |
- Changed version number and release for new I18N'd version |
|
4108 | 104 |
|
2977
4a805a1dac56
gnome-speech.spec, jds-registration.spec and jdshelp.spec: Correct JDK path for Solaris 10.
dc144907
parents:
2958
diff
changeset
|
105 |
* Tue Jun 01 2004 - [email protected] |
4a805a1dac56
gnome-speech.spec, jds-registration.spec and jdshelp.spec: Correct JDK path for Solaris 10.
dc144907
parents:
2958
diff
changeset
|
106 |
- Correct JDK path in CFLAGS for Solaris 10. |
4108 | 107 |
|
2958 | 108 |
* Sun May 30 2004 - [email protected] |
109 |
- New JDK |
|
4108 | 110 |
|
2840 | 111 |
* Fri May 21 2004 - [email protected] |
112 |
- Added PreReq for j2re-integration on Dermot's request. |
|
113 |
- Changed OSTYPE check for solaris since Solaris build seems |
|
114 |
to have OSTYPE variable set to solaris2.9. |
|
4108 | 115 |
|
2783 | 116 |
* Mon May 17 2004 - [email protected] |
117 |
- Fixed JAVA_HOME and JRE_HOME to no longer use %ifos. |
|
118 |
This allows us to differentiate between different JDK and JRE |
|
119 |
locations on different versions of Solaris. |
|
4108 | 120 |
|
2665
7db087ba7ce0
- removed j2re-integration from BuildRequires and Requires
johan
parents:
2619
diff
changeset
|
121 |
* Thu May 06 2004 - [email protected] |
7db087ba7ce0
- removed j2re-integration from BuildRequires and Requires
johan
parents:
2619
diff
changeset
|
122 |
- removed j2re-integration from BuildRequires and Requires |
7db087ba7ce0
- removed j2re-integration from BuildRequires and Requires
johan
parents:
2619
diff
changeset
|
123 |
- fixed JAVA_HOME and JRE_HOME to use %ifos instead |
7db087ba7ce0
- removed j2re-integration from BuildRequires and Requires
johan
parents:
2619
diff
changeset
|
124 |
- added %{_prefix} to jre_home for solaris |
7db087ba7ce0
- removed j2re-integration from BuildRequires and Requires
johan
parents:
2619
diff
changeset
|
125 |
- fixed %files to use jre_home instead of .rpm-files with -f option |
4108 | 126 |
|
2616
1884dc8e5228
jds-registration.spec jdshelp.spec: fixed Linux Java version
dermotm
parents:
2585
diff
changeset
|
127 |
* Mon May 03 2004 - [email protected] |
2617 | 128 |
- fix JAVA_HOME |
4108 | 129 |
|
2617 | 130 |
* Mon May 03 2004 - [email protected] |
2616
1884dc8e5228
jds-registration.spec jdshelp.spec: fixed Linux Java version
dermotm
parents:
2585
diff
changeset
|
131 |
- change Linux JAVA_HOME to 1.5.0 |