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 %define 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 %define OSR developed in the open, no OSR needed:0 17 18 Name: SUNWgnome-time-slider 19 Summary: Time Slider ZFS snapshot management for GNOME 20 Version: 0.2.95 21 Source: http://dlc.sun.com/osol/jds/downloads/extras/time-slider/time-slider-%{version}.tar.bz2 22 SUNW_BaseDir: %{_basedir} 23 SUNW_Copyright: %{name}.copyright 24 BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 26 %include default-depend.inc 27 BuildRequires: SUNWgnome-python26-libs-devel 28 BuildRequires: SUNWgksu-devel 29 Requires: SUNWPython26 30 Requires: SUNWgnome-python26-libs 31 Requires: SUNWpython26-notify 32 Requires: SUNWgksu 33 Requires: SUNWgnome-dialog 34 Requires: %{name}-root 35 Requires: SUNWdesktop-cache 36 Obsoletes: SUNWzfs-auto-snapshot 37 38 %package root 39 Summary: %{summary} - / filesystem 40 SUNW_BaseDir: / 41 %include default-depend.inc 42 43 %if %build_l10n 44 %package l10n 45 Summary: %{summary} - l10n files 46 SUNW_BaseDir: %{_basedir} 47 %include default-depend.inc 48 Requires: %{name} 49 %endif 50 51 %prep 52 %setup -q -n time-slider-%{version} 53 54 %build 55 make 56 57 %install 58 export PYTHON="/usr/bin/python2.6" 59 rm -rf $RPM_BUILD_ROOT 60 make install DESTDIR=$RPM_BUILD_ROOT 61 62 # when not building -l10n packages, remove anything l10n related from 63 # $RPM_BUILD_ROOT 64 %if %build_l10n 65 %else 66 # REMOVE l10n FILES 67 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 68 %endif 69 70 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 71 72 %clean 73 rm -rf $RPM_BUILD_ROOT 74 75 %if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1) 76 %iclass manifest -f i.manifest 77 %endif 78 79 %post 80 %restart_fmri icon-cache 81 82 %files 83 %defattr (-, root, bin) 84 %{_bindir}/* 85 %dir %attr (0755, root, bin) %{_libdir} 86 %{_libdir}/time-slider* 87 %dir %attr (0755, root, sys) %{_datadir} 88 %dir %attr (0755, root, other) %{_datadir}/applications 89 %{_datadir}/applications/*.desktop 90 %dir %attr (-, root, other) %{_datadir}/icons 91 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 92 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 93 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps 94 %{_datadir}/icons/hicolor/16x16/apps/time-slider-setup.png 95 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24 96 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps 97 %{_datadir}/icons/hicolor/24x24/apps/time-slider-setup.png 98 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 99 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps 100 %{_datadir}/icons/hicolor/32x32/apps/time-slider-setup.png 101 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/36x36 102 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/36x36/apps 103 %{_datadir}/icons/hicolor/36x36/apps/time-slider-setup.png 104 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48 105 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps 106 %{_datadir}/icons/hicolor/48x48/apps/time-slider-setup.png 107 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/72x72 108 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/72x72/apps 109 %{_datadir}/icons/hicolor/72x72/apps/time-slider-setup.png 110 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/96x96 111 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/96x96/apps 112 %{_datadir}/icons/hicolor/96x96/apps/time-slider-setup.png 113 %{_datadir}/time-slider/* 114 115 %files root 116 %defattr (-, root, bin) 117 %attr (0755, root, sys) %dir %{_sysconfdir} 118 %dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1 119 %dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1/system.d 120 %attr (0644, root, sys) %{_sysconfdir}/dbus-1/system.d/time-slider.conf 121 %dir %attr (0755, root, sys) %{_sysconfdir}/xdg 122 %dir %attr (0755, root, sys) %{_sysconfdir}/xdg/autostart 123 %attr (0644, root, sys) %{_sysconfdir}/xdg/autostart/*.desktop 124 %dir %attr (0755, root, sys) /var 125 %dir %attr (0755, root, sys) /var/svc 126 %dir %attr (0755, root, sys) /var/svc/manifest 127 %dir %attr (0755, root, sys) /var/svc/manifest/application 128 %dir %attr (0755, root, sys) /var/svc/manifest/system 129 %dir %attr (0755, root, sys) /var/svc/manifest/system/filesystem 130 %class(manifest) %attr (0444, root, sys) /var/svc/manifest/application/time-slider.xml 131 %class(manifest) %attr (0444, root, sys) /var/svc/manifest/system/filesystem/auto-snapshot.xml 132 %attr (0555, root, bin) /lib/svc/method/time-slider 133 134 %if %build_l10n 135 %files l10n 136 %defattr (-, root, other) 137 %dir %attr (0755, root, sys) %{_datadir} 138 %{_datadir}/locale/* 139 %endif 140 141 %changelog 142 * Thu Nov 05 2009 - niall.power@sun.com 143 - Bumped version to 0.2.95 144 - Bumped python requirements to 2.6 145 - Obsoletes SUNWzfs-auto-snapshot from 0.2.95+ 146 * Fri Jul 10 2009 - niall.power@sun.com 147 - Bump version to 0.2.10. D.O.O# 8667, 8454 & 8685 148 * Fri Apr 3 2009 - laca@sun.com 149 - use desktop-cache instead of postrun 150 * Fri Feb 20 2009 - niall.power@sun.com 151 - Bump to 0.2.6 tarball to incorporate updated l10n 152 from Takao Fujiwara. bugster 6807414 153 - Dropped upstreamed -01-python-env.diff 154 * Thu Feb 12 2009 - niall.power@sun.com 155 - Add patch 01-python-env.diff to fully fix 6754650. 156 Upstreamed patch. Remainder of fix already in 0.2.5 tarball 157 * Thu Feb 05 2009 - niall.power@sun.com 158 - Bump to 0.2.5 159 - Add patch potfiles.diff to get GTK translations. 160 - Add patch g11n-i18n-ui.diff to show localized date. 161 * Fri Jan 09 2009 - niall.power@sun.com 162 - Bump to 0.2.3 163 * Mon Dec 17 2008 - niall.power@sun.com 164 - Bump to 0.2.2 165 * Mon Oct 20 2008 - takao.fujiwara@sun.com 166 - Bump to 0.1.2 with .po files. Add l10n packages. 167 * Fri Oct 10 2008 - niall.power@sun.com 168 - disable auto SMF enabelment in post install 169 * Wed Oct 08 2008 - niall.power@sun.com 170 - Bump to 0.1.1 Drop upstreamed g11n-i18n.diff 171 * Thu Oct 02 2008 - takao.fujiwara@su.com 172 - Add time-slider-01-g11n-i18n.diff 173 * Wed Sep 18 2008 - niall.power@sun.com 174 - Initial spec file created. 175 176