base-specs/SunDesktopVersion.spec
author chrisk
Wed, 21 Apr 2010 10:29:33 +0000
changeset 17893 36619080451b
parent 17830 09306a479c40
child 17936 e991b330e10b
permissions -rw-r--r--
2010-04-21 Christian Kelly <[email protected]> * SUNWgnome-screensaver.spec, SUNWlibgee.spec, SUNWtgnome-tsoljdslabel.spec, SUNWgnome-ps-viewer.spec, SUNWGParted.spec, SUNWopensp.spec, base-specs/libdiscid.spec, base-specs/cairomm.spec, base-specs/libgksuui.spec, base-specs/babl.spec, base-specs/sqlite.spec, base-specs/ospm.spec, base-specs/brltty.spec, base-specs/j2re-integration.spec, base-specs/ttf-freefont.spec, base-specs/gksu.spec, base-specs/SunDesktopVersion.spec, base-specs/gnome-libs-java.spec, base-specs/docbook-style-dsssl.spec, base-specs/nimbus.spec, base-specs/ptlib.spec, base-specs/libpng10.spec, base-specs/eog-plugins.spec, base-specs/opal.spec, base-specs/libgksu.spec, base-specs/blueprint.spec, base-specs/thunderbird.spec, base-specs/pkg-config.spec, base-specs/nwam-manager.spec, base-specs/gedit-plugins.spec, base-specs/docbook-style-xsl.spec, base-specs/libexif-gtk.spec, SUNWpostrun.spec, SUNWtgnome-tsoljdsdevmgr.spec, SUNWtgnome-tsol-libs.spec, SUNWdesktop-cache.spec, SUNWgnome-dtlogin-integration.spec, closed/SUNWgnome-solaris-branding.spec, closed/SUNWflash-player-plugin.spec, SUNWgnome-base-libs.spec, SUNWjpg.spec, SUNWgnome-themes.spec, SUNWtgnome-tstripe.spec, SUNWtgnome-tsoljdsselmgr.spec, SUNWopenjade.spec, SUNWmyspell-dictionary-l10n.spec, SUNWespeak.spec: More OSR/Vendor updates.

#
# spec file for package SunDesktopVersion
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner davelam
#

%define OSR wrapper package, no content delivered:n/a

%define product Sun Java Desktop System
%define productAbbrv Java_DS
%define prodRelMajor 4
%define prodRelMinor 0
%define prodBuild 138
%define buildType devel
%define assembled %(date +"%d %b %Y")

Name:         		SunDesktopVersion
License:      		GPL
Group:        		Development/Tools
BuildArchitectures:     noarch
Version:      		%prodRelMajor.%prodRelMinor.%prodBuild
Release:      		%prodBuild
Distribution: 		Java Desktop System
Vendor:       		Sun Microsystems, Inc.
Summary:      		Release info for Sun Java Desktop
URL:          		http://www.sun.com
BuildRoot:    		%{_tmppath}/%{name}-%{version}-build
Autoreqprov:            no 

%description
Release info for Sun Java Desktop

%prep
mkdir -p %name-%version

%build
echo "product=%product" > product-info
echo "productAbbrv=%productAbbrv" >> product-info
if [ "x%prodRelMinor" != x0 ]; then
	echo "release=%prodRelMajor.%prodRelMinor" >> product-info
else
	echo "release=%prodRelMajor" >> product-info
fi
echo "build=%prodBuild" >> product-info
echo "buildType=%buildType" >> product-info
echo "assembled=%assembled" >> product-info

if [ "x%prodRelMinor" != x0 ]; then
	echo "Sun Java Desktop System, Release %prodRelMajor.%prodRelMinor - build %prodBuild" > sun-release
else
	echo "Sun Java Desktop System, Release %prodRelMajor - build %prodBuild" > sun-release
fi
echo "Assembled %assembled" >> sun-release

%install
install -d ${RPM_BUILD_ROOT}/etc
install --mode=0644 sun-release ${RPM_BUILD_ROOT}/etc/sun-release
install --mode=0644 product-info ${RPM_BUILD_ROOT}/etc/product-info

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/etc/sun-release
/etc/product-info

%changelog
* Wed Mar 11 2009 - [email protected]
- Took the ownership of this spec file.
* Fri Jun 03 2005 - [email protected]
- changed to generate file contents on-the-fly instead of using a static tarball