]> git.pld-linux.org Git - SPECS.git/blob - ctwm.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / ctwm.spec
1 #
2 # Conditional build:
3 %bcond_with     gnome2          # build with support for GNOME2 wm-properties
4 #
5 Summary:        CTWM - an extention to the twm window manager
6 Summary(pl.UTF-8):      CTWM - rozszerzenie do zarządcy okien twm
7 Name:           ctwm
8 Version:        3.6
9 Release:        3
10 License:        MIT
11 Group:          X11/Window Managers
12 Source0:        http://ctwm.free.lp.se/dist/%{name}-%{version}.tar.gz
13 # Source0-md5:  c9e9e161e07e3d1c7e27684436f01e2b
14 Source1:        %{name}.desktop
15 Source2:        %{name}-xsession.desktop
16 Patch0:         %{name}-pld-dir.patch
17 Patch1:         %{name}-bison.patch
18 URL:            http://ctwm.free.lp.se/
19 BuildRequires:  XFree86-devel
20 Conflicts:      filesystem < 3.0-20
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 # NOTE: if prefix==/usr, %{_libdir}/X11 must not be used
24 %define         _prefix         /usr/X11R6
25 %define         _mandir         %{_prefix}/man
26 %define         _wmpropsdir     /usr/share/gnome/wm-properties
27
28 %description
29 CTWM is an extension to twm, that support multiple virtual screens,
30 and a lot of other goodies. You can use and manage up to 32 virtual
31 screens called workspaces. You swap from one workspace to another by
32 clicking on a button in an optional panel of buttons (the workspace
33 manager) or by invoking a function. This is the GNU libc version
34 (RedHat 5.0/TurboLinux 2.0 and above).
35
36 %description -l pl.UTF-8
37 CTWM jest rozszerzeniem twm obsługującym wiele ekranów wirtualnych
38 oraz posiadającym wiele innych użytecznych funkcji. Można używać i
39 zarządzać nawet 32 ekranami wirtualnymi zwanymi "przestrzenią roboczą"
40 (workspace). Można się między nimi przełączać klikając na przycisku w
41 opcjonalnym panelu (zarządcy przestrzeni roboczej) lub wywołując
42 funkcję. Jest to wersja współpracująca z GNU libc (RedHat
43 5.0/TurboLinux 2.0 i wyższe).
44
45 %prep
46 %setup -q
47 %patch0 -p1
48 %patch1 -p1
49
50 %build
51 xmkmf
52
53 %{__make} \
54         CDEBUGFLAGS="%{rpmcflags}" \
55         CXXDEBUGFLAGS="%{rpmcflags}" \
56         PIXDIR=/etc/X11/
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_bindir} \
61         $RPM_BUILD_ROOT%{_mandir}/man1 \
62         $RPM_BUILD_ROOT/etc/X11/twm \
63         $RPM_BUILD_ROOT%{_libdir}/X11/ctwm \
64         $RPM_BUILD_ROOT%{_wmpropsdir} \
65         $RPM_BUILD_ROOT%{_datadir}/xsessions
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69 %{__make} install.man \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 %{?with_gnome2:install %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}}
73 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc CHANGES PROBLEMS README ctwm.txt sound.doc
81 %config /etc/X11/twm/system.ctwmrc
82 %attr(755,root,root) %{_bindir}/ctwm
83 %{_libdir}/X11/ctwm
84 %{?with_gnome2:%{_wmpropsdir}/ctwm.desktop}
85 %{_datadir}/xsessions/ctwm.desktop
86 %{_mandir}/man1/*
This page took 0.123551 seconds and 3 git commands to generate.