]> git.pld-linux.org Git - SPECS.git/blob - xorg-app-twm.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / xorg-app-twm.spec
1 #
2 # Conditional build:
3 %bcond_with     gnome2          # build with support for GNOME2 wm-properties
4
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):      Простий віконний менеджер
9 Name:           xorg-app-twm
10 Version:        1.0.11
11 Release:        1
12 License:        MIT
13 Group:          X11/Window Managers
14 Source0:        https://xorg.freedesktop.org/releases/individual/app/twm-%{version}.tar.xz
15 # Source0-md5:  e2a92734871575b01308e62822915981
16 Source1:        twm.desktop
17 Source2:        twm-xsession.desktop
18 URL:            https://xorg.freedesktop.org/
19 BuildRequires:  autoconf >= 2.60
20 BuildRequires:  automake
21 BuildRequires:  bison
22 BuildRequires:  flex
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
33 BuildRequires:  xz
34 Suggests:       xterm
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)
40
41 %define         _wmpropsdir     /usr/share/gnome/wm-properties
42 %define         _xsessdir       /usr/share/xsessions
43 # for system.twmrc
44 %define         _datadir        %{_sysconfdir}
45
46 %description
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.
51
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.
57
58 %description -l ru.UTF-8
59 Простой компактний оконный менеджер.
60
61 %description -l uk.UTF-8
62 Простий компактний віконний менеджер.
63
64 %prep
65 %setup -q -n twm-%{version}
66
67 %build
68 %{__aclocal}
69 %{__autoconf}
70 %{__autoheader}
71 %{__automake}
72 %configure
73
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 %{?with_gnome2:install -D %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}/twm.desktop}
83 install -D %{SOURCE2} $RPM_BUILD_ROOT%{_xsessdir}/twm.desktop
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
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*
This page took 0.280933 seconds and 3 git commands to generate.