Package metacity: Specfile

  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
%define ver_major 2.22
%def_disable static
%def_enable compositor
%def_enable render
%def_enable shape
%def_enable gconf

Name: metacity
Version: %ver_major.0
Release: alt1.1

Summary: Metacity window manager
License: %gpl2plus
Group: Graphical desktop/GNOME
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Url: http://ftp.gnome.org/pub/gnome/sources/%name

Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2

# http://bugzilla.gnome.org/show_bug.cgi?id=106249 
Patch2: %name-2.21.21-skip-taskbar-tab.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=482354 
Patch3: %name-2.21.13-dont-move-windows.patch

%define theme_prefix theme
%define old_theme_prefix themes

# From configure.in
%define gtk_ver 2.10.0
%define pango_ver 1.2.0
%define GConf_ver 1.2.0
%define glib_ver 2.6.0
%define startup_notification_ver 0.7
%define xcomposite_ver 0.2

Requires: %name-theme = %version-%release
Requires: lib%name = %version-%release

# From configure.in
BuildPreReq: rpm-build-gnome rpm-build-licenses
BuildPreReq: intltool >= 0.34.90
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: pango-devel >= %pango_ver
%if_enabled gconf
BuildPreReq: libGConf2-devel >= %GConf_ver
# gconftool lives in GConf2 package, and configure script needs it
BuildPreReq: GConf2 >= %GConf_ver
%endif
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libstartup-notification-devel >= %startup_notification_ver
# BuildPreReq: gnome-control-center-devel
%if_enabled compositor
BuildPreReq: libXcomposite-devel >= %xcomposite_ver
BuildPreReq: libXfixes-devel libXrender-devel libXdamage-devel libXtst-devel
BuildPreReq: libmesa-devel libcm-devel
%endif
%{?_enable_render:BuildPreReq: libXrender-devel}
BuildPreReq: libXcursor-devel libXt-devel
BuildPreReq: libXinerama-devel
%{?_enable_shape:BuildPreReq: libXext-devel}
BuildPreReq: libXrandr-devel libX11-devel libSM-devel libICE-devel perl-XML-Parser

%description
Metacity is a simple window manager that integrates nicely with
GNOME 2. It can also be used as a standalone, EWMH-compliant window
manager.
Note: to use Metacity with GNOME, you should install %name-gnome package.

%package -n lib%name
Summary: Shared library for Metacity
Group: System/Libraries

%description -n lib%name
This package contains shared library needed to run Metacity.

%package -n lib%name-devel
Summary: Development files for lib%name
Group: Development/C
Requires: lib%name = %version-%release
Requires: libgtk+2-devel >= %gtk_ver

%description -n lib%name-devel
This package contains headers and development libraries for lib%name

%package -n lib%name-devel-static
Summary: Static version of lib%name
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
This package contains the lib%name static library.

%package gnome
Summary: GNOME-specific parts of Metacity
Group: Graphical desktop/GNOME
Provides: gnome-wm

%if_enabled gconf
PreReq: GConf2 >= %GConf_ver
%endif
Requires: %name = %version-%release
Requires: gnome-filesystem gnome-control-center

%description gnome
This package contains everything necessary to use Metacity in GNOME desktop
environment.

%package %{theme_prefix}s-default
Summary: Metacity default themes
Group: Graphical desktop/GNOME
Obsoletes: %name-themes < 2.14.0
Provides: %name-themes = %version-%release
Requires: %name-%theme_prefix-atlanta = %version-%release	%name-%theme_prefix-bright = %version-%release
Requires: %name-%theme_prefix-crux = %version-%release		%name-%theme_prefix-esco = %version-%release
Requires: %name-%theme_prefix-gorilla = %version-%release	%name-%theme_prefix-metabox = %version-%release
Requires: %name-%theme_prefix-simple = %version-%release

%description %{theme_prefix}s-default
This is virtual package that provides default themes for Metacity.

%package %theme_prefix-atlanta
Summary: Metacity theme - Atlanta
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-atlanta = %version-%release
Provides: %name-%old_theme_prefix-atlanta = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-atlanta
This package contains a simple low-overhead default theme for Metacity.

%package %theme_prefix-bright
Summary: Metacity theme - Bright
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-bright = %version-%release
Provides: %name-%old_theme_prefix-bright = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-bright
This package contains a simple theme based on Havoc Pennington's Atlanta.

%package %theme_prefix-crux
Summary: Metacity theme - Crux
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-crux = %version-%release
Provides: %name-%old_theme_prefix-crux = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-crux
This package contains a port of the Crux theme by Arlo Rose and John
Harper.

%package %theme_prefix-esco
Summary: Metacity theme - Esco
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-esco = %version-%release
Provides: %name-%old_theme_prefix-esco = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-esco
This package contains a simple theme designed to look really good match
GTK+ well.

%package %theme_prefix-gorilla
Summary: Metacity theme - AgingGorilla
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-gorilla = %version-%release
Provides: %name-%old_theme_prefix-gorilla = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-gorilla
This package contains a port of the Gorilla theme by Jacub Steiner

%package %theme_prefix-metabox
Summary: Metacity theme - Metabox
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-metabox = %version-%release
Provides: %name-%old_theme_prefix-metabox = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-metabox
This package contains a theme that looks a little like BlackBox.

%package %theme_prefix-simple
Summary: Metacity theme - Simple
Group: Graphical desktop/GNOME
Provides: %name-theme = %version-%release
Obsoletes: %name-%old_theme_prefix-simple = %version-%release
Provides: %name-%old_theme_prefix-simple = %version-%release
Requires: %name = %version-%release

%description %theme_prefix-simple
This package contains default GNOME window theme. It based on Atlanta
theme.

%prep
%setup -q
%patch2 -p1 -b .skip-taskbar-tab
%patch3 -p0 -b .dont-move-windows


%build
%__autoreconf
%configure \
    %{subst_enable compositor} \
    %{subst_enable render} \
    %{subst_enable shape} \
    %{subst_enable gconf} \
    %{subst_enable static} \
    --enable-sm \
    --enable-startup-notification \
    --enable-xsync \
    --enable-xinerama \
    --enable-man \
    --disable-schemas-install

%make_build

%install
%make_install DESTDIR=%buildroot install
bzip2 -9f ChangeLog
%find_lang %name

%if_enabled gconf
%post gnome
%gconf2_install %name
%endif

%if_enabled gconf
%preun gnome
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%endif

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files -f %name.lang
%_bindir/*
%_libexecdir/%name-dialog
%_datadir/%name
%_man1dir/*
%doc README AUTHORS NEWS ChangeLog*

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%doc doc/*.txt doc/*.dtd HACKING

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%files gnome
%_datadir/gnome/wm-properties/%name.desktop
%_datadir/gnome-control-center/keybindings/50-metacity*key.xml
%config %gconf_schemasdir/*

%files %{theme_prefix}s-default

%files %theme_prefix-gorilla
%_datadir/themes/AgingGorilla/*

%files %theme_prefix-atlanta
%_datadir/themes/Atlanta/*

%files %theme_prefix-bright
%_datadir/themes/Bright/*

%files %theme_prefix-crux
%_datadir/themes/Crux/*

%files %theme_prefix-esco
%_datadir/themes/Esco/*

%files %theme_prefix-metabox
%_datadir/themes/Metabox/*

%files %theme_prefix-simple
%_datadir/themes/Simple/*

%changelog
* Tue Mar 18 2008 Alexey Shabalin <shaba@altlinux.ru> 2.22.0-alt1.1
- build for Sisyphus

* Fri Mar 14 2008 Alexey Shabalin <shaba@altlinux.ru> 2.22.0-alt1
- New version (2.22.0).

* Mon Mar 10 2008 Alexey Shabalin <shaba@altlinux.ru> 2.21.21-alt1
- New version (2.21.21).

* Mon Feb 04 2008 Alexey Shabalin <shaba@altlinux.ru> 2.20.2-alt1
- New version (2.20.2).
- update home url
- add Packager

* Tue Dec 04 2007 Alexey Shabalin <shaba@altlinux.ru> 2.20.1-alt1
- New version (2.20.1).

* Sun Nov 04 2007 Alexey Rusakov <ktirf@altlinux.org> 2.20.0-alt1
- New version (2.20.0).
- Use rpm-build-licenses, use more macros from rpm-build-gnome.
- Revpatch from the previous build has been applied upstream.
- Moved %_datadir/gnome/wm-properties dir entry to gnome-filesystem
  package.
- Updated dependencies and the files list.
- Fixed installation method (%%make_install instead of %%makeinstall)

* Fri Jul 06 2007 Alexey Rusakov <ktirf@altlinux.org> 2.18.5-alt2
- added revpatch to fix metacity crash on logout, if there are windows that
  don't support session management. As a consequence of this crash, the next
  GNOME session would have started without metacity.

* Thu Jun 28 2007 Alexey Rusakov <ktirf@altlinux.org> 2.18.5-alt1
- new version (2.18.5)
- replaced the patch from GNOME Bug 155216 with the one from GNOME Bug 112560,
  as it is more elegant, more general and already marked as commit-now.
- minor spec tweaks

* Fri Jun 01 2007 Alexey Rusakov <ktirf@altlinux.org> 2.18.2-alt1
- new version (2.18.2)

* Sat Mar 31 2007 Alexey Rusakov <ktirf@altlinux.org> 2.16.5-alt2
- fixed Bug #11079.

* Wed Jan 31 2007 Alexey Rusakov <ktirf@altlinux.org> 2.16.5-alt1
- new version 2.16.5 (with rpmrb script)

* Mon Oct 16 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.16.3-alt2
- themes subpackages renamed to metacity-theme-*, to comply with the draft
  of GNOME themes policy.

* Tue Oct 03 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.16.3-alt1
- new version 2.16.3 (with rpmrb script)

* Sun Sep 24 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.16.2-alt2
- moved GNOME-specific parts to a separate -gnome subpackage.

* Fri Sep 22 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.16.2-alt1
- new version (2.16.2)
- updated dependencies
- removed explicit Atlanta theme requires, introduced metacity-theme
  provides and requires instead.

* Tue Aug 22 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.15.34-alt1
- new version 2.15.34 (with rpmrb script)

* Tue Aug 08 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.15.21-alt1
- new version 2.15.21 (with rpmrb script)

* Thu Aug 03 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.15.13-alt2
- added a patch that makes top pixels sensitive (GNOME bug 97703)

* Tue Jul 25 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.15.13-alt1
- new version 2.15.13 (with rpmrb script)

* Tue May 30 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.14.5-alt0.1
- new version 2.14.5 (with rpmrb script)

* Sat Apr 15 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.14.3-alt1
- new version 2.14.3 (with rpmrb script)

* Tue Apr 11 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.14.2-alt1
- new version 2.14.2 (with rpmrb script)

* Fri Mar 24 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.14.1-alt2
- fix metacity-dialog location.

* Fri Mar 17 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.14.1-alt1
- new version 2.14.1 (with rpmrb script)

* Fri Mar 17 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.13.89-alt0.1
- new version . (with rpmrb script)

* Sun Feb 19 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.13.89-alt2
- Added a patch from GNOME Bug 155216 to let window keybindings end windows switching.

* Mon Feb 13 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.13.89-alt1
- new version

* Thu Feb 02 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.13.55-alt1
- new version

* Sun Jan 22 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.13.34-alt1
- new version
- updated dependencies, introduced compositor, shape, render, gconf switches.

* Mon Jan 16 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.13.21-alt1
- new version

* Wed Jan 11 2006 Alexey Rusakov <ktirf@altlinux.ru> 2.13.13-alt1
- new version

* Tue Nov 22 2005 Alexey Rusakov <ktirf@altlinux.ru> 2.13.3-alt1
- new version

* Sat Nov 19 2005 Alexey Rusakov <ktirf@altlinux.ru> 2.13.2-alt1
- new version

* Tue Nov 15 2005 Alexey Rusakov <ktirf@altlinux.ru> 2.13.1-alt1
- new version

* Tue Oct 25 2005 Alexey Rusakov <ktirf@altlinux.ru> 2.13.0-alt1
- new version

* Tue Oct 04 2005 Alexey Rusakov <ktirf@altlinux.ru> 2.12.1-alt1
- new version

* Tue Sep 06 2005 Alexey Rusakov <ktirf@altlinux.ru> 2.12.0-alt1
- 2.12.0
- Removed more excess buildreqs.

* Tue Aug 30 2005 Alexey Rusakov <ktirf@altlinux.ru> 2.11.3-alt1
- 2.11.3
- Removed excess buildreqs.

* Sat Jul 02 2005 Yuri N. Sedunov <aris@altlinux.ru> 2.10.2-alt1
- 2.10.2

* Tue Apr 12 2005 Yuri N. Sedunov <aris@altlinux.ru> 2.10.1-alt1
- 2.10.1

* Mon Mar 07 2005 Yuri N. Sedunov <aris@altlinux.ru> 2.10.0-alt1
- 2.10.0

* Tue Feb 22 2005 Yuri N. Sedunov <aris@altlinux.ru> 2.9.21-alt1
- 2.9.21

* Tue Feb 08 2005 Yuri N. Sedunov <aris@altlinux.ru> 2.9.13-alt1
- 2.9.13

* Thu Dec 09 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.8.8-alt1
- 2.8.8

* Tue Nov 30 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.8.6-alt1
- 2.8.6

* Tue Sep 14 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.8.5-alt1
- 2.8.5

* Mon Aug 30 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.8.4-alt1
- 2.8.4 (temporarily closes problem #5056).

* Sat Aug 21 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.8.3-alt1
- 2.8.3

* Tue Aug 03 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.8.2-alt1
- 2.8.2

* Wed May 05 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.8.1-alt1
- 2.8.1

* Tue Mar 23 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.8.0-alt1
- 2.8.0

* Sun Mar 07 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.7.1-alt1
- 2.7.1

* Mon Feb 16 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.7.0-alt1
- 2.7.0

* Mon Feb 16 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.6.5-alt1
- 2.6.5

* Sun Nov 30 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.6.3-alt2
- do not package .la files.
- do not build devel-static subpackage by default.
- metacity-themes-simple subpackage.

* Tue Oct 28 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.6.3-alt1
- 2.6.3

* Thu Oct 02 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.6.2-alt1
- 2.6.2

* Fri Sep 12 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.6.1-alt1
- 2.6.1

* Wed Sep 10 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.6.0-alt1
- 2.6.0

* Thu Sep 04 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.5.5-alt1
- 2.5.5

* Wed Jul 16 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.5.3-alt1
- 2.5.3

* Sun Jun 08 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.5.2-alt2
- provides gnome-wm

* Wed May 21 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.5.2-alt1
- 2.5.2

* Sat May 03 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.5.1-alt1
- 2.5.1

* Sun Mar 30 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.5.0-alt1
- 2.5.0

* Wed Feb 05 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.4.34-alt1
- 2.4.34

* Tue Jan 21 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.4.21-alt1
- 2.4.21

* Fri Jan 10 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.4.13-alt1
- 2.4.13

* Tue Dec 24 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.8-alt2
- Remove obsoleted config dialog.

* Tue Dec 10 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.8-alt1
- 2.4.8

* Sat Nov 30 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.5-alt2
- fixed ru.po

* Tue Nov 26 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.5-alt1
- 2.4.5
- lib%name{,-devel{,-static}} subpackages.

* Fri Nov 01 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.3-alt2
- Rebuild with startup-notification.

* Tue Oct 29 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.3-alt1
- new version.

* Thu Oct 17 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.2-alt2.1
- Removed dependence on Metacity for default theme.

* Fri Oct 11 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.2-alt2
- %name-themes renamed to %name-themes-default.

* Sat Oct 05 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.2-alt1
- 2.4.2
- themes splitted in separate packages.

* Sat Sep 28 2002 Yuri N. Sedunov <aris@altlinux.ru> 2.4.1-alt1
- First build for Sisyphus.