summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdegames/kde3-kdegames.spec
blob: f5fc83cbf4e7c7d253faa16dde60da9a749ecac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
%define _requires_exceptions devel\(libdns_sd\(.*\)\\|devel\(libdns_sd\)

%define compile_apidox 1
%{?_no_apidox: %{expand: %%global compile_apidox 0}}

%define lib_major 1
%define lib_name_orig libkdegames
%define lib_name %mklibname kde3-kdegames %{lib_major}
%define lib_oname %mklibname kdegames %{lib_major}
%define oname kdegames
%define rname kdegames3

Name:                   kde3-%{oname}
Summary:                KDE3 - Games
Version:                3.5.12
Release:                %mkrel 1
Epoch:                  1
Group:                  Graphical desktop/KDE3
License:                GPL
URL:                    http://www.kde.org
Source:                 %{oname}-%version.tar.bz2
Patch0:                 kdegames-3.5.8-add-support-avahi.patch
Patch1:                 kde-3.5.10-acinclude.patch
#Patch2:                 fix_autotools.patch
Patch3: 		kdebase-3.5.12-move-xdg-menu-dir.patch
Patch4: 		kdebase-3.5.12-config.patch

BuildRequires:          kde3-macros
BuildRequires:          X11-devel
BuildRequires:          freetype2-devel
BuildRequires:          kdelibs3-devel
BuildRequires:          alsa-lib-devel
BuildRequires:          arts3-devel
BuildRequires:          audiofile-devel
BuildRequires:          bzip2-devel
BuildRequires:          jpeg-devel
BuildRequires:          lcms-devel
BuildRequires:          mng-devel
BuildRequires:          png-devel
BuildRequires:          qt3-devel
BuildRequires:          libz-devel
%if %mdkversion < 201000
BuildRequires:          autoconf <= 1:2.63
BuildRequires:          automake >= 1.7
%else
BuildRequires:          autoconf >= 1:2.65
BuildRequires:          automake >= 1.11
%endif
BuildRequires:          qt3-doc
BuildRequires:          avahi-compat-libdns_sd-devel
BuildRequires:          mesaglu-devel
BuildRequires:          libx11-devel
%if %compile_apidox
BuildRequires:          doxygen
BuildRequires:          graphviz
%endif
Requires:               %{lib_name} = %epoch:%version-%release
Suggests:               %name-atlantik
Suggests:               %name-kasteroids
Suggests:               %name-katomic
Suggests:               %name-kbackgammon
Suggests:               %name-kbattleship
Suggests:               %name-kblackbox
Suggests:               %name-kbounce
Suggests:               %name-kenolaba
Suggests:               %name-kfouleggs
Suggests:               %name-kgoldrunner
Suggests:               %name-kjumpingcube
Suggests:               %name-klickety
Suggests:               %name-klines
Suggests:               %name-kmahjongg
Suggests:               %name-kmines
Suggests:               %name-knetwalk
Suggests:               %name-kolf
Suggests:               %name-konquest
Suggests:               %name-kpat
Suggests:               %name-kpoker
Suggests:               %name-kreversi
Suggests:               %name-ksame
Suggests:               %name-kshisen
Suggests:               %name-ksirtet
Suggests:               %name-ksmiletris
Suggests:               %name-ksnake
Suggests:               %name-ksokoban
Suggests:               %name-kspaceduel
Suggests:               %name-ktron
Suggests:               %name-ktuberling
Suggests:               %name-kwin4
Suggests:               %name-libs
Suggests:               %name-lskat
%if %mdkversion < 200900
Requires(post):         desktop-file-utils
Requires(postun):       desktop-file-utils
%endif
Obsoletes:              ktron < 1:3.5.9
Obsoletes:              kjumpingcube < 1:3.5.9
Provides:               %{oname} = %epoch:%version-%release
Obsoletes:              %{oname}
Provides:               %{rname} = %epoch:%version-%release
Obsoletes:              %{rname}
BuildRoot:              %_tmppath/%name-%version-%release-root

%description
Games for the K Desktop Environment.
This is a compilation of various games for KDE project
	- atlantik: Monopoly-like board games
	- kabalone: board game: move 6 pieces from your opponent over the edge
	- kasteroids: shoot at those nasty asteroids
	- katomic: build complex atoms with a minimal amount of moves
	- kbackgammon: play backgammon against a local human player, via a
               game server or against GNU Backgammon (not included)
	- kbattleship: battleship game with built-in game server
	- kblackbox: find atoms in a grid by shooting electrons
	- kfouleggs: a famous japanese game known as puyo-puyo
	- kbounce: claim areas and don't get disturbed
	- kjumpingcube: a tactical game for number-crunchers
	- klines: place 5 equal pieces together, but wait, there are 3 new ones
	- mahjongg: a tile laying patience
	- kmines: the classical mine sweeper
	- kolf: a golf game
	- konquest: conquer the planets of your enemy
	- kpat: several patience card games
	- kpoker: the game of poker
	- kreversi: the old reversi board game, also known as othello
	- ksame: collect pieces of the same color
	- kshisen: patience game where you take away all pieces
	- ksirtet: very known if spelt this backwards
	- ksmiletris: another Tetris-like game
	- ksnake: don't bite yourself, eat apples!
	- ksokoban: move all storage boxes into the cabinet
	- kspaceduel: two player game with shooting spaceships flying around a sun
	- ktron: like ksnake, but without fruits
	- ktuberling: kids game: make your own potato (NO french fries!)
	- kwin4: place 4 pieces in a row
	- libkdegames: KDE game library used by many of these programs
	- lskat: lieutnant skat
	- megami: blackjack card game

%if %mdkversion < 200900
%post
%update_menus
%{update_desktop_database}
%update_icon_cache crystalsvg
%update_icon_cache hicolor
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%{clean_desktop_database}
%clean_icon_cache crystalsvg
%clean_icon_cache hicolor
%endif

%files 
%defattr(-,root,root)
%doc %_kde3_docdir/HTML/en/*/*
%exclude %_kde3_docdir/HTML/en/kdegames-%version-apidocs
%attr(0755,root,root) %_kde3_bindir/*
%dir %_kde3_datadir/applications/kde/
%_kde3_datadir/applications/kde/*.desktop
%_kde3_appsdir/*/*
%dir %_kde3_datadir/mimelnk/application/
%_kde3_datadir/mimelnk/application/*.desktop
%dir %_kde3_datadir/services/
%_kde3_datadir/services/*.protocol
%dir %_kde3_datadir/config/magic
%_kde3_datadir/config/magic/*.magic
%_kde3_iconsdir/*/*/*/*
%dir %_kde3_datadir/config.kcfg/
%_kde3_datadir/config.kcfg/*.kcfg

#---------------------------------------------------------------------------

%package -n %lib_name-devel
Summary:	Headers files for kdegames
Group:		Development/KDE and Qt
Requires:	%lib_name = %epoch:%version-%release

Obsoletes:  kdegames3-devel < 1:3.5.9
Provides:   kde3-kdegames3-devel = %epoch:%version-%release

Obsoletes:  kdegames-devel < 1:3.5.9
Provides:   kde3-kdegames-devel = %epoch:%version-%release
Provides:   %lib_name_orig-devel = %epoch:%version-%release

%description -n %lib_name-devel
Headers files needed to build applications based on kdegames applications.

%files -n %lib_name-devel
%defattr(-,root,root,-)
%_kde3_includedir/*
%_kde3_libdir/*.so
%_kde3_libdir/*.la
%if %compile_apidox
%doc %_kde3_docdir/HTML/en/kdegames-%version-apidocs/*
%endif
%exclude %_kde3_libdir/libkdeinit_*.so

#---------------------------------------------------------------------------

%package -n %lib_name
Group:      System/Libraries
Summary:    Libraries for kdegame
Provides:   %lib_name_orig = %epoch:%version-%release
Conflicts:	kdegames <= 3.1-11mdk

%if %mdkversion < 200900
%post -n %lib_name -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %lib_name -p /sbin/ldconfig
%endif

%description -n %lib_name
Libraries for the K Desktop Environment.

%files -n %lib_name
%defattr(-,root,root,-)
%_kde3_libdir/*.la
%_kde3_libdir/*.so.*
%_kde3_libdir/libkdeinit_*.so
%_kde3_libdir/kde3/*

#---------------------------------------------------------------------------

%prep
%setup -q -n kdegames-%version
%patch0 -p0 -b .add_avahi_support
%patch3 -p0
%patch4 -p0

%build
PATH=%{qt3dir}/bin:%{_kde3_bindir}:$PATH; export PATH;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/kde3/lib/
export xdg_menudir=%_sysconfdir/xdg/kde/menus

make -f admin/Makefile.common cvs

%configure_kde3 \
    --with-extra-includes=/usr/include/avahi-compat-libdns_sd/:/opt/kde3/include/tqt \
    --with-extra-libs=/opt/kde3/lib
%make

%if %compile_apidox
make apidox
%endif


%install
rm -fr %buildroot

%makeinstall_std

%clean
rm -fr %buildroot






%changelog
* Thu Jul 21 2011 Tim Williams <[email protected]> 3.5.12-1mvt2010.2
+ Update to use Trinity sources
+ Add xdg dirs patch
+ Add kdebase-3.5.12-config.patch

* Mon Jul 19 2010 Tim Williams <[email protected]> 3.5.10-6mvt2010.0
+ Rebuild for MDV 2010.1
+ Add patches from Atilla ÖNTAŞ <[email protected]> branch (this 
  refused to work due to packaging errors, reverting to the original 
  packaging structure)
+ KDE builds with autoconf 2.65, add patch for this and
  set autoconf to version 2.65:patch4
+ Fix automake 1.11 issue:patch5
+ Rename package to avoid KDE4 conflicts

* Fri Nov 13 2009 Tim Williams <[email protected]> 1:3.5.10-3mdv2010.0
+ Rebuild for MDV 2010.0

* Thu Apr 02 2009 Helio Chissini de Castro <[email protected]> 1:3.5.10-2mdv2009.1
+ Revision: 363578
- Bump release
- Pushing back kde3 kdegames :-/


* Fri Aug 29 2008 Helio Chissini de Castro <[email protected]> 1:3.5.10-1mdv2009.0
+ Revision: 277475
- Update for last kde3 updates

* Fri Aug 08 2008 Thierry Vignaud <[email protected]> 1:3.5.9-7mdv2009.0
+ Revision: 267777
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <[email protected]>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Wed Jun 11 2008 Funda Wang <[email protected]> 1:3.5.9-6mdv2009.0
+ Revision: 218010
- rebuild for new ldflags

  + Pixel <[email protected]>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Mon May 19 2008 Rodrigo Gonçalves de Oliveira <[email protected]> 1:3.5.9-5mdv2009.0
+ Revision: 209007
- User versioned obsoletes

* Wed May 07 2008 Helio Chissini de Castro <[email protected]> 1:3.5.9-4mdv2009.0
+ Revision: 202889
- Move for /opt

* Sat Mar 22 2008 Nicolas Lécureuil <[email protected]> 1:3.5.9-2mdv2008.1
+ Revision: 189493
- Fix groups ( tks to pterjan)

* Fri Feb 15 2008 Helio Chissini de Castro <[email protected]> 1:3.5.9-1mdv2008.1
+ Revision: 169010
- Get away from branches. Last KDE 3 arriving !!

* Wed Feb 13 2008 Danilo Cesar Lemes de Paula <[email protected]> 1:3.5.8-5mdv2008.1
+ Revision: 167148
- Removing knetwalk doc files, cause it was added in the wrong place.

* Wed Feb 13 2008 Danilo Cesar Lemes de Paula <[email protected]> 1:3.5.8-4mdv2008.1
+ Revision: 167134
- Adding pt_BR docbook

  + Olivier Blin <[email protected]>
    - restore BuildRoot

* Sat Dec 29 2007 Funda Wang <[email protected]> 1:3.5.8-3mdv2008.1
+ Revision: 139068
- rebuild

  + Nicolas Lécureuil <[email protected]>
    - [FEATURE] Show kdegames in other WM than KDE ( Bug #35868)

  + Thierry Vignaud <[email protected]>
    - kill re-definition of %%buildroot on Pixel's request

* Sun Oct 28 2007 Nicolas Lécureuil <[email protected]> 1:3.5.8-1mdv2008.1
+ Revision: 102782
- Kde 3.5.8
  Rediff patches

* Fri Aug 10 2007 Nicolas Lécureuil <[email protected]> 1:3.5.7-3mdv2008.0
+ Revision: 61629
- Fix categories and add some OnlyShowIn

* Mon May 21 2007 Helio Chissini de Castro <[email protected]> 1:3.5.7-2mdv2008.0
+ Revision: 29259
- kdeinit libraries are modules, not development libraries. Moving for proper package

* Wed May 16 2007 Helio Chissini de Castro <[email protected]> 1:3.5.7-1mdv2008.0
+ Revision: 27454
- 3.5.7 release
- Removed old related icons to debian like menu


* Thu Feb 01 2007 Laurent Montel <[email protected]> 3.5.6-1mdv2007.0
+ Revision: 115845
- 3.5.6

* Thu Dec 21 2006 Laurent Montel <[email protected]> 1:3.5.5-5mdv2007.1
+ Revision: 100932
- Fix typo found by Blino
- Fix spec file

* Fri Nov 03 2006 Laurent Montel <[email protected]> 1:3.5.5-3mdv2007.1
+ Revision: 76072
- Rebuild

* Thu Oct 26 2006 Laurent Montel <[email protected]> 1:3.5.5-2mdv2007.1
+ Revision: 72785
- Rebuild
- 3.5.5
- New version (2006/08/03 3.5.4-1mdv)
- compile under x86_64
- Use macro
- 3.5.3
- Rebuild against new xorg
- Rebuild to generate category
- 3.5.2
- Fix build on mdk <=2006
- Fix spec file
  Fix avahi support
- kde3.5.1
- MDK9.2 is obsolete now
- Fix spec file (bug found by nicolas Chipaux)
- Add support for avahi
- Fix twice kgoldrunner bug found by Nicolas Chipaux
- Use avahi
- Fix spec file
- Real 3.5.0
- 3.5.0 (named rc1)
- Fix spec file
- 3.4.92
- Rebuild
- New sync to fix kmines program
  Clean spec file
  Use --libsuffix
- Forgot to increase version number
- Add diff
  Use %%mkrel
  Fix attribute
- Fix attribute of file
  TODO search why it's suid by default
- Fix group
- 3.4.2

  + Andreas Hasenack <[email protected]>
    - renamed mdv to packages because mdv is too generic and it's hosting only packages anyway

  + Helio Chissini de Castro <[email protected]>
    - We are Mandriva now
    - Increase release number
    - Fixed klickety bug http://qa.mandriva.com/show_bug.cgi?id=17295. No bindir files must be suid root.
    - Uploading package ./kdegames

* Tue May 17 2005 Laurent MONTEL <[email protected]> 3.4.0-6mdk
- Rebuild for missing package

* Sat May 07 2005 Laurent MONTEL <[email protected]> 3.4.0-5mdk
- Sync with CVS

* Fri May 06 2005 Laurent MONTEL <[email protected]> 3.4.0-4mdk
- Rebuild

* Mon Apr 18 2005 Laurent MONTEL <[email protected]> 3.4.0-3mdk
- Fix depend

* Sat Apr 16 2005 Laurent MONTEL <[email protected]> 3.4.0-2mdk
- Use --enable-new-ldflags 
- Reactivate debug
- Change email
- Reactivate -fvisibility same as for ppc

* Tue Apr 05 2005 Laurent MONTEL <[email protected]> 3.4.0-1mdk
- 3.4.0

* Mon Feb 21 2005 Laurent MONTEL <[email protected]> 3.3.2-8mdk
- Add patch4: fix kbounce kde bug #96841

* Fri Feb 18 2005 Laurent MONTEL <[email protected]> 3.3.2-7mdk
- Fix export

* Thu Feb 10 2005 Laurent MONTEL <[email protected]> 3.3.2-6mdk
- Disable debug

* Fri Jan 28 2005 Laurent MONTEL <[email protected]> 3.3.2-5mdk
- Add patch3: fix atlantik url

* Mon Jan 24 2005 Laurent MONTEL <[email protected]> 3.3.2-4mdk
- Disable visibility for ppc

* Tue Jan 11 2005 Laurent MONTEL <[email protected]> 3.3.2-3mdk
- Use -f visibility

* Thu Dec 09 2004 Laurent MONTEL <[email protected]> 3.3.2-2mdk
- Fix menu

* Tue Nov 30 2004 Laurent MONTEL <[email protected]> 3.3.2-1mdk
- 3.3.2

* Mon Nov 15 2004 Laurent MONTEL <[email protected]> 3.3.1-6mdk
- Requires arts

* Thu Oct 28 2004 Laurent MONTEL <[email protected]> 3.3.1-5mdk
- Bye-bye %%buildfor

* Wed Oct 20 2004 Laurent MONTEL <[email protected]> 3.3.1-4mdk
- Sync with CVS

* Sat Oct 16 2004 Laurent MONTEL <[email protected]> 3.3.1-3mdk
- Fix spec file

* Tue Oct 12 2004 Laurent MONTEL <[email protected]> 3.3.1-2mdk
- Deprecated mdk < 9.2

* Sat Oct 09 2004 Laurent MONTEL <[email protected]> 3.3.1-1mdk
- 3.3.1

* Fri Sep 03 2004 Laurent MONTEL <[email protected]> 3.3.0-1mdk
- 3.3..0

* Sat Aug 14 2004 Laurent MONTEL <[email protected]> 3.2.3-9mdk
- Rebuild for new menu translation tabl

* Sat Aug 07 2004 Laurent MONTEL <[email protected]> 3.2.3-8mdk
- Remove debug

* Wed Aug 04 2004 Laurent MONTEL <[email protected]> 3.2.3-7mdk
- Fix spec file

* Thu Jul 22 2004 Laurent MONTEL <[email protected]> 3.2.3-5mdk
- Fix remove rpath

* Sat Jul 10 2004 Laurent Montel <[email protected]> 3.2.3-4mdk
- generate doc

* Wed Jul 07 2004 Laurent MONTEL <[email protected]> 3.2.3-3mdk
- Rebuild with new kdelibs

* Wed Jun 30 2004 Laurent MONTEL <[email protected]> 3.2.3-2mdk
- Sync with CVS

* Tue Jun 15 2004 Laurent MONTEL <[email protected]> 3.2.3-1mdk
- 3.2.3

* Fri Jun 04 2004 Laurent MONTEL <[email protected]> 3.2.2-4mdk
- Rebuild

* Wed Jun 02 2004 Laurent MONTEL <[email protected]> 3.2.2-3mdk
- rebuild with debug

* Fri May 07 2004 Laurent MONTEL <[email protected]> 3.2.2-2mdk
- Rebuild again qt 3.3.2

* Tue Apr 20 2004 Laurent MONTEL <[email protected]> 3.2.2-1mdk
- 3.2.2

* Wed Apr 07 2004 Laurent MONTEL <[email protected]> 3.2.1-2mdk
- Fix spec file for using rpmbuildupdate

* Sat Apr 03 2004 Laurent MONTEL <[email protected]> 3.2.1-1mdk
- 3.2.1

* Wed Mar 31 2004 Laurent MONTEL <[email protected]> 3.2-10mdk
- Use %%configure
- Use mdkversion

* Thu Mar 11 2004 Laurent MONTEL <[email protected]> 3.2-9mdk
- Fix bug #77170

* Fri Mar 05 2004 Laurent MONTEL <[email protected]> 3.2-8mdk
- Fix Group
- Fix epoch

* Mon Feb 23 2004 Laurent MONTEL <[email protected]> 3.2-7mdk
- Sync with CVS

* Mon Feb 16 2004 Laurent MONTEL <[email protected]> 3.2-6mdk
- Fix katomic bug

* Mon Feb 16 2004 Laurent MONTEL <[email protected]> 3.2-5mdk
- Rebuild with good kdedesktop2mdkmenu.pl

* Thu Feb 12 2004 Laurent MONTEL <[email protected]> 3.2-4mdk
- Sync with CVS

* Tue Feb 10 2004 Laurent MONTEL <[email protected]> 3.2-3mdk
- Sync with CVS

* Mon Feb 09 2004 Laurent MONTEL <[email protected]> 3.2-2mdk
- Fix pb into spec file (distint)

* Tue Feb 03 2004 Laurent MONTEL <[email protected]> 3.2-1mdk
- 3.2

* Mon Feb 02 2004 Laurent MONTEL <[email protected]> 3.2-0.2mdk
- Sync with CVS