]> git.pld-linux.org Git - packages/aewm.git/blob - aewm.spec
2f45e8faaf2ceeadcda58be7ee53599e5743e5f7
[packages/aewm.git] / aewm.spec
1 Summary:        AEWM - the ascetic window manager
2 Summary(pl.UTF-8):      AEWM - "ascetyczny" zarządca okien
3 Name:           aewm
4 Version:        1.3.1
5 Release:        3
6 License:        MIT
7 Group:          X11/Window Managers
8 Source0:        http://www.red-bean.com/~decklin/aewm/%{name}-%{version}.tar.gz
9 # Source0-md5:  d357a30c29540101d0545a3c9167bba0
10 Source1:        %{name}.desktop
11 Source2:        %{name}-xsession.desktop
12 Patch0:         %{name}-xft.patch
13 Patch1:         %{name}-amd64.patch
14 URL:            http://www.red-bean.com/~decklin/aewm/
15 BuildRequires:  gtk+2-devel >= 1:2.0
16 BuildRequires:  motif-devel
17 BuildRequires:  pkgconfig
18 BuildRequires:  xorg-lib-libXft-devel
19 Conflicts:      filesystem < 3.0-20
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _wmpropsdir     /usr/share/gnome/wm-properties
23
24 %description
25 aewm is a minimal window manager for X11. It doesn't support icons,
26 multiple sessions, themes or so; it isn't even highly customizable.
27 Its main benefits are simplicity and speed.
28
29 %description -l pl.UTF-8
30 aewm jet minimalnym zarządcą okien dla X11. Nie potrafi obsługiwać
31 ikon, wielu sesji, motywów, tła itp. Nie jest zbyt konfigurowalny.
32 Jego zaletą jest prostota i szybkość.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37 %if "%{_lib}" == "lib64"
38 %patch1 -p1
39 %endif
40
41 %build
42 %{__make} \
43         CC="%{__cc}" \
44         CFLAGS="%{rpmcflags}" \
45         XROOT=%{_prefix}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d \
50         $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_sysconfdir}/X11/%{name}} \
51         $RPM_BUILD_ROOT%{_wmpropsdir} \
52         $RPM_BUILD_ROOT%{_datadir}/xsessions
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT \
56         XROOT=%{_prefix} \
57         MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
58
59 install %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}
60 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
61 install src/aewmrc.sample $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/aewmrc
62 install clients/clientsrc.sample $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/clientsrc
63
64 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{aemenu-*,aepanel-*,aesession.*,set-gnome-pda.*,switch-desk.*}
65 echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aemenu-gtk.1x
66 echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aemenu-xaw.1x
67 echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aepanel-gtk.1x
68 echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aepanel-xaw.1x
69 echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aesession.1x
70 echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/set-gnome-pda.1x
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc README NEWS TODO
78 %dir %{_sysconfdir}/X11/%{name}
79 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/*rc
80 %attr(755,root,root) %{_bindir}/*
81 %{_datadir}/xsessions/%{name}.desktop
82 %{_wmpropsdir}/*
83 %{_mandir}/man1/*
This page took 0.02683 seconds and 2 git commands to generate.