License: GPL
Group: X11/Window Managers
Source0: ftp://ftp.windowmaker.org/pub/source/release/%{name}-%{version}.tar.bz2
+# Source0-md5: 9f4fabc8831af6c58edf8708ee90126f
Source1: ftp://windowmaker.org/pub/%{name}-data.tar.gz
+# Source1-md5: 6ea0c37314ea9e9ab27e8bdf45a31a82
Source2: ftp://ftp.windowmaker.org/pub/source/release/%{name}-extra-%{extraver}.tar.gz
+# Source2-md5: 07c7700daaaf232bc490f5abaabef085
Source3: %{name}.desktop
Source4: %{name}.RunWM
Source5: %{name}.wm_style
+Source6: %{name}-xsession.desktop
Patch0: %{name}-CFLAGS.patch
Patch1: %{name}-wmconfig.patch
Patch2: %{name}-pixmaps.patch
Patch12: %{name}-wmchlocale-fixes.patch
Patch13: http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.diff
URL: http://www.windowmaker.org/
+BuildRequires: Hermes-devel
+BuildRequires: XFree86-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: libjpeg-devel >= 6b
BuildRequires: libtiff-devel
BuildRequires: libungif-devel
-BuildRequires: Hermes-devel
-BuildRequires: XFree86-devel
-Requires: wmconfig >= 0.9.9-5
-Requires: cpp
Requires: %{name}-libs = %{version}
+Requires: cpp
Requires: tk
+Requires: wmconfig >= 0.9.9-5
Requires: xinitrc >= 3.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/X11
-%define _wmpropsdir %{_datadir}/wm-properties
+%define _wmpropsdir /usr/share/wm-properties
%description
Window Maker is an X11 window manager which emulates the look and feel
%{__autoconf}
%{__automake}
cd %{name}-extra-%{extraver}
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__automake}
+ %{__libtoolize}
+ %{__aclocal}
+ %{__autoconf}
+ %{__automake}
cd ..
perl -pi -e 's/defaultAppIcon.#extension#;SharedAppIcon = Yes;/defaultAppIcon.#extension#;/' \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/pixmaps,%{_wmpropsdir}} \
+install -d $RPM_BUILD_ROOT{%{_datadir}/{pixmaps,xsessions},%{_wmpropsdir}} \
$RPM_BUILD_ROOT/etc/sysconfig/wmstyle
%{__make} install \
install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_datadir}/pixmaps
install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/%{name}.sh
-install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/%{name}.names
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/wmaker.sh
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/wmaker.names
+install %{SOURCE6} $RPM_BUILD_ROOT%{_dastadir}/xsessions/WindowMaker.desktop
cd %{name}-extra-%{extraver}
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
cd ..
%find_lang %{name} --all-name
%attr(755,root,root) %{_bindir}/dockit
%{_datadir}/WindowMaker
+%{_datadir}/xsessions/WindowMaker.desktop
%dir %{_libdir}/GNUstep
%dir %{_libdir}/GNUstep/Apps