1 # 2 # Copyright (c) 2003-2004 Sun Microsystems, Inc. 3 # This file and all modifications and additions to the pristine 4 # package are under the same license as the package itself. 5 # Owner: gman 6 # 7 Name: gnome-netstatus 8 License: GPL 9 Group: System/GUI/GNOME 10 Version: 2.12.0 11 Release: 1 12 Distribution: Java Desktop System 13 Vendor: Sun Microsystems, Inc. 14 Summary: The GNOME Network Monitor Applet 15 Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-netstatus/2.12/%{name}-%{version}.tar.bz2 16 Patch1: gnome-netstatus-01-restart.diff 17 Patch2: gnome-netstatus-02-kstat-solaris.diff 18 Patch3: gnome-netstatus-03-ne-po.diff 19 #owner:dcarbery date:2006-11-16 type:bug bugzilla:375932 20 Patch4: gnome-netstatus-04-icon-symlink.diff 21 URL: http://www.gnome.org 22 BuildRoot: %{_tmppath}/%{name}-%{version}-build 23 Docdir: %{_defaultdocdir}/gnome-netstatus 24 Autoreqprov: on 25 26 %define libglade_version 2.3.6 27 %define gnome_panel_version 2.6.1 28 29 Requires: libglade >= %{libglade_version} 30 Requires: gnome-panel >= %{gnome_panel_version} 31 32 BuildRequires: libglade-devel >= %{libglade_version} 33 BuildRequires: gnome-panel-devel >= %{gnome_panel_version} 34 35 %description 36 This package contains an applet which provides information 37 about a network interface on your panel. 38 39 %prep 40 %setup -q 41 %patch1 -p1 42 %patch2 -p1 43 %patch3 -p1 44 %patch4 -p1 45 46 #FIXME: see below 47 rm -f po/ne.po 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 gnome-doc-prepare 63 libtoolize --force 64 aclocal $ACLOCAL_FLAGS 65 autoheader 66 automake -a -c -f 67 autoconf 68 69 #FIXME: "ne" po file seems broken, disabling for now 70 LINGUAS="ar az bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu hi hr hu id it ja ko lt mn ms nb nl nn no pa pl pt pt_BR ro ru rw sk sq 71 sr sr@Latn sv ta th tr vi uk wa xh zh_CN zh_TW" 72 export LINGUAS 73 CFLAGS="$RPM_OPT_FLAGS" \ 74 ./configure \ 75 --prefix=%{_prefix} \ 76 --libexecdir=%{_libexecdir} \ 77 --sysconfdir=%{_sysconfdir} \ 78 --disable-scrollkeeper 79 80 make -j $CPUS 81 82 %install 83 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 84 make install DESTDIR=$RPM_BUILD_ROOT 85 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 86 87 %clean 88 rm -rf $RPM_BUILD_ROOT 89 90 %post 91 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 92 SCHEMAS="netstatus.schemas" 93 for S in $SCHEMAS; do 94 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null 95 done 96 97 %files 98 %defattr(-,root,root) 99 %doc AUTHORS ChangeLog COPYING NEWS README TODO 100 %doc %{_datadir}/gnome/help/gnome-netstatus 101 %config %{_sysconfdir}/gconf/schemas/*.schemas 102 %{_libdir}/bonobo/servers/*.server 103 %{_libexecdir}/* 104 %{_datadir}/pixmaps/* 105 %{_datadir}/gnome-netstatus/ 106 %{_datadir}/gnome/help/* 107 %{_datadir}/gnome-2.0/ui/*.xml 108 %{_datadir}/icons/hicolor/* 109 %{_datadir}/locale/*/LC_MESSAGES/*.mo 110 %{_datadir}/omf/gnome-netstatus/*.omf 111 112 %changelog 113 * Thu Nov 16 2006 - damien.carbery@sun.com 114 - Add patch 04-icon-symlink to make l10n image symlinks relative rather than 115 absolute. Fixes WOS integration issue which prohibits absolute symlinks. 116 Bugzilla 375932. 117 118 * Mon Oct 03 2005 - damien.carbery@sun.com 119 - Add patch to fix po/ne.po (dos2unix required). Bugzilla 316750. 120 Remove javahelp-convert code as the docs are no longer used. 121 122 * Thu Sep 15 2005 - brian.cameron@sun.com 123 - Bump to 2.12.0 124 125 * Fri Jan 14 2005 - kazuhiko.maekawa@sun.com 126 - Updated l10n help tarball for cinnabar-linux 127 128 * Tue Dec 21 2004 - vinay.mandyakoppal@wipro.com 129 - Added gnome-netstatus-06-Shift+F10-not-working.diff to make 130 Shift+F10 work. Fixes bug#6193273. 131 132 * Thu Oct 28 2004 - kazuhiko.maekawa@sun.com 133 - Updated l10n help tarball and added pt_BR 134 135 * Tue Oct 05 2004 - matt.keenan@sun.com 136 - Removed patch 03-docs.diff #5108690 137 - Renamed patch 05-g11n-alllinguas.diff to 03-g11n-alllinguas.diff 138 139 * Fri Sep 17 2004 - ciaran.mcdermott@sun.com 140 - Added gnome-netstatus-05-g11n-alllinguas.diff to add zh_TW lingua 141 142 * Mon Sep 06 2004 - matt.keenan@sun.com 143 - Added javahelp-convert for gnome-netstatus docs 144 145 * Wed Aug 25 2004 - damien.carbery@sun.com 146 - Integrated updated docs tarball from breda.mccolgan@sun.com. 147 148 * Wed Aug 25 2004 - Kazuhiko.Maekawa@sun.com 149 - Added l10n help contents 150 151 * Fri Aug 13 2004 - damien.carbery@sun.com 152 - Change absolute symlinks to relative for s10 integration. Patch wos_symlinks. 153 154 * Mon Aug 09 2004 - takao.fujiwara@sun.com 155 - Fixed build error. 156 157 * Thu Aug 05 2004 - damien.carbery@sun.com 158 - Integrated docs tarball from breda.mccolgan@sun.com 159 - Added patch to omit non-C locales from help. 160 161 * Fri Jul 23 2004 - muktha.narayan@wipro.com 162 - Added gnome-netstatus-02-kstat-solaris.diff to use kstat 163 in Solaris. 164 165 * Thu Jul 08 2004 - damien.donlon@sun.com 166 - Adding gnome-netstatus-l10n-po-1.2.tar.bz2 l10n content 167 168 * Thu Jul 08 2004 - stephen.browne@sun.com 169 - ported to rpm4/suse91 170 171 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 172 - added "-j $CPUS" to make to speed up builds 173 174 * Mon Jun 14 2004 - misha@sun.com 175 - Removed upstream patch gnome-netstatus-01-right-click-help.diff 176 Removed upstream patch gnome-netstatus-02-include-socket-h.diff 177 Removed upstream patch gnome-netstatus-04-g11n-potfiles.diff 178 Removed broken patch gnome-netstatus-03-wireless.diff 179 180 * Tue Jun 08 2004 - misha@sun.com 181 - Bump to 2.7.1 182 Network interface restart patch is added. 183 184 * Mon May 23 2004 - yuriy.kuznetsov@sun.com 185 - Added patch gnome-netstatus-04-g11n-potfiles.diff 186 187 * Mon May 17 2004 - damien.carbery@sun.com 188 - Correct Requires line: iwlib -> wireless-tools. 189 190 * Wed May 12 2004 - damien.donlon@sun.com 191 - Updated l10n content to gnome-netstatus-l10n-po-1.1.tar.bz2 192 193 * Tue May 12 2004 - mark.carey@sun.com 194 - add patch #3 (wireless support linux only) 195 196 * Fri May 07 2004 - matt.keenan@sun.com 197 - Bump to 2.6.1 198 199 * Sun May 02 2004 - laca@sun.com 200 - add patch #2 (include-socket-h) to fix build on Solaris 201 202 * Fri Apr 30 2004 - muktha.narayan@wipro.com 203 - Modified gnome-netstatus-01-right-click-help.diff to 204 include the 'Help' menu item in GNOME_NetstatusApplet.xml file, 205 fix a warning and open the correct help page for preference tab. 206 207 * Mon Mar 29 2004 - damien.donlon@sun.com 208 - Updated l10n content to gnome-netstatus-l10n-po-1.0.tar.bz2 209 210 * Wed Mar 24 2004 - <glynn.foster@sun.com> 211 - Bump to 2.6.0. Remove l10n and socksio headers, upstream. 212 Refactor help patch not to use egg stuff. 213 214 * Wed Mar 03 2004 - <niall.power@sun.com> 215 - Patch #03 to fix build on solaris. 216 - replace "tar jxf" with "bzcat | tar -xf -" 217 - run gnome-doc-common and autoheader in build 218 - specify libexecdir in configure args 219 220 * Fri Feb 27 2004 - <matt.keenan@sun.com> 221 - Fix gnome-netstatus-02-right-click-help.diff as it was not applying... should have bee tested ! 222 - Fix gnome-netstatus-01-i18n.diff : zh_HK bug in patch.... hmmm 223 224 * Tue Feb 24 2004 - <shakti.sen@wipro.com> 225 - Added gnome-netstatus-02-right-click-help.diff to provide right-click help 226 support for the applet as well as support for multi-head. 227 228 * Tue Feb 10 2004 - <matt.keenan@sun.com> 229 - Bump to 0.14, add docs/l10n, port patches 01/02 230 231 * Mon Jul 07 2003 - <markmc@sun.com> 232 - Move to 0.11 233 234 * Thu Jun 12 2003 - <markmc@sun.com> 235 - Move to 0.10 236 237 * Thu Jun 12 2003 - <markmc@sun.com> 238 - Initial spec file 239 240