SUNWgnome-time-slider.spec revision 19286
10139N/A#
10139N/A# spec file for package SUNWtime-slider
10139N/A#
12282N/A# includes module(s): time-slider
10139N/A#
10139N/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#
10139N/A%define owner niall
15322N/A#
10139N/A%include Solaris.inc
15694N/A%include l10n.inc
12282N/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
10139N/A%define OSR developed in the open, no OSR needed:0
10139N/A
12773N/AName: SUNWgnome-time-slider
15694N/AIPS_package_name: desktop/time-slider
12773N/AMeta(info.classification): %{classification_prefix}:Applications/Configuration and Preferences
10139N/ASummary: Time Slider ZFS snapshot management for GNOME
13483N/AVendor: Sun Microsystems, Inc.
10139N/ALicense: cr_Oracle
15694N/AVersion: 0.2.97
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
10139N/ASUNW_BaseDir: %{_basedir}
10139N/ASUNW_Copyright: %{name}.copyright
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A
10139N/A%include default-depend.inc
10139N/A%include gnome-consolidation.inc
10139N/ABuildRequires: SUNWgnome-python26-libs-devel
10139N/ABuildRequires: SUNWgksu-devel
10139N/ARequires: SUNWPython26
10139N/ARequires: SUNWdbus-python26
10139N/ARequires: SUNWgnome-python26-libs
10139N/ARequires: SUNWpython26-notify
10139N/ARequires: SUNWgksu
10139N/ARequires: SUNWgnome-dialog
10139N/ARequires: %{name}-root
10139N/ARequires: SUNWdesktop-cache
10139N/AObsoletes: SUNWzfs-auto-snapshot
10139N/A
10139N/A%package root
10139N/ASummary: %{summary} - / filesystem
10139N/ASUNW_BaseDir: /
10139N/A%include default-depend.inc
10139N/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
10139N/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
10139N/Aecho 'zfssnap::::type=role;auths=solaris.smf.manage.zfs-auto-snapshot;profiles=ZFS File System Management' > $RPM_BUILD_ROOT/etc/user_attr
10139N/Aecho 'solaris.smf.manage.zfs-auto-snapshot:::Manage the ZFS Automatic Snapshot Service::' > $RPM_BUILD_ROOT/etc/security/auth_attr
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
10139N/A# REMOVE l10n FILES
10139N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
10139N/A%endif
10139N/A
10139N/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
15694N/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
10139N/A%defattr (-, root, bin)
10139N/A%{_bindir}/*
10139N/A%dir %attr (0755, root, bin) %{_libdir}
10139N/A%{_libdir}/time-slider-*
10165N/A%{_libdir}/time-sliderd
12773N/A%dir %attr (0755, root, bin) %{_libdir}/time-slider
12773N/A%dir %attr (0755, root, bin) %{_libdir}/time-slider/plugins/
12773N/A%dir %attr (0755, root, bin) %{_libdir}/time-slider/plugins/rsync
12773N/A%{_libdir}/time-slider/plugins/rsync/*
12773N/A%dir %attr (0755, root, bin) %{_libdir}/time-slider/plugins/zfssend
10139N/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
10344N/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
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
10139N/A%{_datadir}/icons/hicolor/48x48/apps/time-slider-setup.png
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/72x72
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/72x72/apps
10139N/A%{_datadir}/icons/hicolor/72x72/apps/time-slider-setup.png
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/96x96
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/96x96/apps
10139N/A%{_datadir}/icons/hicolor/96x96/apps/time-slider-setup.png
10139N/A%{_datadir}/time-slider/*
10139N/A
10139N/A%files root
10139N/A%defattr (-, root, bin)
10139N/A%attr (0755, root, sys) %dir %{_sysconfdir}
10139N/A%dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1
10139N/A%dir %attr (0755, root, bin) %{_sysconfdir}/dbus-1/system.d
10139N/A%{_sysconfdir}/dbus-1/system.d/*
10139N/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%config %class (rbac) %attr (0644, root, sys) /etc/user_attr
10139N/A%config %class (rbac) %attr (0644, root, sys) /etc/security/auth_attr
10139N/A%dir %attr (0755, root, sys) /var
10139N/A%dir %attr (0755, root, sys) /var/svc
10139N/A%dir %attr (0755, root, sys) /var/svc/manifest
10139N/A%dir %attr (0755, root, sys) /var/svc/manifest/application
10139N/A%class(manifest) %attr (0444, root, sys) /var/svc/manifest/application/time-slider.xml
10139N/A%class(manifest) %attr (0444, root, sys) /var/svc/manifest/application/time-slider-plugin.xml
10139N/A%dir %attr (0755, root, sys) /var/svc/manifest/system
10139N/A%dir %attr (0755, root, sys) /var/svc/manifest/system/filesystem
10139N/A%class(manifest) %attr (0444, root, sys) /var/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)
15694N/A%dir %attr (0755, root, sys) %{_datadir}
15694N/A%{_datadir}/locale/*
15205N/A%endif
15205N/A
13445N/A%changelog
13445N/A* Tue Aug 17 2010 - niall.power@oracle.com
12793N/A- Adjust License tag to cr_Oracle for build 146a
12793N/A* Thu Jul 29 2010 - niall.power@oracle.com
12628N/A- Drop upstreamed patch "-rsync-expire.diff"
12628N/A- Bump to version 0.2.97
12304N/A* Wed June 16 2010 - niall.power@oracle.com
12304N/A- Add missing RBAC fragments for user_attr and auth_attr.
12282N/A- Add patch "01-rsync-expire.diff" to fix defect 16280
12282N/A* Fri June 04 2010 - niall.power@oracle.com
11951N/A- Bump to version 0.2.96. Updated with new dependencies
11951N/A* Fri Feb 05 2010 - harry.fu@sun.com
11010N/A- Copy LINGUAS and po files from po-sun only, not Makefile.
11010N/A* Thu Feb 04 2010 - harry.fu@sun.com
10818N/A- Replace the old translations with the latest ones from po-sun.
10818N/A* Wed Dec 09 2009 - niall.power@sun.com
10344N/A- Add patch time-slider-01-python26.diff and update
10344N/A BuildRequires and Requires python deps to python26 variants.
10344N/A* Mon Nov 23 2009 - niall.power@sun.com
10232N/A- Revert to previous version (0.2.10) until removed features
10232N/A reimplemented or ARC review approved. Backs out prev. commit
10165N/A* Thu Nov 05 2009 - niall.power@sun.com
10165N/A- Bumped version to 0.2.95
10139N/A- Bumped python requirements to 2.6
10139N/A- Obsoletes SUNWzfs-auto-snapshot from 0.2.95+
10139N/A* Fri Jul 10 2009 - niall.power@sun.com
10139N/A- Bump version to 0.2.10. D.O.O# 8667, 8454 & 8685
10139N/A* Fri Apr 3 2009 - laca@sun.com
10139N/A- use desktop-cache instead of postrun
10139N/A* Fri Feb 20 2009 - niall.power@sun.com
10139N/A- Bump to 0.2.6 tarball to incorporate updated l10n
10139N/A from Takao Fujiwara. bugster 6807414
10139N/A- Dropped upstreamed -01-python-env.diff
10139N/A* Thu Feb 12 2009 - niall.power@sun.com
10139N/A- Add patch 01-python-env.diff to fully fix 6754650.
10139N/A Upstreamed patch. Remainder of fix already in 0.2.5 tarball
10139N/A* Thu Feb 05 2009 - niall.power@sun.com
10139N/A- Bump to 0.2.5
10139N/A- Add patch potfiles.diff to get GTK translations.
10139N/A- Add patch g11n-i18n-ui.diff to show localized date.
10139N/A* Fri Jan 09 2009 - niall.power@sun.com
10139N/A- Bump to 0.2.3
10139N/A* Mon Dec 17 2008 - niall.power@sun.com
10139N/A- Bump to 0.2.2
10139N/A* Mon Oct 20 2008 - takao.fujiwara@sun.com
10139N/A- Bump to 0.1.2 with .po files. Add l10n packages.
10139N/A* Fri Oct 10 2008 - niall.power@sun.com
10139N/A- disable auto SMF enabelment in post install
10139N/A* Wed Oct 08 2008 - niall.power@sun.com
10139N/A- Bump to 0.1.1 Drop upstreamed g11n-i18n.diff
10139N/A* Thu Oct 02 2008 - takao.fujiwara@su.com
10139N/A- Add time-slider-01-g11n-i18n.diff
10139N/A* Wed Sep 18 2008 - niall.power@sun.com
10139N/A- Initial spec file created.
10139N/A
10139N/A
10139N/A