SUNWgnome-desklets-extra.spec
author davelam
Wed, 24 Feb 2010 04:10:23 +0000
branchgnome-2-28
changeset 18642 478b5460cc36
parent 16434 f21f22550fe9
permissions -rw-r--r--
add new proto file for b133

#
# spec file for package SUNWgnome-desklets-extra
#
#
# Copyright 2009 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 jerrytan
#


%include Solaris.inc
%use gd_calendar = gdesklets-calendar.spec
%use gd_clock = gdesklets-clock.spec
%use gd_worldtime = gdesklets-worldtime.spec

Name:                    SUNWgnome-desklets-extra
Summary:                 Supplied Gnome desktop widgets
Version:                 %{default_pkg_version}
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:          %{name}.copyright
BuildRoot:               %{_tmppath}/%{name}-%{version}-build

Requires: SUNWgnome-desklets
Requires: SUNWgnome-desktop-prefs
Requires: SUNWgnome-libs
Requires: SUNWdesktop-cache
BuildRequires: SUNWgnome-desktop-prefs-devel
BuildRequires: SUNWgnome-libs-devel

%prep
rm -rf %name-%version
mkdir %name-%version

%build
# we just get the bits tarball from developer

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdesklets/Controls
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdesklets/Displays
%gd_calendar.install -d %name-%version
chmod 444 $RPM_BUILD_ROOT%{_datadir}/gdesklets/Displays/Calendar/months/README
%gd_clock.install -d %name-%version
%gd_worldtime.install -d %name-%version

%clean
rm -rf $RPM_BUILD_ROOT

%post
%restart_fmri desktop-mime-cache

%postun
%restart_fmri desktop-mime-cache

%files
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, bin) %{_datadir}/gdesklets
%{_datadir}/gdesklets/*

%changelog
* Fri Jun 26 2009 - [email protected]
- Change owner to jerrytan
* Mon May 11 2009 - [email protected]
- Fixed attribute issue of README file.
* Fri Apr  3 2009 - [email protected]
- use desktop-cache instead of postrun
* Wed Jul 16 2008 - [email protected]
- Add rm/mkdir to %prep because build requires that the dir exists.
* Tue Jul 15 2008 - [email protected]
- Break gdesklets-extra.spec into three spec files (one for each desklet).
  Change this file to use each of the spec files.
* Thu Feb  8 2007 - [email protected]
- Update dependency list for files used in %post and during build.
* Mon Feb  5 2007 - [email protected]
- Add %prep section to create dir in BUILD dir.
* Thu Jan 29 2007 - <[email protected]>
- initial creation