1 # 2 # spec file for package gnome-system-monitor 3 # 4 # Copyright (c) 2005 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: dkenny 9 # 10 Name: gnome-system-monitor 11 License: GPL 12 Group: System/GUI/GNOME 13 Version: 2.16.1 14 Release: 1 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: Simple process monitor 18 Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2 19 Source1: gnome-system-monitor.1.gz 20 #owner:henryz date:2006-11-15 type:feature 21 #This patch make libgtop run at Solaris 22 Patch1: gnome-system-monitor-01-solaris.diff 23 URL: http://www.gnome.org 24 BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 Autoreqprov: on 26 Prereq: GConf 27 28 %define libgnomeui_version 2.6.0 29 %define libwnck_version 2.6.0 30 %define libgtop_version 2.9.5 31 %define scrollkeeper_version 0.3.14 32 33 BuildRequires: libgnomeui-devel >= %{libgnomeui_version} 34 BuildRequires: libwnck-devel >= %{libwnck_version} 35 BuildRequires: libgtop-devel >= %{libgtop_version} 36 BuildRequires: scrollkeeper >= %{scrollkeeper_version} 37 Requires: libgnomeui >= %{libgnomeui_version} 38 Requires: libwnck >= %{libwnck_version} 39 Requires: libgtop >= %{libgtop_version} 40 41 42 %description 43 Gnome-system-monitor is a simple process and system monitor for Gnome. 44 45 %prep 46 %setup -q 47 %patch1 -p1 48 49 %build 50 %ifos linux 51 if [ -x /usr/bin/getconf ]; then 52 CPUS=`getconf _NPROCESSORS_ONLN` 53 fi 54 %else 55 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 56 %endif 57 if test "x$CPUS" = "x" -o $CPUS = 0; then 58 CPUS=1 59 fi 60 61 gnome-doc-common 62 libtoolize --force 63 aclocal $ACLOCAL_FLAGS 64 automake -a -c -f 65 autoconf 66 67 CFLAGS="$RPM_OPT_FLAGS" \ 68 ./configure --prefix=%{_prefix} \ 69 --sysconfdir=%{_sysconfdir} 70 make -j $CPUS 71 72 %install 73 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 74 make DESTDIR=$RPM_BUILD_ROOT install 75 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 76 install -d $RPM_BUILD_ROOT%{_mandir}/man1 77 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 78 79 #Copy zh_HK from zh_TW 80 #Fixes bug 4930405 81 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES 82 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ 83 84 85 # Delete scrollkeeper files - conflict with eog files! 86 rm -rf $RPM_BUILD_ROOT%{_prefix}/var/scrollkeeper 87 88 %clean 89 rm -rf $RPM_BUILD_ROOT 90 91 %post 92 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 93 SCHEMAS="gnome-system-monitor.schemas" 94 for S in $SCHEMAS; do 95 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null 96 done 97 98 %files 99 %defattr(-, root, root) 100 %doc AUTHORS COPYING ChangeLog HACKING NEWS README TODO 101 %{_bindir}/gnome-system-monitor 102 %{_datadir}/applications/gnome-system-monitor.desktop 103 %{_datadir}/locale/*/*/gnome-system-monitor.mo 104 %{_datadir}/gnome/help/gnome-system-monitor 105 %{_datadir}/omf/gnome-system-monitor/*.omf 106 %{_sysconfdir}/gconf/schemas/*.schemas 107 %{_mandir}/man1/* 108 109 %changelog 110 * Sun. Nov. 26 2006 - hua.zhang@sun.com 111 - Merge Patch2: gnome-system-monitor-02-launch-menu-item.diff 112 into libgtop-01-solaris.diff 113 * Thu. Nov. 16 2006 - hua.zhang@sun.com 114 - add patch comments. 115 * Wed Nov 15 2006 - calum.benson@sun.com 116 - Modify launch menu entry to match latest UI spec. 117 * Mon Oct 02 2006 - damien.carbery@sun.com 118 - Bump to 2.16.1. 119 * Wed Sep 06 2006 - damien.carbery@sun.com 120 - Bump to 2.16.0. 121 * Tue Aug 22 2006 - damien.carbery@sun.com 122 - Bump to 2.15.92. 123 * Tue Aug 08 2006 - damien.carbery@sun.com 124 - Bump to 2.15.91. 125 * Wed Jul 26 2006 - damien.carbery@sun.com 126 - Bump to 2.15.90. 127 * Wed July 19 2006 - hua.zhang@sun.com 128 - Add one patch so that Monitor can run at Solaris, 129 also fix some existed bugs. 130 * Fri Apr 10 2006 - damien.carbery@sun.com 131 - Bump to 2.14.1. 132 Mon Mar 13 2006 - damien.carbery@sun.com 133 - Bump to 2.14.0. 134 Tue Feb 28 2006 - damien.carbery@sun.com 135 - Bump to 2.13.92. 136 * Tue Jan 31 2006 - damien.carbery@sun.com 137 - Bump to 2.13.90. 138 * Tue Jan 17 2006 - damien.carbery@sun.com 139 - Bump to 2.13.5 140 * Sun Jan 15 2006 - damien.carbery@sun.com 141 - Bump to 2.13.4. 142 * Tue Nov 29 2005 - laca.com 143 - remove javahelp stuff 144 * Tue Oct 11 2005 - damien.carbery@sun.com 145 - Bump to 2.12.1 146 * Sat Sep 17 2005 - glynn.foster@sun.com 147 - Bump to 2.12.0 148 * Mon Aug 15 2005 - damien.carbery@sun.com 149 - Bump to 2.11.91. 150 * Thu May 19 2005 - glynn.foster@sun.com 151 - Bump to 2.10.1 152 * Wed Mar 09 2005 - kazuhiko.maekawa@sun.com 153 - Updated gnome-system-monitor-01-l10n-online-help.diff for l10n help 154 * Fri Jan 14 2005 - kazuhiko.maekawa@sun.com 155 - Updated l10n help tarball for cinnabar-linux 156 * Thu Oct 28 2004 - kazuhiko.maekawa@sun.com 157 - Updated l10n help tarball and added pt_BR 158 * Wed Aug 25 2004 - Kazuhiko.Maekawa@sun.com 159 - Updated l10n help tarball name for Cinnabar 160 * Thu Aug 05 2004 - damien.carbery@sun.com 161 - Integrated docs 0.3 tarball from breda.mccoglan@sun.com 162 * Thu Jul 08 2004 - damien.donlon@sun.com 163 - Updated l10n content to gnome-system-monitor-l10n-po-1.2.tar.bz2 164 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 165 - added "-j $CPUS" to make to speed up builds 166 * Fri Jun 11 2004 - damien.carbery@sun.com 167 - Integrated docs 0.2 tarball from breda.mccoglan@sun.com 168 * Wed May 12 2004 - damien.donlon@sun.com 169 - Updated l10n content to gnome-system-monitor-l10n-po-1.1.tar.bz2 170 * Sun Apr 18 2004 - laca@sun.com 171 - enable javahelp conversion on Solaris 172 * Thu Apr 08 2004 - niall.power@sun.com 173 - bump to 2.6.0 174 * Thu Apr 01 2004 - matt.keenan@sun.com 175 - Javahelp conversion 176 * Mon Mar 29 2004 - damien.donlon@sun.com 177 - Updated l10n content to gnome-system-monitor-l10n-po-1.0.tar.bz2 178 * Mon Feb 16 2004 - matt.keenan@Sun.COM 179 - Bump to 2.5.3, port docs/l10n 180 * Tue Dec 16 2003 - glynn.foster@Sun.COM 181 - Bump to 2.5.2 182 * Fri Oct 31 2003 - glynn.foster@Sun.COM 183 - Remove the Sun Supported keyword, reorder patches. 184 * Tue Oct 14 2003 - niall.power@Sun.COM 185 - updated to version 2.4.0, reset release 186 * Fri Aug 08 2003 - niall.power@Sun.COM 187 - Remove mnemonics from notebook tab labels (#4903256) 188 * Tue Aug 05 2003 - glynn.foster@Sun.COM 189 - Update tarball, bump version, reset release. 190 * Fri Aug 01 2003 - glynn.foster@Sun.COM 191 - Add menu category to the menu entry. 192 * Wed May 14 2003 - Laszlo.Kovacs@Sun.COM 193 - Initial release 194