Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-desklets-extra
      3 #
      4 #
      5 # Copyright 2009 Sun Microsystems, Inc.
      6 # This file and all modifications and additions to the pristine
      7 # package are under the same license as the package itself.
      8 #
      9 %define owner jerrytan
     10 #
     11 
     12 
     13 %include Solaris.inc
     14 %use gd_calendar = gdesklets-calendar.spec
     15 %use gd_clock = gdesklets-clock.spec
     16 %use gd_worldtime = gdesklets-worldtime.spec
     17 
     18 Name:                    SUNWgnome-desklets-extra
     19 Summary:                 Supplied Gnome desktop widgets
     20 Version:                 %{default_pkg_version}
     21 SUNW_BaseDir:            %{_basedir}
     22 SUNW_Copyright:          %{name}.copyright
     23 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     24 
     25 Requires: SUNWgnome-desklets
     26 Requires: SUNWgnome-desktop-prefs
     27 Requires: SUNWgnome-libs
     28 Requires: SUNWdesktop-cache
     29 BuildRequires: SUNWgnome-desktop-prefs-devel
     30 BuildRequires: SUNWgnome-libs-devel
     31 
     32 %prep
     33 rm -rf %name-%version
     34 mkdir %name-%version
     35 
     36 %build
     37 # we just get the bits tarball from developer
     38 
     39 %install
     40 rm -rf $RPM_BUILD_ROOT
     41 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdesklets/Controls
     42 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdesklets/Displays
     43 %gd_calendar.install -d %name-%version
     44 chmod 444 $RPM_BUILD_ROOT%{_datadir}/gdesklets/Displays/Calendar/months/README
     45 %gd_clock.install -d %name-%version
     46 %gd_worldtime.install -d %name-%version
     47 
     48 %clean
     49 rm -rf $RPM_BUILD_ROOT
     50 
     51 %post
     52 %restart_fmri desktop-mime-cache
     53 
     54 %postun
     55 %restart_fmri desktop-mime-cache
     56 
     57 %files
     58 %defattr (-, root, bin)
     59 %dir %attr (0755, root, sys) %{_datadir}
     60 %dir %attr (0755, root, bin) %{_datadir}/gdesklets
     61 %{_datadir}/gdesklets/*
     62 
     63 %changelog
     64 * Fri Jun 26 2009 - chris.wang@sun.com
     65 - Change owner to jerrytan
     66 * Mon May 11 2009 - dave.lin@sun.com
     67 - Fixed attribute issue of README file.
     68 * Fri Apr  3 2009 - laca@sun.com
     69 - use desktop-cache instead of postrun
     70 * Wed Jul 16 2008 - damien.carbery@sun.com
     71 - Add rm/mkdir to %prep because build requires that the dir exists.
     72 * Tue Jul 15 2008 - damien.carbery@sun.com
     73 - Break gdesklets-extra.spec into three spec files (one for each desklet).
     74   Change this file to use each of the spec files.
     75 * Thu Feb  8 2007 - damien.carbery@sun.com
     76 - Update dependency list for files used in %post and during build.
     77 * Mon Feb  5 2007 - damien.carbery@sun.com
     78 - Add %prep section to create dir in BUILD dir.
     79 * Thu Jan 29 2007 - <chris.wang@sun.com>
     80 - initial creation
     81 
     82 
     83