1 # 2 # spec file for package gnome-utils 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: mattman 9 # 10 Name: gnome-utils 11 License: GPL 12 Group: System/GUI/GNOME 13 Version: 2.16.2 14 Release: 2 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: Basic Utilities for the GNOME 2.0 Desktop 18 Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2 19 Source1: gnome-search-tool.1.gz 20 Source2: gfloppy.1.gz 21 Source3: gnome-dictionary.1.gz 22 Source4: gnome-screenshot.1.gz 23 Patch1: gnome-utils-01-gfloppy-permission.diff 24 Patch2: gnome-utils-02-gnome-screenshot.diff 25 Patch3: gnome-utils-03-search-menu-entry.diff 26 Patch4: gnome-utils-04-logview-plugin.diff 27 #date 2006-11-15 owner:calumb bugster:6489289 bugzilla:375684 type:bug 28 Patch5: gnome-utils-05-logview-launch-menu-item.diff 29 URL: http://www.gnome.org 30 BuildRoot: %{_tmppath}/%{name}-%{version}-build 31 Docdir: %{_defaultdocdir}/%{name} 32 Autoreqprov: on 33 Prereq: GConf 34 35 %define glib2_version 2.4.0 36 %define pango_version 1.4.0 37 %define gtk2_version 2.4.0 38 %define libgnome_version 2.6.0 39 %define libgnomeui_version 2.6.0 40 %define gail_version 1.6.3 41 %define gnome_panel_version 2.6.1 42 %define scrollkeeper_version 0.3.14 43 44 Requires: libgnome >= %{libgnome_version} 45 Requires: libgnomeui >= %{libgnomeui_version} 46 BuildRequires: glib2-devel >= %{glib2_version} 47 BuildRequires: pango-devel >= %{pango_version} 48 BuildRequires: gtk2-devel >= %{gtk2_version} 49 BuildRequires: libgnome-devel >= %{libgnome_version} 50 BuildRequires: libgnomeui-devel >= %{libgnomeui_version} 51 BuildRequires: gail-devel >= %{gail_version} 52 BuildRequires: gnome-panel >= %{gnome_panel_version} 53 BuildRequires: scrollkeeper >= %{scrollkeeper_version} 54 BuildRequires: e2fsprogs-devel 55 56 %description 57 This package contains some essential utilities for the GNOME2 Desktop. 58 59 60 %prep 61 %setup -q 62 %patch1 -p1 63 %patch2 -p1 64 %patch3 -p1 65 %patch4 -p1 66 %patch5 -p1 67 68 %build 69 %ifos linux 70 if [ -x /usr/bin/getconf ]; then 71 CPUS=`getconf _NPROCESSORS_ONLN` 72 fi 73 GREP_COMMAND=/usr/bin/grep 74 %else 75 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 76 GREP_COMMAND=/usr/xpg4/bin/grep 77 %endif 78 if test "x$CPUS" = "x" -o $CPUS = 0; then 79 CPUS=1 80 fi 81 82 libtoolize --force 83 aclocal $ACLOCAL_FLAGS 84 automake -a -c -f 85 autoconf 86 87 CFLAGS="$RPM_OPT_FLAGS" \ 88 ./configure \ 89 --prefix=%{_prefix} \ 90 --sysconfdir=%{_sysconfdir} \ 91 --libexecdir=%{_libexecdir} \ 92 --mandir=%{_mandir} \ 93 --disable-scrollkeeper \ 94 --disable-static \ 95 --enable-shared \ 96 --with-grep=$GREP_COMMAND 97 make -j $CPUS \ 98 pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ 99 pythondir=%{_libdir}/python%{python_version}/vendor-packages 100 101 %install 102 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 103 make -i install DESTDIR=$RPM_BUILD_ROOT \ 104 pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ 105 pythondir=%{_libdir}/python%{python_version}/vendor-packages 106 107 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 108 install -d $RPM_BUILD_ROOT%{_mandir}/man1 109 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 110 install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 111 install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1 112 install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1 113 114 #Copy zh_HK from zh_TW 115 #Fixes bug 4930405 116 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES 117 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ 118 119 rm -rf $RPM_BUILD_ROOT/usr/var/scrollkeeper 120 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 121 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a 122 123 %clean 124 rm -rf $RPM_BUILD_ROOT 125 126 %post 127 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 128 SCHEMAS="gdict.schemas gfloppy.schemas gnome-screenshot.schemas gnome-search-tool.schemas logview.schemas" 129 for S in $SCHEMAS; do 130 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null 131 done 132 133 %files 134 %defattr (-, root, root) 135 %{_bindir}/* 136 %{_libdir}/bonobo/servers/* 137 %{_libdir}/lib*.so.* 138 %{_libexecdir}/* 139 %{_datadir}/applications 140 %{_datadir}/gnome/help 141 %{_datadir}/gnome-2.0/ui/* 142 %{_datadir}/gnome-screenshot/ 143 %{_datadir}/locale/*/LC_MESSAGES/*.mo 144 %{_datadir}/gnome-utils 145 %{_datadir}/pixmaps 146 %{_datadir}/gnome-dictionary 147 %{_datadir}/gnome-system-log 148 %{_datadir}/gdict-1.0 149 %{_datadir}/omf 150 %{_mandir}/man1/* 151 %{_sysconfdir}/gconf/schemas 152 #FIXME: -devel subpkg? 153 %{_includedir}/* 154 %{_datadir}/gtk-doc 155 %{_libdir}/pkgconfig 156 157 %changelog 158 * Wed Nov 15 2006 - calum.benson@sun.com 159 - Tweak menu item name to match latest UI spec. 160 161 * Mon Nov 13 2006 - lin.ma@sun.com 162 - Change the name the 4th patch due to plugin integration. 163 pass --disable-static and --enable-shared to configure. 164 * Mon Nov 06 2006 - damien.carbery@sun.com 165 - Bump to 2.16.2. Remove upstream patch, 05-dictionary-multihead.. 166 * Mon Oct 16 2006 - damien.carbery@sun.com 167 - Remove the '-f' from the 'rm *.la *.a' lines so that any changes to the 168 module source will be seen as a build error and action can be taken. 169 * Fri Oct 11 2006 - glynn.foster@sun.com 170 - Add patch to fix multihead issues. Bugzilla #361856. 171 * Tue Oct 03 2006 - damien.carbery@sun.com 172 - Bump to 2.16.1. 173 * Mon Sep 04 2006 - damien.carbery@sun.com 174 - Bump to 2.16.0. 175 * Fri Aug 25 2006 - damien.carbery@sun.com 176 - Bump to 2.15.94. 177 * Wed Aug 23 2006 - takao.fujiwara@sun.com 178 - Added '--with-grep' option. Fix bug 6453845. 179 * Mon Aug 21 2006 - damien.carbery@sun.com 180 - Bump to 2.15.93. 181 * Wed Aug 09 2006 - damien.carbery@sun.com 182 - Bump to 2.15.92. 183 * Tue Aug 08 2006 - brian.cameron@sun.com 184 - Bump to 2.15.91. 185 * Tue Jul 25 2006 - damien.carbery@sun.com 186 - Remove upstream patches, 01-logview.diff and 04-gnome-dictionary. 187 * Mon Jul 24 2006 - damien.carbery@sun.com 188 - Bump to 2.15.90. 189 * Wed May 05 2006 - glynn.foster@sun.com 190 - Add patch to call things 'Find Files...' 191 * Fri Apr 21 2006 - brian.cameron@sun.com 192 - Add patch 4 to correct a core dumping problem with gnome-dictionary, 193 printing a NULL string. 194 * Mon Mar 13 2006 - damien.carbery@sun.com 195 - Bump to 2.14.0. 196 * Sun Mar 5 2006 - damien.carbery@sun.com 197 - Bump to 2.13.95. 198 * Fri Feb 24 2006 - damien.carbery@sun.com 199 - Bump to 2.13.93. 200 * Mon Feb 13 2006 - damien.carbery@sun.com 201 - Bump to 2.13.92. 202 * Mon Jan 30 2006 - damien.carbery@sun.com 203 - Bump to 2.13.91. 204 * Tue Jan 17 2006 - damien.carbery@sun.com 205 - Bump to 2.13.5 206 * Sun Jan 15 2006 - damien.carbery@sun.com 207 - Bump to 2.13.4 208 * Tue Dec 20 2005 - dermot.mccluskey@sun.com 209 - Bump to 2.13.3. 210 * Tue Nov 29 2005 - laca.com 211 - remove javahelp stuff 212 * Tue Nov 29 2005 - damien.carbery@sun.com 213 - Bump to 2.12.2. 214 * Tue Oct 11 2005 - damien.carbery@sun.com 215 - Bump to 2.12.1 216 - Remove javahelp code. No longer used. 217 * Sat Sep 17 2005 - glynn.foster@sun.com 218 - Bump to 2.12.0 219 * Mon Sep 05 2005 - damien.carbery@sun.com 220 - Bump to 2.11.92. 221 * Mon Aug 15 2005 - damien.carbery@sun.com 222 - Bump to 2.11.91. 223 * Thu Aug 04 2005 - laca@sun.com 224 - remove upstream patch searchtool-ceasing.diff 225 * Mon May 23 2005 - glynn.foster@sun.com 226 - Move the screenshot stuff here 227 * Wed May 18 2005 - kazuhiko.maekawa@sun.com 228 - Updated l10n help patch to add gfloppy help file 229 * Wed May 11 2005 - balamurali.viswanathan@wipro.com 230 - Bump to 2.10.1 231 * Fri May 06 2005 - dinoop.thomas@wipro.com 232 - Added patch gnome-utils-10-searchtool-ceasing.diff to fix searchtool ceasing 233 to search after entering a regular expression. Fixes #6262944. 234 * Mon May 02 2005 - balamurali.viswanathan@wipro.com 235 - Added patch gnome-utils-09-gfloppy-permission.diff to fix 6222777. 236 * Fri Apr 22 2005 - damien.carbery@sun.com 237 - Updated docs tarball (gnome-utils_docs-0.9linux) from maeve.anslow@sun.com. 238 * Tue Apr 05 2005 - damien.carbery@sun.com 239 - Updated docs tarball (gnome-utils_docs-0.8linux) from maeve.anslow@sun.com. 240 * Thu Mar 31 2005 - damien.carbery@sun.com 241 - Updated docs tarball (gnome-utils_docs-0.7linux) from maeve.anslow@sun.com. 242 * Wed Mar 16 2005 - vinay.mandyakoppal@wipro.com 243 - Added patch which fixes the issue of opening a directory in nautilus 244 when double clicked in case of multihead. Fixes #6234957. 245 * Wed Feb 28 2005 - damien.carbery@sun.com 246 - Update docs with tarball (_docs-0.6linux) from maeve.anslow@sun.com. 247 * Fri Feb 11 2005 - dinoop.thomas@wipro.com 248 - Added patch to correct the behaviour of searchtool with 249 regular expressions involving '?'.Fixes #6227053. 250 * Thu Feb 10 2005 - glynn.foster@sun.com 251 - Add patch to fix gdict tooltip. Fixes #4918783. 252 * Wed Jan 26 2005 - damien.carbery@sun.com 253 - Update docs with Linux specific tarball from maeve.anslow@sun.com. 254 * Fri Jan 14 2005 - kazuhiko.maekawa@sun.com 255 - Updated l10n help tarball for cinnabar-linux 256 * Fri Nov 12 2004 - kazuhiko.maekawa@sun.com 257 - Updated l10n help tarball and patch 258 * Thu Oct 28 2004 - kazuhiko.maekawa@sun.com 259 - Updated l10n help tarball and added pt_BR 260 * Wed Aug 25 2004 Kazuhiko.Maekawa@sun.com 261 - Updated l10n help contents for Cinnabar with patch 262 * Thu Aug 05 2004 damien.carbery@sun.com 263 - Incorporate new docs tarball from breda.mccolgan@sun.com. 264 * Thu Jul 08 2004 - damien.donlon@sun.com 265 - Updated l10n content to gnome-utils-l10n-po-1.2.tar.bz2 266 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 267 - added "-j $CPUS" to make to speed up builds 268 * Wed Jun 02 2004 damien.carbery@sun.com 269 - Incorporate new docs tarball from breda.mccolgan@sun.com. 270 * Thu May 27 2004 - damien.carbery@sun.com 271 - Incorporate new docs tarball from breda.mccolgan@sun.com. 272 * Tue May 25 2004 - yuriy.kuznetsov@sun.com 273 - Added gnome-utils-04-g11n-potfiles.diff 274 * Wed May 12 2004 - damien.donlon@sun.com 275 - Updated l10n content to gnome-utils-l10n-po-1.1.tar.bz2 276 * Mon May 10 2004 - leena.gunda@wipro.com 277 - added patch gnome-utils-03-gdict-applet-load.diff to fix 5030822. 278 * Fri May 07 2004 - matt.keenan@sun.com 279 - Bump to 2.6.2 280 * Wed Apr 21 2004 - laca@sun.com 281 - disable javahelp conversion of gfloppy docs on Solaris 282 * Sun Apr 18 2004 - laca@sun.com 283 - enable javahelp conversion on Solaris 284 * Thu Apr 01 2004 - matt.keenan@sun.com 285 - javahelp conversion 286 * Mon Mar 29 2004 - damien.donlon@sun.com 287 - Updated l10n content to gnome-utils-l10n-po-1.0.tar.bz2 288 * Wed Mar 24 2004 - glynn.foster@sun.com 289 - Bump to 2.6.0. Refactor potfiles patch, remove ui 290 and man page patches. 291 * Mon Mar 15 2004 - takao.fujiwara@sun.com 292 - Added gnome-utils-03-g11n-potfiles.diff 293 - Added gnome-utils-04-g11n-i18n-ui.diff to fix 4954404 294 * Tue Feb 24 2004 - glynn.foster@sun.com 295 - Dump all Matt's work on the patches since we've 296 merged most of them upstream. Some of them don't 297 apply to HEAD. 298 * Mon Feb 23 2004 - matt.keenan (at] sun.com 299 - Bump to 2.5.2 300 - Remerge patch 01/02 301 - Port patches 03/04/05 302 - Update %files 303 * Thu Jan 08 2004 - niall.power (at] sun.com 304 - Fix incorrect pango version 1.30 -> 1.3.1 305 * Wed Dec 17 2003 - glynn.foster (at] sun.com 306 - Bump to 2.5.0 307 * Wed Nov 04 2003 - glynn.foster (at] sun.com 308 - Remove the dictionary application, but retain 309 the applet 310 * Fri Oct 31 2003 - glynn.foster (at] sun.com 311 - Remove the Sun Supported keyword from the 312 desktop since we're removing Extras menu. 313 * Sat Oct 18 2003 - glynn.foster@sun.com 314 - update patches 315 * Sat Oct 18 2003 - laca@sun.com 316 - update to 2.4.0 317 * Fri Sep 26 2003 - laca@sun.com 318 - integrate Sun docs 319 * Tue Sep 09 2003 - glynn.foster@sun.com 320 - patch from wipro to stop defunct processes 321 * Thu Aug 07 2003 - niall.power@sun.com 322 - added scrollkeeper to base dependencies 323 * Thu Jul 17 2003 - glynn.foster@sun.com 324 - Don't install a non-existant logview schema. 325 * Wed Jul 09 2003 - <michael.twomey (at] sun.com> 326 - add in sun po files 327 * Mon Jul 07 2003 - glynn.foster (at] sun.com 328 - Do not install gnome-system-log either 329 * Tue Jul 01 2003 - glynn.foster (at] sun.com 330 - Correct gfloppy icon 331 * Tue Jul 01 2003 - glynn.foster (at] sun.com 332 - Disable gcalc, gcharmap & gdialog from build. 333 * Tue Jul 01 2003 - glynn.foster (at] sun.com 334 - Update version on tarball 335 * Tue May 13 2003 - ghee.teo (at] Sun.COM 336 - Initial Sun release 337