]>
Commit | Line | Data |
---|---|---|
237bdc36 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gnome2 # build with support for GNOME2 wm-properties | |
4 | # | |
4338ecc4 | 5 | Summary: An X window manager resembling the Plan 9 (8-1/2) interface |
4a4f4a53 | 6 | Summary(pl.UTF-8): Zarządca okien emulujący interfejs Plan 9 (8-1/2) |
2fc9f309 | 7 | Name: 9wm |
8 | Version: 1.2 | |
237bdc36 | 9 | Release: 7 |
5e1d70a1 | 10 | License: distributable |
2fc9f309 | 11 | Group: X11/Window Managers |
cca8a6c0 | 12 | Source0: http://www.plig.org/xwinman/archive/9wm/pre-%{name}-%{version}.shar.gz |
e45415ee | 13 | # Source0-md5: 2785a33d4f42ecc19234029db03d7e00 |
cca8a6c0 | 14 | Source1: %{name}.desktop |
97493613 | 15 | Source2: %{name}-xsession.desktop |
afa77ee4 | 16 | BuildRequires: xorg-cf-files |
0f23aa27 | 17 | BuildRequires: xorg-lib-libXext-devel |
afa77ee4 | 18 | BuildRequires: xorg-util-imake |
34ae2782 | 19 | Conflicts: filesystem < 3.0-20 |
4ee606be | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2fc9f309 | 21 | |
5f7e24f1 | 22 | %define _wmpropsdir /usr/share/gnome/wm-properties |
f745b4ad | 23 | %define _xsessdir /usr/share/xsessions |
2fc9f309 | 24 | |
25 | %description | |
2efca1f6 | 26 | 9wm emulates the Plan 9 window manager 8-1/2. 9wm is designed to be |
27 | small and fast. The interface is easy to use, icon-less and | |
28 | click-to-type. | |
2fc9f309 | 29 | |
6dabfb6d JR |
30 | %description -l pl.UTF-8 |
31 | 9wm emuluje zarządcę okien 8-1/2 z Plan 9. 9wm został zaprojektowany | |
32 | tak, aby był mały i szybki. Interfejs jest łatwy w użyciu i pozbawiony | |
2fc9f309 | 33 | ikon. |
34 | ||
35 | %prep | |
36 | %setup -q -c -T | |
37 | zcat %{SOURCE0} | sh | |
38 | ||
39 | %build | |
40 | xmkmf -a | |
4ee606be | 41 | %{__make} \ |
afa77ee4 | 42 | CC="%{__cc}" \ |
4ee606be | 43 | CDEBUGFLAGS="%{rpmcflags}" |
2fc9f309 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
f745b4ad | 47 | install -d $RPM_BUILD_ROOT{%{_wmpropsdir},%{_xsessdir}} |
0469f67f | 48 | install -d $RPM_BUILD_ROOT%{_bindir} |
afa77ee4 | 49 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
97493613 | 50 | |
0469f67f | 51 | install 9wm $RPM_BUILD_ROOT%{_bindir} |
52 | install 9wm.man $RPM_BUILD_ROOT%{_mandir}/man1/9wm.1x | |
97493613 | 53 | |
237bdc36 | 54 | i%{?with_gnome2:nstall %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}} |
f745b4ad | 55 | install %{SOURCE2} $RPM_BUILD_ROOT%{_xsessdir}/%{name}.desktop |
2fc9f309 | 56 | |
5e1d70a1 | 57 | %clean |
2fc9f309 | 58 | rm -rf $RPM_BUILD_ROOT |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
1030d9a9 | 62 | %doc README |
2fc9f309 | 63 | %attr(755,root,root) %{_bindir}/9wm |
afa77ee4 | 64 | %{_mandir}/man1/9wm.1x* |
237bdc36 | 65 | %{?with_gnome2:%{_wmpropsdir}/%{name}.desktop} |
f745b4ad | 66 | %{_xsessdir}/%{name}.desktop |