Пакет libgtk-engines-default: 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
%set_automake_version 1.11

%define ver_major 2.20
%define _name gtk-engines
%define engine_prefix libgtk-engine
%define old_engine_prefix gtk-engines
%define engine_namechange_ver 2.8.0-alt3
%define gtk_theme_prefix gtk2-theme
%define old_theme_prefix gtk2-themes
%define theme_namechange_ver 2.8.0-alt4

# Clearlooks animation takes some CPU cycles, so it's done optional.
%def_enable animation

Name: %{engine_prefix}s-default
Version: %ver_major.2
Release: alt3.1
Epoch: 1

Summary: Default GTK+2 theme engines
License: %lgpl2plus
Group: Graphical desktop/GNOME
Url: http://gtk.themes.org/

Source: %gnome_ftp/%_name/%ver_major/%_name-%version.tar.bz2
Patch: %_name-2.20.2-alt-glib_fixes.patch
Patch1: gtk-engines-2.20-lua-alt-lua5.3.patch

Obsoletes: %old_engine_prefix <= %engine_namechange_ver
Provides: %old_engine_prefix = %version-%release
Obsoletes: %old_engine_prefix-default <= %engine_namechange_ver
Provides: %old_engine_prefix-default = %version-%release
Obsoletes: %engine_prefix-default <= %engine_namechange_ver
Provides: %engine_prefix-default = %version-%release

%define gtk_ver 2.10.0
%define gtk_binary_ver 2.10.0
%define icon_theme_ver 2.10.0

Requires: %engine_prefix-redmond = %version-%release
Requires: %engine_prefix-hc = %version-%release
Requires: %engine_prefix-crux = %version-%release
Requires: %engine_prefix-mist = %version-%release
Requires: %engine_prefix-thinice = %version-%release
Requires: %engine_prefix-industrial = %version-%release
Requires: %engine_prefix-clearlooks = %version-%release
Requires: %engine_prefix-glide = %version-%release

BuildPreReq: rpm-build-gnome rpm-build-licenses

BuildPreReq: intltool >= 0.31.0
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: lua-devel

%description
These are the graphical engines for the various GTK+2 toolkit themes.

# FIXME: Recollect/Find out and explain here why GTK+ engines need
# gnome-icon-theme. Looks rather suspicious.

%package -n %name-common
Summary: Files common to all GTK+ engines
Group: Graphical desktop/GNOME

%description -n %name-common
This package contains files used or referred to by any "standard" GTK+
engine. Don't care about installing it; you will know if some GTK+
engine needs it.

%package -n %engine_prefix-redmond
Summary: GTK+2 theme engine - Redmond95
Group: Graphical desktop/GNOME
License: %lgpl2plus
Requires: %name-common = %version-%release
Obsoletes: %old_engine_prefix-redmond95
Provides: %old_engine_prefix-redmond95 = %version-%release
Provides: %engine_prefix-redmond95 = %version-%release
Obsoletes: %old_engine_prefix-redmond < %engine_namechange_ver
Provides: %old_engine_prefix-redmond = %version-%release

%description -n %engine_prefix-redmond
A simple theme engine that looks a bit like another OS.

%package -n %gtk_theme_prefix-redmond
Summary: GTK+2 theme - Redmond95
Group: Graphical desktop/GNOME
License: %lgpl2plus
Obsoletes: %old_theme_prefix-redmond < %engine_namechange_ver
Provides: %old_theme_prefix-redmond = %version-%release
# Due to file conflicts
Obsoletes: %old_theme_prefix-redmond = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver

%description -n %gtk_theme_prefix-redmond
A simple theme that looks a bit like another OS.

%package -n %engine_prefix-hc
Summary: A GTK+2 high contrast theme engine
Group: Graphical desktop/GNOME
License: %lgpl2plus
Requires: %name-common = %version-%release
Obsoletes: %old_engine_prefix-hc < %engine_namechange_ver
Provides: %old_engine_prefix-hc = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver

%description -n %engine_prefix-hc
Engine for high contrast themes, that improves visibility of shadows, edges,
and indicators when theme background and foreground contain near-black
and near-white colors.

%package -n %gtk_theme_prefix-crux
Summary: A GTK+2 theme engine - Crux
Group: Graphical desktop/GNOME
License: %gpl2plus
Requires: %name-common = %version-%release
Obsoletes: %old_engine_prefix-crux < 2.7.6
Provides: %old_engine_prefix-crux = %version-%release
Obsoletes: %old_theme_prefix-crux < %theme_namechange_ver
Provides: %old_theme_prefix-crux = %version-%release
Provides: %engine_prefix-crux = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver

%description -n %gtk_theme_prefix-crux
This package contains a GTK2+ theme engine named Crux and developed by
Eazel, Inc.

%package -n %gtk_theme_prefix-mist
Summary: A GTK+2 theme engine - Mist
Group: Graphical desktop/GNOME
License: %gpl2plus
Requires: %name-common = %version-%release
Obsoletes: %old_engine_prefix-mist < 2.7.6
Provides: %old_engine_prefix-mist = %version-%release
Obsoletes: %old_theme_prefix-mist < %theme_namechange_ver
Provides: %old_theme_prefix-mist = %version-%release
Provides: %engine_prefix-mist = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver

%description -n %gtk_theme_prefix-mist
Author named this after the song he was listening to when he named it
(Opeth's "In Mist She Was Standing").
This package provides Mist GTK+2 theme engine.

%package -n %gtk_theme_prefix-clearlooks
Summary: A GTK+2 theme engine - ClearLooks
Group: Graphical desktop/GNOME
License: %gpl2plus
Requires: %name-common = %version-%release
Obsoletes: %old_engine_prefix-clearlooks < 2.7.6
Provides: %old_engine_prefix-clearlooks = %version-%release
Obsoletes: %old_theme_prefix-clearlooks < %theme_namechange_ver
Provides: %old_theme_prefix-clearlooks = %version-%release
Provides: %engine_prefix-clearlooks = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver

%description -n %gtk_theme_prefix-clearlooks
ClearLooks is new modern looking engine for GTK+2, based on Bluecurve.
It has the looks of various themes blended together, resulting in a
theme that's easy on the eyes and visually pleasing.

This package contains Clearlooks theme and engine.

%package -n %gtk_theme_prefix-thinice
Summary: A GTK+2 theme engine - Thin Ice
Group: Graphical desktop/GNOME
License: %gpl2plus
Requires: %name-common = %version-%release
Obsoletes: %engine_prefix-thinice-devel
Obsoletes: %old_engine_prefix-thinice < 2.7.6
Provides: %old_engine_prefix-thinice = %version-%release
Obsoletes: %old_theme_prefix-thinice < %theme_namechange_ver
Provides: %old_theme_prefix-thinice = %version-%release
Provides: %engine_prefix-thinice = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver

%description -n %gtk_theme_prefix-thinice
This package contains a GTK2+ theme engine Thin Ice.

%package -n %gtk_theme_prefix-industrial
Summary: A GTK+2 theme engine - Industrial
Group: Graphical desktop/GNOME
License: %gpl2plus
Requires: %name-common = %version-%release
Obsoletes: %old_engine_prefix-industrial < 2.7.6
Provides: %old_engine_prefix-industrial = %version-%release
Obsoletes: %old_theme_prefix-industrial < %theme_namechange_ver
Provides: %old_theme_prefix-industrial = %version-%release
Provides: %engine_prefix-industrial = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver

%description -n %gtk_theme_prefix-industrial
This package contains a GTK2+ engine Industrial developed by Ximian, Inc. as
the default apearance for its Desktop. Industrial is a highly popular
look which provides a simple, consistant, and highly cohesive appearance
for applications.

%package -n %engine_prefix-glide
Summary: A GTK+2 theme engine - Glide
Group: Graphical desktop/GNOME
License: %lgpl2plus
Requires: %name-common = %version-%release
Obsoletes: %old_engine_prefix-glide < %engine_namechange_ver
Provides: %old_engine_prefix-glide = %version-%release
Requires: gnome-icon-theme >= %icon_theme_ver

%description -n %engine_prefix-glide
This package contains a GTK2+ theme engine Glide (used by Glider GNOME theme).

%package -n %engine_prefix-lua
Summary: A Lua scripting engine for GTK+ themes
Group: Graphical desktop/GNOME

%description -n %engine_prefix-lua
This package contains an engine that enables Lua scripting in GTK+ themes. Unless some GTK+ theme depends on this package, you don't need it.

%package -n %{engine_prefix}s-devel
Summary: Development files for %_name
Group: Development/GNOME and GTK+
Obsoletes: %old_engine_prefix-default-devel < %engine_namechange_ver
Provides: %old_engine_prefix-default-devel = %version-%release

%description -n %{engine_prefix}s-devel
This package contains development files for %_name

%prep
%setup -q -n %_name-%version
%patch -p1
%patch1 -p2

%build
%autoreconf
%configure \
    --enable-lua \
    --with-system-lua \
    %{subst_enable animation} \

%make
%make check

%install
%make DESTDIR=%buildroot install
%find_lang %_name

%define engines_dir %_libdir/gtk-2.0/%gtk_binary_ver/engines/
%define engines_data_dir %_datadir/%_name/

ln -s gtk-2.0/%gtk_binary_ver/engines/libclearlooks.so %buildroot%_libdir/libclearlooks.so

%files

%files -n %name-common -f %_name.lang
%dir %_datadir/%_name
%doc AUTHORS README ChangeLog COPYING*

%files -n %engine_prefix-redmond
%engines_dir/libredmond95.so
%engines_data_dir/redmond95.xml

%files -n %gtk_theme_prefix-redmond
%dir %_datadir/themes/Redmond/
%dir %_datadir/themes/Redmond/gtk-2.0
%_datadir/themes/Redmond/gtk-2.0/gtkrc
#dir %_datadir/themes/Redmond/gtk
#_datadir/themes/Redmond/gtk/gtkrc
%doc engines/redmond/AUTHORS

%files -n %engine_prefix-hc
%engines_dir/libhcengine.so
%engines_data_dir/hcengine.xml

%files -n %gtk_theme_prefix-crux
%engines_dir/*crux*.so
%engines_data_dir/crux-engine.xml
%dir %_datadir/themes/Crux
%dir %_datadir/themes/Crux/gtk-2.0
%_datadir/themes/Crux/gtk-2.0/gtkrc

%files -n %gtk_theme_prefix-clearlooks
%engines_dir/*clearlooks.so
%engines_data_dir/clearlooks.xml
%_libdir/*clearlooks.so
%dir %_datadir/themes/Clearlooks
%dir %_datadir/themes/Clearlooks/gtk-2.0
%_datadir/themes/Clearlooks/gtk-2.0/gtkrc

%files -n %gtk_theme_prefix-mist
%engines_dir/libmist.so
%engines_data_dir/mist.xml
%dir %_datadir/themes/Mist
%dir %_datadir/themes/Mist/gtk-2.0
%_datadir/themes/Mist/gtk-2.0/gtkrc

%files -n %gtk_theme_prefix-thinice
%engines_dir/*thinice.so
%engines_data_dir/thinice.xml
%dir %_datadir/themes/ThinIce
%dir %_datadir/themes/ThinIce/gtk-2.0
%_datadir/themes/ThinIce/gtk-2.0/gtkrc

%files -n %gtk_theme_prefix-industrial
%engines_dir/libindustrial.so
%engines_data_dir/industrial.xml
%dir %_datadir/themes/Industrial
%dir %_datadir/themes/Industrial/gtk-2.0
%_datadir/themes/Industrial/gtk-2.0/gtkrc

%files -n %engine_prefix-glide
%engines_dir/libglide.so
%engines_data_dir/glide.xml

%files -n %{engine_prefix}-lua
%engines_dir/libluaengine.so

%files -n %{engine_prefix}s-devel
%_pkgconfigdir/*.pc

%exclude %engines_dir/*.la

%changelog
* Tue Mar 13 2018 Igor Vlasenko <viy@altlinux.ru> 1:2.20.2-alt3.1
- NMU: fixed undefined symbol lua_open (Patch1)

* Mon Jun 26 2017 Andrey Cherepanov <cas@altlinux.org> 1:2.20.2-alt3
- provide libclearlooks.so for bricscadv17

* Tue Feb 07 2017 Igor Vlasenko <viy@altlinux.ru> 1:2.20.2-alt2.qa2.1
- rebuild with new lua 5.3

* Thu Nov 28 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:2.20.2-alt2.qa2
- Fixed build

* Fri Apr 19 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 1:2.20.2-alt2.qa1
- NMU: rebuilt for updated dependencies.

* Wed Apr 04 2012 Yuri N. Sedunov <aris@altlinux.org> 1:2.20.2-alt2
- fixed build against glib-2.32

* Sun Oct 03 2010 Yuri N. Sedunov <aris@altlinux.org> 1:2.20.2-alt1
- 2.20.2

* Sat Apr 17 2010 Yuri N. Sedunov <aris@altlinux.org> 1:2.20.1-alt1
- 2.20.1

* Tue Mar 30 2010 Yuri N. Sedunov <aris@altlinux.org> 1:2.20.0-alt1
- 2.20.0

* Tue Jan 12 2010 Yuri N. Sedunov <aris@altlinux.org> 1:2.19.0-alt1
- 2.19.0

* Sun Jan 03 2010 Yuri N. Sedunov <aris@altlinux.org> 1:2.18.5-alt1
- new version

* Thu Sep 24 2009 Yuri N. Sedunov <aris@altlinux.org> 1:2.18.4-alt1
- 2.18.4

* Tue Sep 22 2009 Yuri N. Sedunov <aris@altlinux.org> 1:2.18.3-alt1
- 2.18.3
- build against system lua

* Tue May 19 2009 Yuri N. Sedunov <aris@altlinux.org> 1:2.18.2-alt1
- 2.18.2

* Mon Apr 13 2009 Yuri N. Sedunov <aris@altlinux.org> 1:2.18.1-alt1
- 2.18.1

* Tue Mar 17 2009 Yuri N. Sedunov <aris@altlinux.org> 1:2.18.0-alt1
- 2.18.0

* Tue Mar 03 2009 Yuri N. Sedunov <aris@altlinux.org> 1:2.17.4-alt1
- 2.17.4

* Tue Feb 17 2009 Yuri N. Sedunov <aris@altlinux.org> 1:2.17.3-alt1
- 2.17.3

* Thu Jan 22 2009 Yuri N. Sedunov <aris@altlinux.org> 1:2.17.2-alt1
- 2.17.2

* Tue Oct 21 2008 Yuri N. Sedunov <aris@altlinux.org> 1:2.16.1-alt1
- 2.16.1

* Sat Sep 27 2008 Alexey Shabalin <shaba@altlinux.ru> 1:2.16.0-alt1
- new version (2.16.0)
- removed the smooth engine

* Tue Jul 01 2008 Alexey Shabalin <shaba@altlinux.ru> 1:2.14.3-alt1
- new version (2.14.3)

* Fri May 30 2008 Alexey Shabalin <shaba@altlinux.ru> 1:2.14.2-alt1
- new version (2.14.2)

* Tue Apr 08 2008 Alexey Shabalin <shaba@altlinux.ru> 1:2.14.1-alt1
- new version (2.14.1)

* Mon Mar 17 2008 Alexey Shabalin <shaba@altlinux.ru> 1:2.14.0-alt1.1
- build for Sisyphus

* Fri Mar 14 2008 Alexey Shabalin <shaba@altlinux.ru> 1:2.14.0-alt1
- new version (2.14.0)

* Wed Mar 05 2008 Alexey Shabalin <shaba@altlinux.ru> 1:2.13.6-alt1
- new version (2.13.6)

* Wed Oct 17 2007 Alexey Rusakov <ktirf@altlinux.org> 1:2.12.2-alt2
- gtk-themes-redmond -> %gtk_theme_prefix-redmond, due to passing away of
  Gtk+1 theme.

* Tue Oct 16 2007 Alexey Rusakov <ktirf@altlinux.org> 1:2.12.2-alt1
- new version (2.12.2)
- use rpm-build-gnome and rpm-build-licenses.
- updated license tags per-package according to COPYING file included in
  the tarball.
- updated files list (some .xml files renamed, no more gtk1 Redmond theme).

* Fri Jun 01 2007 Alexey Rusakov <ktirf@altlinux.org> 1:2.10.2-alt1
- new version (2.10.2)
- added 'make check' invocation.
- introduced Lua scripting engine.
- updated files list (engines got some metadata in /usr/share/gtk-engines).
- introduced -common subpackage, since gtk-engines now have localized strings.
  Package documentation also resides in -common from now on.

* Wed Jan 24 2007 Alexey Rusakov <ktirf@altlinux.org> 1:2.8.2-alt1
- new version (2.8.2)
- libgtk-engine-redmond now obsoletes (and not provides) gtk2-themes-redmond
  (Bug #10329)

* Sun Oct 15 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.8.1-alt1
- new version (2.8.1)
- removed no more needed subst

* Fri Oct 13 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.8.0-alt4
- GTK+ themes are now prefixed with gtk2-theme instead of gtk2-themes.

* Wed Oct 11 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.8.0-alt3
- replaced 'gtk-engines' prefix with 'libgtk-engine' prefix, to better
  reflect the nature of an engine and to clearly separate it from
  a gtk-theme (ah, and to frighten a user with 'lib' prefix, too).
- renamed the main package to libgtk-engines-default, and development
  subpackage to libgtk-engines-devel.

* Tue Sep 12 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.8.0-alt2
- cleaning up the mess between gtk-engines and gnome-themes.

* Sun Sep 10 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.8.0-alt1
- new version 2.8.0 (with rpmrb script)

* Sun Sep 03 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.7.8-alt1
- new version 2.7.8 (with rpmrb script)

* Thu Aug 17 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.7.7-alt1
- new version (2.7.7)

* Sat Aug 12 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.7.6-alt1
- new version (2.7.6)
- no more Metal and Lighthouse Blue engines and themes.
- a new engine, Glide.
- renamed packages, that contain themes, to gtk2-themes-*.
- spec cleanup.

* Sun Feb 12 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.7.4-alt1
- new version
- spec cleanup

* Sat Jan 21 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.7.3-alt1
- new version

* Sun Jan 08 2006 Alexey Rusakov <ktirf@altlinux.ru> 1:2.7.2-alt1
- new version

* Mon Aug 29 2005 Alexey Rusakov <ktirf@altlinux.ru> 1:2.6.5-alt1
- 2.6.5

* Wed Apr 13 2005 Yuri N. Sedunov <aris@altlinux.ru> 1:2.6.3-alt1
- 2.6.3
- new subpackage with Clearlooks engine.

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

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

* Wed Dec 22 2004 Yuri N. Sedunov <aris@altlinux.ru> 1:2.6.0-alt1
- 2.6.0

* Tue Dec 07 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.2.0-alt2.7
- do not build pixmap engine that provided by GTK+ since 2.5.6

* Wed Mar 17 2004 Yuri N. Sedunov <aris@altlinux.ru> 2.2.0-alt2.6
- rebuild with gtk-2.4.

* Sat Jan 18 2003 Yuri N. Sedunov <aris@altlinux.ru> 2.2.0-alt2.4
- 2.2.0
- devel subpackage.

* Wed Dec 18 2002 Yuri N. Sedunov <aris@altlinux.ru> 1.9.0-alt2.4
- Rebuilt with gtk-2.1.5

* Fri Dec 06 2002 Yuri N. Sedunov <aris@altlinux.ru> 1.9.0-alt2.3
- Rebuilt with gtk-2.1.3.

* Sun Nov 03 2002 Yuri N. Sedunov <aris@altlinux.ru> 1.9.0-alt2.2
- Rebuilt with new gtk2.

* Thu Oct 24 2002 Yuri N. Sedunov <aris@altlinux.ru> 1.9.0-alt2.1
- Rebuilt with new gtk2.

* Wed Oct 09 2002 Yuri N. Sedunov <aris@altlinux.ru> 1.9.0-alt2
- Package renamed.

* Wed Oct 09 2002 Yuri N. Sedunov <aris@altlinux.ru> 1.9.0-alt1
- First build for Sisyphus.