SUNWgnome-system-monitor.spec revision 19279
15317N/A#
15317N/A# spec file for package SUNWgnome-system-monitor
15317N/A#
15317N/A# includes module(s): gnome-system-monitor
15317N/A#
15317N/A# Copyright 2009 Sun Microsystems, Inc.
15317N/A# This file and all modifications and additions to the pristine
15317N/A# package are under the same license as the package itself.
15317N/A#
20307N/A%define owner migi
15317N/A#
15317N/A%include Solaris.inc
15317N/A%use gnomesystemmonitor = gnome-system-monitor.spec
15317N/A
15317N/AName: SUNWgnome-system-monitor
18688N/AIPS_package_name: desktop/system-monitor/gnome-system-monitor
18688N/AMeta(info.classification): %{classification_prefix}:Applications/System Utilities
15317N/ASummary: GNOME system monitor
15317N/AVersion: %{default_pkg_version}
15317N/ASUNW_BaseDir: %{_basedir}
15317N/ASUNW_Copyright: %{name}.copyright
15317N/ALicense: %{gnomesystemmonitor.license}
19140N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
15317N/ASource: %{name}-manpages-0.1.tar.gz
15317N/A
15317N/A%include default-depend.inc
20857N/A%include gnome-consolidation.inc
16401N/A
16401N/ARequires: SUNWsigcpp
15317N/ARequires: SUNWgtkmm
15317N/ARequires: SUNWgtk2
18993N/ARequires: SUNWgnome-config
16401N/ARequires: SUNWgnome-libs
15317N/ARequires: SUNWgnome-icon-theme
15317N/ARequires: SUNWlibgtop
15317N/ARequires: SUNWgnome-panel
15317N/ARequires: SUNWperl-xml-parser
15317N/ARequires: SUNWlibC
15317N/ARequires: SUNWdesktop-cache
15317N/ARequires: %{name}-root
15317N/ABuildRequires: SUNWgtk2-devel
15317N/ABuildRequires: SUNWgnome-libs-devel
15317N/ABuildRequires: SUNWgnome-icon-theme
15317N/ABuildRequires: SUNWgnome-doc-utils
15317N/ABuildRequires: SUNWgnome-config-devel
15317N/ABuildRequires: SUNWlibgtop-devel
15317N/ABuildRequires: SUNWgnome-panel-devel
15317N/ABuildRequires: SUNWperl-xml-parser
15317N/ABuildRequires: SUNWglibmm-devel
15317N/ABuildRequires: SUNWgtkmm-devel
15317N/A
15317N/A%if %build_l10n
15317N/A%package l10n
15317N/AIPS_package_name: desktop/system-monitor/gnome-system-monitor/l10n
15317N/ASummary: %{summary} - l10n files
15317N/ASUNW_BaseDir(relocate_from:%{_prefix}): %{_gnome_il10n_basedir}
15317N/A%include default-depend.inc
15317N/A%include gnome-consolidation.inc
15317N/ARequires: %{name}
15317N/A%endif
15317N/A
15317N/A%package root
15317N/ASummary: GNOME system monitor - platform dependent, / file system
15317N/ASUNW_BaseDir: /
15317N/A%include default-depend.inc
15317N/A%include gnome-consolidation.inc
15317N/A
15317N/A%prep
16477N/Arm -rf %name-%version
16477N/Amkdir %name-%version
16477N/A%gnomesystemmonitor.prep -d %name-%version
16477N/Acd %{_builddir}/%name-%version
16477N/Agzcat %SOURCE0 | tar xf -
16477N/A
16477N/A%build
16477N/Aexport CFLAGS="%optflags"
16477N/Aexport RPM_OPT_FLAGS="$CFLAGS"
16477N/Aexport LDFLAGS="%_ldflags -lsocket -lnsl"
16477N/Aexport CXXFLAGS="%cxx_optflags"
16477N/A%if %cc_is_gcc
16477N/A%else
16477N/Aexport CXX="${CXX} -norunpath"
16477N/A%endif
16477N/A
16477N/A%gnomesystemmonitor.build -d %name-%version
16477N/A
16477N/A%install
16477N/A%gnomesystemmonitor.install -d %name-%version
15317N/A
15317N/A##rm -r $RPM_BUILD_ROOT%{_prefix}/var/scrollkeeper
15317N/A#rm -r $RPM_BUILD_ROOT/var/lib/scrollkeeper
15317N/A#rm -r $RPM_BUILD_ROOT/var
15317N/A
15317N/A%if %build_l10n
15317N/A%else
15317N/A# REMOVE l10n FILES
15317N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
15317N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
15317N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
15317N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*zh_CN.omf
16477N/A%endif
15317N/A
15317N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
15317N/A
15317N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
15317N/Acd %{_builddir}/%name-%version/sun-manpages
15317N/Amake install DESTDIR=$RPM_BUILD_ROOT
15317N/A
15378N/A%clean
15378N/Arm -rf $RPM_BUILD_ROOT
15317N/A
15317N/A%post
15317N/A%restart_fmri desktop-mime-cache gconf-cache
18178N/A
18178N/A%postun
15317N/A%restart_fmri desktop-mime-cache
15317N/A
16401N/A%files
19181N/A%doc -d gnome-system-monitor-%{gnomesystemmonitor.version} README AUTHORS
19498N/A%doc(bzip2) -d gnome-system-monitor-%{gnomesystemmonitor.version} COPYING NEWS ChangeLog
%dir %attr (0755, root, other) %{_datadir}/doc
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr(0755, root, sys) %{_datadir}
%dir %attr(0755, root, other) %{_datadir}/applications
%{_datadir}/applications/*
%dir %attr(0755, root, other) %{_datadir}/gnome
%dir %attr(0755, root, bin) %{_datadir}/gnome/help
%{_datadir}/gnome/help/*/C
%dir %attr(0755, root, bin) %{_datadir}/omf
%{_datadir}/omf/*/*-C.omf
%dir %attr (0755, root, other) %{_datadir}/pixmaps
%{_datadir}/pixmaps/gnome-system-monitor/side.png
%{_datadir}/pixmaps/gnome-system-monitor/upload.svg
%{_datadir}/pixmaps/gnome-system-monitor/download.svg
%dir %attr(0755, root, bin) %{_mandir}
%{_mandir}/*/*
%files root
%defattr (-, root, sys)
%attr (0755, root, sys) %dir %{_sysconfdir}
%{_sysconfdir}/gconf/schemas/gnome-system-monitor.schemas
%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%dir %attr(0755, root, other) %{_datadir}/gnome
%dir %attr(0755, root, bin) %{_datadir}/gnome/help
%dir %attr(0755, root, bin) %{_datadir}/gnome/help/gnome-system-monitor
%{_datadir}/gnome/help/*/[a-z]*
%dir %attr(0755, root, bin) %{_datadir}/omf
%dir %attr(0755, root, bin) %{_datadir}/omf/gnome-system-monitor
%{_datadir}/omf/*/*-[a-z][a-z].omf
%{_datadir}/omf/gnome-system-monitor/gnome-system-monitor-zh_CN.omf
%endif
%changelog
* Fri Apr 3 2009 - laca@sun.com
- use desktop-cache instead of postrun
* Tue Mar 24 2009 - dave.lin@sun.com
- Add BuildRequires of SUNWglibmm-devel SUNWgtkmm-devel.
* Mon Mar 23 2009 - Niall Power <niall.power@sun.com>
- Take ownership of spec file
* Wed Sep 17 2008 - Henry Zhang <hua.zhang@sun.com>
- Add %doc to %files for copyright
* Thu Jan 3 2008 - laca@sun.com
- use gconf-install.script instead of an inline script
* Thu Oct 11 2007 - damien.carbery@sun.com
- Remove install dependency on SUNWgnome-doc-utils and change the build
dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils.
* Sat Aug 18 2007 - damien.carbery@sun.com
- Comment out removal of /var dirs as they are no longer installed.
* Thu Apr 26 2007 - laca@sun.com
- set CXX to $CXX -norunpath because libtool swallows this option sometimes
and leaves compiler paths in the binaries
* Tue Apr 24 2007 - laca@sun.com
- use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install
(CR 6537817)
* Tue Mar 06 2007 - damien.carbery@sun.com
- Add the omf files back to %files. Tweak %install and /var references.
* Wed Feb 14 2007 - damien.carbery@sun.com
- Remove omf files from %files as they aren't in the build! Remove reference
to ${_prefix}/var too as it is not installed.
* Mon Feb 5 2007 - damien.carbery@sun.com
- Add Requires SUNWlibC after check-deps.pl run.
* Fri Jan 26 2007 - hua.zhang@sun.com
- Delete dependency on SUNWpcre/-devel
* Wed Jan 10 2007 - damien.carbery@sun.com
- Add to LDFLAGS so that libsocket and libnsl are linked against.
* Tue Dec 19 2006 - damien.carbery@sun.com
- Add SUNWgnome-themes/-devel dependency for gnome-icon-theme module.
* Mon Dec 11 2006 - damien.carbery@sun.com
- Add SUNWpcre/-devel dependency.
* Wed Nov 22 2006 - damien.carbery@sun.com
- 2.17 update: Add SUNWgnome-libs/-devel dependency and add pixmaps to %files.
* Mon Sep 04 2006 - Matt.Keenan@sun.com
- New Manpage tarball
* Fri Aug 25 2006 - laca@sun.com
- make the postrun scripts use $BASEDIR instead of $PKG_INSTALL_ROOT so
that it works during diskless client installation, part of CR6448317
* Mon Jul 31 2006 - damien.carbery@sun.com
- Remove 'devel' package definition as there is no matching %files section.
* Sun Jul 23 2006 - laca@sun.com
- fix gconf schemas installation and attributes
* Fri Jul 21 2006 - hua.zhang@sun.com
- Delete one sentence for gconf problem.
* Thu Jul 20 2006 - hua.zhang@sun.com
- Fix omf file bug
* Wed Jul 19 2006 - damien.carbery@sun.com
- Fix dir perms and merge share pkg into base pkg.
* Fri Apr 21 2006 - hua.zhang@sun.com
- Inital spec file