Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWtime-slider
      3 #
      4 # includes module(s): time-slider
      5 #
      6 # Copyright 2009 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 # Owner: niall
     11 #
     12 %include Solaris.inc
     13 # NOTE: If the version is bumped the new tarball must be uploaded to the
     14 #       Sun Download Center. Contact GNOME RE for assistance.
     15 
     16 Name:                    SUNWgnome-time-slider
     17 Summary:                 Time Slider ZFS snapshot management for GNOME
     18 Version:                 0.2.8
     19 Source:			 http://dlc.sun.com/osol/jds/downloads/extras/time-slider/time-slider-%{version}.tar.bz2
     20 SUNW_BaseDir:            %{_basedir}
     21 SUNW_Copyright:          %{name}.copyright
     22 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     23 
     24 %include default-depend.inc
     25 BuildRequires:           SUNWgnome-python-libs-devel
     26 BuildRequires:           SUNWgksu-devel
     27 Requires:                SUNWPython
     28 Requires:                SUNWgnome-python-libs
     29 Requires:                SUNWgksu
     30 Requires:                SUNWzfs-auto-snapshot
     31 Requires:                SUNWgnome-dialog
     32 Requires:                %{name}-root
     33 Requires:                SUNWdesktop-cache
     34 
     35 %package root
     36 Summary:                 %{summary} - / filesystem
     37 SUNW_BaseDir:            /
     38 %include default-depend.inc
     39 
     40 %if %build_l10n
     41 %package l10n
     42 Summary:                 %{summary} - l10n files
     43 SUNW_BaseDir:            %{_basedir}
     44 %include default-depend.inc
     45 Requires:                %{name}
     46 %endif
     47 
     48 %prep
     49 %setup -q -n time-slider-%{version}
     50 
     51 %build
     52 make
     53 
     54 %install
     55 export PYTHON="/usr/bin/python2.4"
     56 rm -rf $RPM_BUILD_ROOT
     57 make install DESTDIR=$RPM_BUILD_ROOT
     58 
     59 # when not building -l10n packages, remove anything l10n related from
     60 # $RPM_BUILD_ROOT
     61 %if %build_l10n
     62 %else
     63 # REMOVE l10n FILES
     64 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     65 %endif
     66 
     67 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     68 
     69 %clean
     70 rm -rf $RPM_BUILD_ROOT
     71 
     72 %if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1)
     73 %iclass manifest -f i.manifest
     74 %endif
     75 
     76 %post
     77 %restart_fmri icon-cache
     78 
     79 %files
     80 %defattr (-, root, bin)
     81 %{_bindir}/*
     82 %dir %attr (0755, root, bin) %{_libdir}
     83 %{_libdir}/time-slider-*
     84 %dir %attr (0755, root, sys) %{_datadir}
     85 %dir %attr (0755, root, other) %{_datadir}/applications
     86 %{_datadir}/applications/*.desktop
     87 %dir %attr (-, root, other) %{_datadir}/icons
     88 %dir %attr (-, root, other) %{_datadir}/icons/hicolor
     89 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
     90 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
     91 %{_datadir}/icons/hicolor/16x16/apps/time-slider-setup.png
     92 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
     93 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
     94 %{_datadir}/icons/hicolor/24x24/apps/time-slider-setup.png
     95 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
     96 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
     97 %{_datadir}/icons/hicolor/32x32/apps/time-slider-setup.png
     98 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/36x36
     99 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/36x36/apps
    100 %{_datadir}/icons/hicolor/36x36/apps/time-slider-setup.png
    101 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48
    102 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
    103 %{_datadir}/icons/hicolor/48x48/apps/time-slider-setup.png
    104 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/72x72
    105 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/72x72/apps
    106 %{_datadir}/icons/hicolor/72x72/apps/time-slider-setup.png
    107 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/96x96
    108 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/96x96/apps
    109 %{_datadir}/icons/hicolor/96x96/apps/time-slider-setup.png
    110 %{_datadir}/time-slider/*
    111 
    112 %files root
    113 %defattr (-, root, bin)
    114 %dir %attr (0755, root, sys) /var
    115 %dir %attr (0755, root, sys) /var/svc
    116 %dir %attr (0755, root, sys) /var/svc/manifest
    117 %dir %attr (0755, root, sys) /var/svc/manifest/application
    118 %class(manifest) %attr (0444, root, sys) /var/svc/manifest/application/time-slider.xml
    119 %attr (0555, root, bin) /lib/svc/method/time-slider
    120 
    121 %if %build_l10n
    122 %files l10n
    123 %defattr (-, root, other)
    124 %dir %attr (0755, root, sys) %{_datadir}
    125 %{_datadir}/locale/*
    126 %endif
    127 
    128 %changelog
    129 * Fri Apr  3 2009 - laca@sun.com
    130 - use desktop-cache instead of postrun
    131 * Fri Feb 20 2009 - niall.power@sun.com
    132 - Bump to 0.2.6 tarball to incorporate updated l10n
    133   from Takao Fujiwara. bugster 6807414
    134 - Dropped upstreamed -01-python-env.diff
    135 * Thu Feb 12 2009 - niall.power@sun.com
    136 - Add patch 01-python-env.diff to fully fix 6754650.
    137   Upstreamed patch. Remainder of fix already in 0.2.5 tarball
    138 * Thu Feb 05 2009 - niall.power@sun.com
    139 - Bump to 0.2.5
    140 - Add patch potfiles.diff to get GTK translations.
    141 - Add patch g11n-i18n-ui.diff to show localized date.
    142 * Fri Jan 09 2009 - niall.power@sun.com
    143 - Bump to 0.2.3
    144 * Mon Dec 17 2008 - niall.power@sun.com
    145 - Bump to 0.2.2
    146 * Mon Oct 20 2008 - takao.fujiwara@sun.com
    147 - Bump to 0.1.2 with .po files. Add l10n packages.
    148 * Fri Oct 10 2008 - niall.power@sun.com
    149 - disable auto SMF enabelment in post install
    150 * Wed Oct 08 2008 - niall.power@sun.com
    151 - Bump to 0.1.1 Drop upstreamed g11n-i18n.diff
    152 * Thu Oct 02 2008 - takao.fujiwara@su.com
    153 - Add time-slider-01-g11n-i18n.diff
    154 * Wed Sep 18 2008 - niall.power@sun.com
    155 - Initial spec file created.
    156 
    157