1 # 2 # spec file for package gnome-games 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: gman 9 # 10 Name: gnome-games 11 License: GPL 12 Group: Amusements/Games 13 Version: 2.16.1.1 14 Release: 1 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: GNOME games 18 Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2 19 URL: http://www.gnome.org 20 BuildRoot: %{_tmppath}/%{name}-%{version}-build 21 Docdir: %{_defaultdocdir}/%{name} 22 Autoreqprov: on 23 Prereq: GConf 24 25 %define libgnomeui_version 2.2.0 26 %define scrollkeeper_version 0.3.11 27 28 BuildRequires: libgnomeui-devel >= %{libgnomeui_version} 29 BuildRequires: scrollkeeper >= %{scrollkeeper_version} 30 BuildRequires: intltool 31 Requires: libgnomeui >= %{libgnomeui_version} 32 33 %description 34 The gnome-games package includes some small games that come with the 35 GNOME desktop environment but can be used under any desktop. 36 The games are mostly puzzle or solitaire games. 37 38 %prep 39 %setup -q 40 41 %build 42 %ifos linux 43 if [ -x /usr/bin/getconf ]; then 44 CPUS=`getconf _NPROCESSORS_ONLN` 45 fi 46 %else 47 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 48 %endif 49 if test "x$CPUS" = "x" -o $CPUS = 0; then 50 CPUS=1 51 fi 52 53 ./configure --prefix=%{_prefix} \ 54 --sysconfdir=%{_sysconfdir} \ 55 --bindir=%{_bindir} \ 56 --libdir=%{_libdir} \ 57 --includedir=%{_includedir} \ 58 --libexecdir=%{_libexecdir} 59 60 make -j $CPUS 61 62 %install 63 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 64 %makeinstall localstatedir=%{_localstatedir}/lib 65 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 66 67 rm -rf $RPM_BUILD_ROOT%{_datadir}/xbill 68 rm -f $RPM_BUILD_ROOT%{_bindir}/gnome-xbill 69 rm -f $RPM_BUILD_ROOT%{_bindir}/gnometris 70 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/gnometris.desktop 71 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/xbill.desktop 72 rm -rf $RPM_BUILD_ROOT%{_datadir}/pixmaps/gnometris 73 rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/xbill.png 74 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/gnometris.schemas 75 rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/gnome-xbill.png 76 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/gnometris.schemas 77 78 ## things we just don't want in the package 79 80 rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper 81 82 ## install desktop files 83 84 %find_lang %{name} 85 86 #Copy zh_HK from zh_TW 87 #Fixes bug 4930405 88 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES 89 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ 90 91 %post 92 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 93 SCHEMAS="blackjack.schemas gataxx.schemas glines.schemas gnect.schemas gnibbles.schemas gnobots2.schemas gnomine.schemas gnotravex.schemas gtali.schemas iagno.schemas mahjongg.schemas same-gnome.schemas" 94 for S in $SCHEMAS; do 95 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null 96 done 97 98 %clean 99 rm -rf $RPM_BUILD_ROOT 100 101 %files -f %{name}.lang 102 %defattr(-, root, root) 103 %doc AUTHORS COPYING ChangeLog 104 105 # these are not setgid games 106 %{_bindir}/games-server.py 107 %{_bindir}/gnect 108 %{_bindir}/blackjack 109 110 %{_localstatedir}/lib 111 112 # these are setgid games 113 %attr(2551, root, games) %{_bindir}/gnomine 114 %attr(2551, root, games) %{_bindir}/same-gnome 115 %attr(2551, root, games) %{_bindir}/mahjongg 116 %attr(2551, root, games) %{_bindir}/gtali 117 %attr(2551, root, games) %{_bindir}/gnobots2 118 %attr(2551, root, games) %{_bindir}/gataxx 119 %attr(2551, root, games) %{_bindir}/gnotravex 120 %attr(2551, root, games) %{_bindir}/gnotski 121 %attr(2551, root, games) %{_bindir}/gnibbles 122 %attr(2551, root, games) %{_bindir}/glines 123 %attr(2551, root, games) %{_bindir}/iagno 124 125 %{_datadir}/applications 126 %{_datadir}/blackjack 127 %{_datadir}/gnect 128 %{_datadir}/gnibbles 129 %{_datadir}/gnobots2 130 %{_datadir}/gnome 131 %{_datadir}/gnome-games 132 %{_datadir}/locale/zh_HK/LC_MESSAGES 133 %{_datadir}/omf 134 %{_datadir}/pixmaps 135 %{_datadir}/sounds 136 %{_sysconfdir}/gconf/schemas/* 137 %config %{_sysconfdir}/sound/events/* 138 139 %changelog 140 * Thu Nov 09 2006 - damien.carbery@sun.com 141 - Bump to 2.16.1.1. 142 * Tue Oct 03 2006 - damien.carbery@sun.com 143 - Bump to 2.16.1. 144 * Tue Sep 05 2006 - damien.carbery@sun.com 145 - Bump to 2.16.0. 146 * Tue Aug 22 2006 - damien.carbery@sun.com 147 - Bump to 2.15.92. 148 * Tue Aug 08 2006 - damien.carbery@sun.com 149 - Bump to 2.15.6. 150 * Mon Jul 24 2006 - damien.carbery@sun.com 151 - Bump to 2.15.5. 152 * Web Jul 21 2006 - dermot.mccluskey@sun.com 153 - Bump to 2.15.4. 154 * Mon Jun 26 2006 - laca@sun.com 155 - remove patch menu-entry.diff since gnome-games is moving back to /usr 156 * Fri Jun 23 2006 - brian.cameron@sun.com 157 - Bump to 2.14.2. 158 * Fri Apr 10 2006 - damien.carbery@sun.com 159 - Bump to 2.14. 160 * Mon Mar 13 2006 - damien.carbery@sun.com 161 - Bump to 2.14. 162 * Thu Feb 23 2006 - damien.carbery@sun.com 163 - Bump to 2.13.8. 164 * Mon Feb 13 2006 - damien.carbery@sun.com 165 - Bump to 2.13.7. 166 * Sat Jan 21 2006 - damien.carbery@sun.com 167 - Remove upstream patch, 02-illegal-cast. 168 * Tue Jan 17 2006 - damien.carbery@sun.com 169 - Bump to 2.13.5 170 * Sun Jan 15 2006 - damien.carbery@sun.com 171 - Bump to 2.13.4. 172 * Sat Jan 07 2006 - damien.carbery@sun.com 173 - Add patch, 02-illegal_cast, to fix compilation errors; bugzilla 326024. 174 * Tue Dec 20 2005 - dermot.mccluskey@sun.com 175 - Bump to 2.13.3 176 * Fri Dec 02 2005 - srirama.sharma@wipro.com 177 - Added gnome-games-01-sfw-path.diff to use the absolute path of the 178 executable in the .desktop file as usr/sfw/bin should not be 179 included in $PATH. 180 Fixes bug #6345489. 181 * Tue Nov 29 2005 - laca.com 182 - remove javahelp stuff 183 * Tue Nov 29 2005 - damien.carbery@sun.com 184 - Bump to 2.12.2. 185 * Wed Oct 12 2005 - damien.carbery@sun.com 186 - Remove patch as offending struct is no longer empty. 187 * Tue Oct 11 2005 - damien.carbery@sun.com 188 - Bump to 2.12.1 189 * Sat Sep 17 2005 - glynn.foster@sun.com 190 - Bump to 2.12.0 191 * Mon Sep 05 2005 - damien.carbery@sun.com 192 - Bump to 2.11.5. 193 * Fri Sep 02 2005 - damien.carbery@sun.com 194 - Add patch to fix zero sized struct Solaris build error. 195 * Wed Aug 24 2005 - damien.carbery@sun.com 196 - Add patch to remove blank line 1 from same-gnome.xml (javahelp had prob). 197 * Mon Aug 15 2005 - damien.carbery@sun.com 198 - Bump to 2.11.4. 199 * Fri May 20 2005 - glynn.foster@sun.com 200 - Bump to 2.10.1 201 * Wed May 11 2005 - ciaran.mcdermott@sun.com 202 - added gnome-games-05-g11n-desktop-fix.diff 203 - to fix CR 6266891 204 * Wed Apr 27 2005 - kieran.colfer@sun.com 205 - added gnome-games-04-po-install-fixes.diff for CR 6243601 206 * Fri Nov 12 2004 - laca@sun.com 207 - added --libdir and --bindir to configure opts so they can be redirected on 208 Solaris 209 * Mon Sep 20 2004 - dermot.mccluskey@sun.com 210 - removed sol from files 211 * Thu Sep 04 2004 - laslzo.kovacs@sun.com 212 - packaged sol 213 * Thu Aug 26 2004 - damien.carbery@sun.com 214 - Put scores files in %{_localstatedir}/lib. 215 * Wed Aug 25 2004 - damien.carbery@sun.com 216 - Add unpackaged files to %files. 217 * Mon Aug 23 2004 - niall.power@sun.com 218 - remove auto*-jds tool dependencies 219 * Thu Jul 08 2004 - damien.donlon@sun.com 220 - Updated l10n content to gnome-games-l10n-po-1.2.tar.bz2 221 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 222 - added "-j $CPUS" to make to speed up builds 223 * Tue Jun 1 2004 - glynn.foster@sun.com 224 - Fix up schema install 225 * Wed May 12 2004 - damien.donlon@sun.com 226 - Updated l10n content to gnome-games-l10n-po-1.1.tar.bz2 227 * Fri May 07 2004 - matt.keenan@sun.com 228 - Bump to 2.6.1 229 * Wed Apr 21 2004 - laca@sun.com 230 - disable javahelp conversion for stuff not built on Solaris 231 * Sun Apr 18 2004 - laca@sun.com 232 - enable javahelp conversion on Solaris 233 * Fri Apr 02 2004 - brian.cameron@sun.com 234 - Added patch 03 to fix Solaris Makefile issue, and added libexecdir to 235 configure line. 236 * Thu Apr 01 2004 - matt.keenan@sun.com 237 - javahelp conversion 238 * Mon Mar 29 2004 - damien.donlon@sun.com 239 - Updated l10n content to gnome-games-l10n-po-1.0.tar.bz2 240 * Wed Mar 24 2004 - glynn.foster@sun.com 241 - Use JDS autotools 242 * Tue Mar 23 2004 - glynn.foster@sun.com 243 - Bump to 2.6.0. Remove 2 potfile patches and 244 replace with a single one. 245 * Thu Mar 11 2004 - yuriy.kuznetsov@sun.com 246 - added gnome-games-03-g11n-potfiles.diff 247 * Fri Feb 06 2004 - <matt.keenan@sun.com> 248 - Bump up 2.5.5, remove intltool-merge patch 249 - re-engineered patch-01, as automake etc is commented out. 250 - This could be changed again if automake 1.7 was being used not 1.6 !! 251 * Thu Jan 29 2004 - <dermot.mccluskey@sun.com> 252 - add patch 03 for intltool-merge and dep. on intltool 253 * Fri Dec 29 2003 - <niall.power@sun.com> 254 - comment out libtool, aclocal etc. which 255 is causing build failure 256 * Fri Dec 29 2003 - <glynn.foster@sun.com> 257 - Bump to 2.5.3 258 * Wed Dec 17 2003 - <glynn.foster@sun.com> 259 - Bump to 2.5.2 260 * Fri Oct 31 2003 - <glynn.foster@sun.com> 261 - Remove the Sun Supported keyword from the desktop 262 files. We're removing the Extras menu. 263 * Wed Oct 22 2003 - <glynn.foster (at] sun.com> 264 - Add blackjack into the build 265 * Tue Oct 21 2003 - <michael.twomey (at] sun.com> 266 - Updated to GNOME 2.4.0 version 267 - Removed freecell entries 268 - Moved gnome-games-03-menu-entry.diff patch to 269 gnome-games-01-menu-entry.diff 270 - Dropped gnome-games-04-glines-preferences.diff patch. 271 * Thu Aug 14 2003 - <laca (at] sun.com> 272 - remove *.so, *.a, *.la 273 * Wed Aug 06 2003 - <glynn.foster (at] sun.com> 274 - fix glines preference dialog 275 * Thu Jul 17 2003 - <glynn.foster (at] sun.com> 276 - remove more xbill stuff 277 * Wed Jul 09 2003 - <michael.twomey (at] sun.com> 278 - add in sun po files 279 * Tue Jul 08 2003 - glynn.foster (at] sun.com 280 - Add menu icon for freecell, and add aclocal, automake checks 281 * Tue May 13 2003 - ghee.teo (at] Sun.COM 282 - Created new spec file for gnome-games 283 284