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