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