9397
|
1 |
#
|
|
2 |
# spec file for package SunDesktopVersion
|
|
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 davelam
|
9397
|
9 |
#
|
16430
|
10 |
|
17893
|
11 |
%define OSR wrapper package, no content delivered:n/a
|
16430
|
12 |
|
9397
|
13 |
%define product Sun Java Desktop System
|
|
14 |
%define productAbbrv Java_DS
|
|
15 |
%define prodRelMajor 4
|
|
16 |
%define prodRelMinor 0
|
20258
|
17 |
%define prodBuild 151
|
18333
|
18 |
%define buildType stable
|
9397
|
19 |
%define assembled %(date +"%d %b %Y")
|
|
20 |
|
|
21 |
Name: SunDesktopVersion
|
|
22 |
License: GPL
|
|
23 |
Group: Development/Tools
|
|
24 |
BuildArchitectures: noarch
|
|
25 |
Version: %prodRelMajor.%prodRelMinor.%prodBuild
|
|
26 |
Release: %prodBuild
|
|
27 |
Distribution: Java Desktop System
|
|
28 |
Vendor: Sun Microsystems, Inc.
|
|
29 |
Summary: Release info for Sun Java Desktop
|
|
30 |
URL: http://www.sun.com
|
|
31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
32 |
Autoreqprov: no
|
|
33 |
|
|
34 |
%description
|
|
35 |
Release info for Sun Java Desktop
|
|
36 |
|
|
37 |
%prep
|
|
38 |
mkdir -p %name-%version
|
|
39 |
|
|
40 |
%build
|
|
41 |
echo "product=%product" > product-info
|
|
42 |
echo "productAbbrv=%productAbbrv" >> product-info
|
|
43 |
if [ "x%prodRelMinor" != x0 ]; then
|
|
44 |
echo "release=%prodRelMajor.%prodRelMinor" >> product-info
|
|
45 |
else
|
|
46 |
echo "release=%prodRelMajor" >> product-info
|
|
47 |
fi
|
|
48 |
echo "build=%prodBuild" >> product-info
|
|
49 |
echo "buildType=%buildType" >> product-info
|
|
50 |
echo "assembled=%assembled" >> product-info
|
|
51 |
|
|
52 |
if [ "x%prodRelMinor" != x0 ]; then
|
|
53 |
echo "Sun Java Desktop System, Release %prodRelMajor.%prodRelMinor - build %prodBuild" > sun-release
|
|
54 |
else
|
|
55 |
echo "Sun Java Desktop System, Release %prodRelMajor - build %prodBuild" > sun-release
|
|
56 |
fi
|
|
57 |
echo "Assembled %assembled" >> sun-release
|
|
58 |
|
|
59 |
%install
|
|
60 |
install -d ${RPM_BUILD_ROOT}/etc
|
|
61 |
install --mode=0644 sun-release ${RPM_BUILD_ROOT}/etc/sun-release
|
|
62 |
install --mode=0644 product-info ${RPM_BUILD_ROOT}/etc/product-info
|
|
63 |
|
|
64 |
%clean
|
|
65 |
rm -rf $RPM_BUILD_ROOT
|
|
66 |
|
|
67 |
%files
|
|
68 |
%defattr(-,root,root)
|
|
69 |
/etc/sun-release
|
|
70 |
/etc/product-info
|
|
71 |
|
|
72 |
%changelog
|
15352
|
73 |
* Wed Mar 11 2009 - [email protected]
|
|
74 |
- Took the ownership of this spec file.
|
9397
|
75 |
* Fri Jun 03 2005 - [email protected]
|
|
76 |
- changed to generate file contents on-the-fly instead of using a static tarball
|