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