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