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