]>
Commit | Line | Data |
---|---|---|
29913120 JR |
1 | # |
2 | # Conditional build: | |
4b4eccb6 | 3 | %bcond_with gnome2 # build with support for GNOME2 wm-properties |
b934ca3b | 4 | |
06984a05 | 5 | Summary: Tab Window Manager for the X Window System |
c779cdf4 ER |
6 | Summary(pl.UTF-8): Twm - podstawowy zarządca okien dla X Window System |
7 | Summary(ru.UTF-8): Простой оконный менеджер | |
8 | Summary(uk.UTF-8): Простий віконний менеджер | |
91237557 | 9 | Name: xorg-app-twm |
368e49ec JB |
10 | Version: 1.0.9 |
11 | Release: 1 | |
91237557 | 12 | License: MIT |
06984a05 | 13 | Group: X11/Window Managers |
9889262c | 14 | Source0: http://xorg.freedesktop.org/releases/individual/app/twm-%{version}.tar.bz2 |
368e49ec | 15 | # Source0-md5: 59a6f076cdacb5f6945dac809bcf4906 |
42874de4 JB |
16 | Source1: twm.desktop |
17 | Source2: twm-xsession.desktop | |
91237557 | 18 | URL: http://xorg.freedesktop.org/ |
7f4e7b2f | 19 | BuildRequires: autoconf >= 2.60 |
91237557 | 20 | BuildRequires: automake |
87fa17ad | 21 | BuildRequires: bison |
22 | BuildRequires: flex | |
836ca984 | 23 | BuildRequires: pkgconfig >= 1:0.19 |
368e49ec JB |
24 | BuildRequires: xorg-lib-libICE-devel |
25 | BuildRequires: xorg-lib-libSM-devel | |
26 | BuildRequires: xorg-lib-libX11-devel | |
27 | BuildRequires: xorg-lib-libXext-devel | |
91237557 | 28 | BuildRequires: xorg-lib-libXmu-devel |
368e49ec | 29 | BuildRequires: xorg-lib-libXt-devel |
7ac4ab35 | 30 | BuildRequires: xorg-proto-xproto-devel >= 7.0.17 |
7f4e7b2f | 31 | BuildRequires: xorg-util-util-macros >= 1.8 |
b934ca3b | 32 | Suggests: xterm |
735a34db AM |
33 | Obsoletes: X11-twm < 1:7.0.0 |
34 | Obsoletes: XFree86-twm < 1:7.0.0 | |
35 | Obsoletes: twm < 1:7.0.0 | |
0b57c627 | 36 | Conflicts: filesystem < 3.0-20 |
bca6aa94 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
91237557 | 38 | |
0b57c627 | 39 | %define _wmpropsdir /usr/share/gnome/wm-properties |
42874de4 | 40 | %define _xsessdir /usr/share/xsessions |
0f174ca7 JB |
41 | # for system.twmrc |
42 | %define _datadir %{_sysconfdir} | |
42874de4 | 43 | |
91237557 | 44 | %description |
06984a05 JB |
45 | Twm is a window manager for the X Window System. It provides |
46 | titlebars, shaped windows, several forms of icon management, | |
47 | user-defined macro functions, click-to-type and pointerdriven keyboard | |
48 | focus, and user-specified key and pointer button bindings. | |
91237557 | 49 | |
2c8bdd38 JR |
50 | %description -l pl.UTF-8 |
51 | Twm jest zarządcą okien dla X Window System. Daje belki tytułowe, | |
52 | ramki okien, parę form zarządzania ikonami, definiowalne makra, | |
53 | ustawianie focusu kliknięciem lub położeniem wskaźnika myszy, | |
54 | definiowalne przypisania klawiszy i przycisków myszy. | |
06984a05 | 55 | |
2c8bdd38 JR |
56 | %description -l ru.UTF-8 |
57 | Простой компактний оконный менеджер. | |
06984a05 | 58 | |
2c8bdd38 JR |
59 | %description -l uk.UTF-8 |
60 | Простий компактний віконний менеджер. | |
91237557 | 61 | |
91237557 AM |
62 | %prep |
63 | %setup -q -n twm-%{version} | |
91237557 | 64 | |
91237557 AM |
65 | %build |
66 | %{__aclocal} | |
67 | %{__autoconf} | |
68 | %{__autoheader} | |
69 | %{__automake} | |
70 | %configure | |
71 | ||
72 | %{__make} | |
73 | ||
91237557 AM |
74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
0b3ef731 | 78 | DESTDIR=$RPM_BUILD_ROOT |
91237557 | 79 | |
4b4eccb6 | 80 | %{?with_gnome2:install -D %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}/twm.desktop} |
42874de4 JB |
81 | install -D %{SOURCE2} $RPM_BUILD_ROOT%{_xsessdir}/twm.desktop |
82 | ||
91237557 AM |
83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
91237557 AM |
86 | %files |
87 | %defattr(644,root,root,755) | |
7f4e7b2f | 88 | %doc COPYING ChangeLog README |
26e4f9c2 | 89 | %attr(755,root,root) %{_bindir}/twm |
0f174ca7 JB |
90 | %dir %{_sysconfdir}/X11/twm |
91 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/twm/system.twmrc | |
4b4eccb6 | 92 | %{?with_gnome2:%{_wmpropsdir}/twm.desktop} |
42874de4 | 93 | %{_xsessdir}/twm.desktop |
16a6ba6a | 94 | %{_mandir}/man1/twm.1* |