summaryrefslogtreecommitdiff
path: root/9wm.spec
blob: 37c98673dd0935851d3c702bc79497cec12cbc36 (plain)
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
#
# Conditional build:
%bcond_with	gnome2		# build with support for GNOME2 wm-properties
#
Summary:	An X window manager resembling the Plan 9 (8-1/2) interface
Summary(pl.UTF-8):	Zarządca okien emulujący interfejs Plan 9 (8-1/2)
Name:		9wm
Version:	1.2
Release:	7
License:	distributable
Group:		X11/Window Managers
Source0:	http://www.plig.org/xwinman/archive/9wm/pre-%{name}-%{version}.shar.gz
# Source0-md5:	2785a33d4f42ecc19234029db03d7e00
Source1:	%{name}.desktop
Source2:	%{name}-xsession.desktop
BuildRequires:	xorg-cf-files
BuildRequires:	xorg-lib-libXext-devel
BuildRequires:	xorg-util-imake
Conflicts:	filesystem < 3.0-20
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_wmpropsdir	/usr/share/gnome/wm-properties
%define		_xsessdir	/usr/share/xsessions

%description
9wm emulates the Plan 9 window manager 8-1/2. 9wm is designed to be
small and fast. The interface is easy to use, icon-less and
click-to-type.

%description -l pl.UTF-8
9wm emuluje zarządcę okien 8-1/2 z Plan 9. 9wm został zaprojektowany
tak, aby był mały i szybki. Interfejs jest łatwy w użyciu i pozbawiony
ikon.

%prep
%setup -q -c -T
zcat %{SOURCE0} | sh

%build
xmkmf -a
%{__make} \
	CC="%{__cc}" \
	CDEBUGFLAGS="%{rpmcflags}"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_wmpropsdir},%{_xsessdir}}
install -d $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{_mandir}/man1

install 9wm $RPM_BUILD_ROOT%{_bindir}
install 9wm.man $RPM_BUILD_ROOT%{_mandir}/man1/9wm.1x

i%{?with_gnome2:nstall %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}}
install %{SOURCE2} $RPM_BUILD_ROOT%{_xsessdir}/%{name}.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_bindir}/9wm
%{_mandir}/man1/9wm.1x*
%{?with_gnome2:%{_wmpropsdir}/%{name}.desktop}
%{_xsessdir}/%{name}.desktop