base-specs/SunDesktopVersion.spec
author Jon Tibble <meths@btinternet.com>
Thu, 15 Mar 2012 09:58:35 +0000
branchs11express-2010-11
changeset 22104 cde243cbe3f6
parent 20258 d36f69cde4df
child 20238 19240035904d
permissions -rw-r--r--
Added tag oi_151a_prestable2 for changeset 47b3f775541a
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 SunDesktopVersion
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: 16430
diff changeset
     8
%define owner davelam
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
16430
1630b44703c8 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16422
diff changeset
    10
17893
36619080451b 2010-04-21 Christian Kelly <[email protected]>
chrisk
parents: 17830
diff changeset
    11
%define OSR wrapper package, no content delivered:n/a
16430
1630b44703c8 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16422
diff changeset
    12
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
%define product Sun Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
%define productAbbrv Java_DS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
%define prodRelMajor 4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
%define prodRelMinor 0
20258
d36f69cde4df Nevada 151
davelam
parents: 20121
diff changeset
    17
%define prodBuild 151
18333
91bcf0355feb update build type to stable
davelam
parents: 18146
diff changeset
    18
%define buildType stable
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
%define assembled %(date +"%d %b %Y")
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Name:         		SunDesktopVersion
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
License:      		GPL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Group:        		Development/Tools
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
BuildArchitectures:     noarch
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Version:      		%prodRelMajor.%prodRelMinor.%prodBuild
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Release:      		%prodBuild
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Distribution: 		Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Vendor:       		Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
Summary:      		Release info for Sun Java Desktop
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
URL:          		http://www.sun.com
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
BuildRoot:    		%{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Autoreqprov:            no 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Release info for Sun Java Desktop
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
mkdir -p %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
echo "product=%product" > product-info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
echo "productAbbrv=%productAbbrv" >> product-info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
if [ "x%prodRelMinor" != x0 ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
	echo "release=%prodRelMajor.%prodRelMinor" >> product-info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
	echo "release=%prodRelMajor" >> product-info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
echo "build=%prodBuild" >> product-info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
echo "buildType=%buildType" >> product-info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
echo "assembled=%assembled" >> product-info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
if [ "x%prodRelMinor" != x0 ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
	echo "Sun Java Desktop System, Release %prodRelMajor.%prodRelMinor - build %prodBuild" > sun-release
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
	echo "Sun Java Desktop System, Release %prodRelMajor - build %prodBuild" > sun-release
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
echo "Assembled %assembled" >> sun-release
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
install -d ${RPM_BUILD_ROOT}/etc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
install --mode=0644 sun-release ${RPM_BUILD_ROOT}/etc/sun-release
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
install --mode=0644 product-info ${RPM_BUILD_ROOT}/etc/product-info
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
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
/etc/sun-release
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
/etc/product-info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%changelog
15352
7ed50e8ebf6a took the ownership
davelam
parents: 15327
diff changeset
    73
* Wed Mar 11 2009 - [email protected]
7ed50e8ebf6a took the ownership
davelam
parents: 15327
diff changeset
    74
- Took the ownership of this spec file.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
* Fri Jun 03 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
- changed to generate file contents on-the-fly instead of using a static tarball