3 %bcond_with gnome2 # build with support for GNOME2 wm-properties
5 Summary: Tab Window Manager for the X Window System
6 Summary(pl.UTF-8): Twm - podstawowy zarządca okien dla X Window System
7 Summary(ru.UTF-8): Простой оконный менеджер
8 Summary(uk.UTF-8): Простий віконний менеджер
13 Group: X11/Window Managers
14 Source0: https://xorg.freedesktop.org/releases/individual/app/twm-%{version}.tar.xz
15 # Source0-md5: e2a92734871575b01308e62822915981
17 Source2: twm-xsession.desktop
18 URL: https://xorg.freedesktop.org/
19 BuildRequires: autoconf >= 2.60
20 BuildRequires: automake
23 BuildRequires: pkgconfig >= 1:0.19
24 BuildRequires: tar >= 1:1.11
25 BuildRequires: xorg-lib-libICE-devel
26 BuildRequires: xorg-lib-libSM-devel
27 BuildRequires: xorg-lib-libX11-devel
28 BuildRequires: xorg-lib-libXext-devel
29 BuildRequires: xorg-lib-libXmu-devel
30 BuildRequires: xorg-lib-libXt-devel
31 BuildRequires: xorg-proto-xproto-devel >= 7.0.17
32 BuildRequires: xorg-util-util-macros >= 1.8
35 Obsoletes: X11-twm < 1:7.0.0
36 Obsoletes: XFree86-twm < 1:7.0.0
37 Obsoletes: twm < 1:7.0.0
38 Conflicts: filesystem < 3.0-20
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _wmpropsdir /usr/share/gnome/wm-properties
42 %define _xsessdir /usr/share/xsessions
44 %define _datadir %{_sysconfdir}
47 Twm is a window manager for the X Window System. It provides
48 titlebars, shaped windows, several forms of icon management,
49 user-defined macro functions, click-to-type and pointerdriven keyboard
50 focus, and user-specified key and pointer button bindings.
52 %description -l pl.UTF-8
53 Twm jest zarządcą okien dla X Window System. Daje belki tytułowe,
54 ramki okien, parę form zarządzania ikonami, definiowalne makra,
55 ustawianie focusu kliknięciem lub położeniem wskaźnika myszy,
56 definiowalne przypisania klawiszy i przycisków myszy.
58 %description -l ru.UTF-8
59 Простой компактний оконный менеджер.
61 %description -l uk.UTF-8
62 Простий компактний віконний менеджер.
65 %setup -q -n twm-%{version}
77 rm -rf $RPM_BUILD_ROOT
80 DESTDIR=$RPM_BUILD_ROOT
82 %{?with_gnome2:install -D %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}/twm.desktop}
83 install -D %{SOURCE2} $RPM_BUILD_ROOT%{_xsessdir}/twm.desktop
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc COPYING ChangeLog README.md
91 %attr(755,root,root) %{_bindir}/twm
92 %dir %{_sysconfdir}/X11/twm
93 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/twm/system.twmrc
94 %{?with_gnome2:%{_wmpropsdir}/twm.desktop}
95 %{_xsessdir}/twm.desktop
96 %{_mandir}/man1/twm.1*