]> git.pld-linux.org Git - packages/aewm.git/blobdiff - aewm.spec
- more general lib64 if
[packages/aewm.git] / aewm.spec
index c7fd59c9ee41c740593f15eb53999f0c35f470d1..afa17233aaf7405f3e80c7632dae5c43b1e82fc6 100644 (file)
--- a/aewm.spec
+++ b/aewm.spec
@@ -1,59 +1,77 @@
 Summary:       AEWM - the ascetic window manager
-Summary(pl):   AEWM - "ascetyczny" menad¿er okien
+Summary(pl):   AEWM - "ascetyczny" zarz±dca okien
 Name:          aewm
-Version:       1.1.1
+Version:       1.3.0
 Release:       1
-License:       GPL
+License:       MIT
 Group:         X11/Window Managers
-Group(de):     X11/Fenstermanager
-Group(es):     X11/Administraadores De Ventanas
-Group(fr):     X11/Gestionnaires De Fenêtres
-Group(pl):     X11/Zarz±dcy Okien
 Source0:       http://www.red-bean.com/~decklin/aewm/%{name}-%{version}.tar.gz
+# Source0-md5: ccd098b44d4d7a11555458a788ce757e
 Source1:       %{name}.desktop
-URL:           http://www.red-bean.com/%7Edecklin/aewm/
-BuildRequires: gtk+-devel
-BuildRequires: glibc-devel
+Source2:       %{name}-xsession.desktop
+Patch0:                %{name}-xft.patch
+Patch1:                %{name}-amd64.patch
+URL:           http://www.red-bean.com/~decklin/aewm/
+BuildRequires: gtk+2-devel
+BuildRequires: openmotif-devel
+BuildRequires: xft-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-%define                _mandir         %{_prefix}/man
+%define                _wmpropsdir     /usr/share/wm-properties
 
 %description
 aewm is a minimal window manager for X11.
 
 %description -l pl
-aewm jet minimalnym menad¿erem okien dla X11. Nie potrafi obs³ugiwaæ
-ikon, wielu sesji, tematów, t³a itp. Nie jest zbyt configurowalny.
+aewm jet minimalnym zarz±dc± okien dla X11. Nie potrafi obs³ugiwaæ
+ikon, wielu sesji, motywów, t³a itp. Nie jest zbyt konfigurowalny.
 
 Jego zalet± jest prostota i szybko¶æ.
 
 %prep
 %setup -q
+%patch0 -p1
+%if "%{_lib}" == "lib64"
+%patch1 -p1
+%endif
 
 %build
-%{__make} CFLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}"
-%{__make} -C goodies CFLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}"
+%{__make} \
+       CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \
-       $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties
+install -d \
+       $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_sysconfdir}/X11/%{name}} \
+       $RPM_BUILD_ROOT%{_wmpropsdir} \
+       $RPM_BUILD_ROOT%{_datadir}/xsessions
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       XROOT=%{_prefix} \
+       MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
 
-(cd goodies; install {xaw,gtk}-{panel,palette,switch} $RPM_BUILD_ROOT/%{_bindir})
+install %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
+install src/aewmrc.sample $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/aewmrc
+install clients/clientsrc.sample $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/clientsrc
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties
-
-gzip -9nf README
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{aemenu-*,aepanel-*,aesession.*,set-gnome-pda.*}
+echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aemenu-gtk.1x
+echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aemenu-xaw.1x
+echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aepanel-gtk.1x
+echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aepanel-xaw.1x
+echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/aesession.1x
+echo ".so aeclients.1x" > $RPM_BUILD_ROOT%{_mandir}/man1/set-gnome-pda.1x
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.gz
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/X11/%{name}/*rc
+%doc README ChangeLog TODO
 %attr(755,root,root) %{_bindir}/*
+%{_datadir}/xsessions/%{name}.desktop
+%{_wmpropsdir}/*
 %{_mandir}/man1/*
-%{_datadir}/gnome/wm-properties/aewm.desktop
This page took 0.080251 seconds and 4 git commands to generate.