SUNWgnome-time-slider.spec revision 20895
12248N/A#
12251N/A# spec file for package SUNWtime-slider
12248N/A#
12248N/A# includes module(s): time-slider
12248N/A#
12248N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
12248N/A# This file and all modifications and additions to the pristine
12248N/A# package are under the same license as the package itself.
12248N/A#
12248N/A%define owner erwannc
12248N/A#
12248N/A%include Solaris.inc
12248N/A%include l10n.inc
12248N/A# NOTE: If the version is bumped the new tarball must be uploaded to the
12248N/A# Sun Download Center. Contact GNOME RE for assistance.
12248N/A
12248N/A%define OSR developed in the open, no OSR needed:0
12248N/A
12248N/AName: SUNWgnome-time-slider
12248N/AIPS_package_name: desktop/time-slider
12248N/AMeta(info.classification): %{classification_prefix}:Applications/Configuration and Preferences
12248N/ASummary: Time Slider ZFS snapshot management for GNOME
12248N/ALicense: cr_Oracle
12248N/AVersion: 0.2.99
12248N/ASource: http://dlc.sun.com/osol/jds/downloads/extras/time-slider/time-slider-%{version}.tar.bz2
12248N/ASource1: time-slider-po-sun-%{po_sun_version}.tar.bz2
12248N/ASUNW_BaseDir: %{_basedir}
12248N/ASUNW_Copyright: %{name}.copyright
12248N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12248N/A
12248N/A%include default-depend.inc
12248N/A%include desktop-incorporation.inc
12248N/ABuildRequires: SUNWpygtk2-26
12248N/ABuildRequires: SUNWgksu-devel
12248N/ARequires: SUNWPython26
12251N/ARequires: SUNWdbus-python26
12251N/ARequires: SUNWpython26-notify
12248N/ARequires: SUNWgksu
12248N/ARequires: SUNWgnome-dialog
12248N/ARequires: %{name}-root
12248N/ARequires: service/gnome/desktop-cache
12248N/AObsoletes: SUNWzfs-auto-snapshot
12248N/A
12248N/A%package root
12248N/ASummary: %{summary} - / filesystem
12248N/ASUNW_BaseDir: /
12248N/A%include default-depend.inc
12248N/A%include desktop-incorporation.inc
12248N/A
12248N/A%package l10n
12248N/ASummary: %{summary} - l10n files
12248N/ARequires: %{name}
12248N/A
12248N/A%prep
12248N/A%setup -q -n time-slider-%{version}
12248N/Abzcat %SOURCE1 | tar xf -
12248N/A# replace the old translations
12248N/Acd po-sun; cp *.po LINGUAS ../po; cd ..
12248N/A
12248N/A%build
12248N/Amake
12248N/A
12248N/A%install
12248N/Aexport PYTHON="/usr/bin/python2.6"
12248N/Arm -rf $RPM_BUILD_ROOT
12248N/Amake install DESTDIR=$RPM_BUILD_ROOT
12248N/A
12248N/Amkdir -p $RPM_BUILD_ROOT/etc/security/auth_attr.d
12248N/Amkdir -p $RPM_BUILD_ROOT/etc/user_attr.d
12248N/Aecho 'zfssnap::::type=role;auths=solaris.smf.manage.zfs-auto-snapshot;profiles=ZFS File System Management' > $RPM_BUILD_ROOT/etc/user_attr.d/desktop-time-slider
12248N/Aecho 'solaris.smf.manage.zfs-auto-snapshot:::Manage the ZFS Automatic Snapshot Service::' > $RPM_BUILD_ROOT/etc/security/auth_attr.d/desktop-time-slider
12248N/A
12248N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
12248N/A
12248N/A%clean
12248N/Arm -rf $RPM_BUILD_ROOT
12248N/A
12248N/A%if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1)
12248N/A%iclass manifest -f i.manifest
12248N/A%endif
12248N/A
12248N/A%post
12248N/A%restart_fmri icon-cache
12248N/A
12248N/A%actions
12248N/Auser ftpuser=false gcos-field="ZFS Automatic Snapshots Reserved UID" group=daemon login-shell=/usr/bin/pfsh password=NP uid=51 username=zfssnap
12248N/A
12248N/A%files
12248N/A%defattr (-, root, bin)
12248N/A%{_bindir}/*
12248N/A%dir %attr (0755, root, bin) %{_libdir}
12248N/A%{_libdir}/time-slider-*
12248N/A%{_libdir}/time-sliderd
12248N/A%dir %attr (0755, root, bin) %{_libdir}/time-slider
12248N/A%dir %attr (0755, root, bin) %{_libdir}/time-slider/plugins/
12248N/A%dir %attr (0755, root, bin) %{_libdir}/time-slider/plugins/rsync
12248N/A%{_libdir}/time-slider/plugins/rsync/*
12248N/A%dir %attr (0755, root, bin) %{_libdir}/time-slider/plugins/zfssend
12248N/A%{_libdir}/time-slider/plugins/zfssend/*
12248N/A%dir %attr (0755, root, sys) %{_datadir}
12248N/A%dir %attr (0755, root, other) %{_datadir}/applications
12248N/A%{_datadir}/applications/*.desktop
12248N/A%dir %attr (-, root, other) %{_datadir}/icons
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
12251N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
12248N/A%{_datadir}/icons/hicolor/16x16/apps/time-slider-setup.png
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
12248N/A%{_datadir}/icons/hicolor/24x24/apps/time-slider-setup.png
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
12248N/A%{_datadir}/icons/hicolor/32x32/apps/time-slider-setup.png
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/36x36
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/36x36/apps
12248N/A%{_datadir}/icons/hicolor/36x36/apps/time-slider-setup.png
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
12248N/A%{_datadir}/icons/hicolor/48x48/apps/time-slider-setup.png
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/72x72
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/72x72/apps
12248N/A%{_datadir}/icons/hicolor/72x72/apps/time-slider-setup.png
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/96x96
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/96x96/apps
12248N/A%{_datadir}/icons/hicolor/96x96/apps/time-slider-setup.png
12248N/A%{_datadir}/time-slider/*
12248N/A
12248N/A%files root
12248N/A%defattr (-, root, bin)
12248N/A%attr (0755, root, sys) %dir %{_sysconfdir}
12248N/A%dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1
12248N/A%dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1/system.d
12248N/A%{_sysconfdir}/dbus-1/system.d/*
12248N/A%dir %attr (-, root, sys) %{_sysconfdir}/xdg
12248N/A%dir %attr (-, root, sys) %{_sysconfdir}/xdg/autostart
12248N/A%attr (-, root, sys) %{_sysconfdir}/xdg/autostart/*
12248N/A# '/etc' directory already declared above as "%{_sysconfdir}"
12248N/A%dir %attr (0755, root, sys) /etc/security
12248N/A%dir %attr (0755, root, sys) /etc/security/auth_attr.d
12248N/A%config %ips_tag(restart_fmri=svc:/system/rbac:default) %attr (0444, root, sys) /etc/security/auth_attr.d/*
12248N/A%dir %attr (0755, root, sys) /etc/user_attr.d
12248N/A%config %ips_tag(restart_fmri=svc:/system/rbac:default) %attr (0444, root, sys) /etc/user_attr.d/*
12248N/A%dir %attr (0755, root, bin) /lib
12248N/A%dir %attr (0755, root, bin) /lib/svc
12248N/A%dir %attr (0755, root, sys) /lib/svc/manifest
12248N/A%dir %attr (0755, root, sys) /lib/svc/manifest/application
12248N/A%class(manifest) %attr (0444, root, sys) /lib/svc/manifest/application/time-slider.xml
12248N/A%class(manifest) %attr (0444, root, sys) /lib/svc/manifest/application/time-slider-plugin.xml
12248N/A%dir %attr (0755, root, sys) /lib/svc/manifest/system
12248N/A%dir %attr (0755, root, sys) /lib/svc/manifest/system/filesystem
12248N/A%class(manifest) %attr (0444, root, sys) /lib/svc/manifest/system/filesystem/auto-snapshot.xml
12248N/A%attr (0555, root, bin) /lib/svc/method/time-slider
12248N/A%attr (0555, root, bin) /lib/svc/method/time-slider-plugin
12248N/A%attr (0555, root, bin) /lib/svc/method/time-slider-rsync
12248N/A
12248N/A%files l10n
12248N/A%defattr (-, root, other)
12248N/A%dir %attr (0755, root, sys) %{_datadir}
12248N/A%{_datadir}/locale/*
12248N/A
12248N/A%changelog
12248N/A* Fri Jul 29 2011 - erwann.chenede@oracle.com
12248N/A- moved smf files from var to lib
12248N/A* Tue Aug 17 2010 - niall.power@oracle.com
12248N/A- Adjust License tag to cr_Oracle for build 146a
12248N/A* Thu Jul 29 2010 - niall.power@oracle.com
12248N/A- Drop upstreamed patch "-rsync-expire.diff"
12248N/A- Bump to version 0.2.97
12248N/A* Wed June 16 2010 - niall.power@oracle.com
12248N/A- Add missing RBAC fragments for user_attr and auth_attr.
12248N/A- Add patch "01-rsync-expire.diff" to fix defect 16280
12248N/A* Fri June 04 2010 - niall.power@oracle.com
12248N/A- Bump to version 0.2.96. Updated with new dependencies
12248N/A* Fri Feb 05 2010 - harry.fu@sun.com
12248N/A- Copy LINGUAS and po files from po-sun only, not Makefile.
12248N/A* Thu Feb 04 2010 - harry.fu@sun.com
12248N/A- Replace the old translations with the latest ones from po-sun.
12248N/A* Wed Dec 09 2009 - niall.power@sun.com
12248N/A- Add patch time-slider-01-python26.diff and update
12248N/A BuildRequires and Requires python deps to python26 variants.
12248N/A* Mon Nov 23 2009 - niall.power@sun.com
12248N/A- Revert to previous version (0.2.10) until removed features
12248N/A reimplemented or ARC review approved. Backs out prev. commit
12248N/A* Thu Nov 05 2009 - niall.power@sun.com
12248N/A- Bumped version to 0.2.95
12248N/A- Bumped python requirements to 2.6
12248N/A- Obsoletes SUNWzfs-auto-snapshot from 0.2.95+
12248N/A* Fri Jul 10 2009 - niall.power@sun.com
12248N/A- Bump version to 0.2.10. D.O.O# 8667, 8454 & 8685
12248N/A* Fri Apr 3 2009 - laca@sun.com
12248N/A- use desktop-cache instead of postrun
12248N/A* Fri Feb 20 2009 - niall.power@sun.com
12248N/A- Bump to 0.2.6 tarball to incorporate updated l10n
12248N/A from Takao Fujiwara. bugster 6807414
12248N/A- Dropped upstreamed -01-python-env.diff
12248N/A* Thu Feb 12 2009 - niall.power@sun.com
12248N/A- Add patch 01-python-env.diff to fully fix 6754650.
12248N/A Upstreamed patch. Remainder of fix already in 0.2.5 tarball
12248N/A* Thu Feb 05 2009 - niall.power@sun.com
12248N/A- Bump to 0.2.5
12248N/A- Add patch potfiles.diff to get GTK translations.
12248N/A- Add patch g11n-i18n-ui.diff to show localized date.
12248N/A* Fri Jan 09 2009 - niall.power@sun.com
12248N/A- Bump to 0.2.3
12248N/A* Mon Dec 17 2008 - niall.power@sun.com
12248N/A- Bump to 0.2.2
12248N/A* Mon Oct 20 2008 - takao.fujiwara@sun.com
12248N/A- Bump to 0.1.2 with .po files. Add l10n packages.
12251N/A* Fri Oct 10 2008 - niall.power@sun.com
12251N/A- disable auto SMF enabelment in post install
12251N/A* Wed Oct 08 2008 - niall.power@sun.com
12248N/A- Bump to 0.1.1 Drop upstreamed g11n-i18n.diff
12248N/A* Thu Oct 02 2008 - takao.fujiwara@su.com
12248N/A- Add time-slider-01-g11n-i18n.diff
12248N/A* Wed Sep 18 2008 - niall.power@sun.com
12248N/A- Initial spec file created.