-Summary: NeXT-alike window manager
-Summary(fr): Gestionnaire de fenêtres avec le look NeXT
-Name: WindowMaker
-Version: 0.19.3
-Release: 1
-Group: X11/Window Managers
-Copyright: GPL
-Vendor: Dan Pascu <dan@services.iiruc.ro>
-URL: http://www.windowmaker.org
-Source: ftp://ftp.windowmaker.org/pub/beta/srcs/%{name}-%{version}.tar.bz2
-Patch0: WindowMaker-autoconf.patc
-Patch1: WindowMaker-fix_po.patch
-Prereq: /lib/cpp
-BuildRoot: /tmp/%{name}-%{version}-root
+%define extraver 0.1
+
+Summary: NeXT-alike window manager
+Summary(fr): Gestionnaire de fenêtres avec le look NeXT
+Summary(pl): Mened¿er okien w stylu NeXT
+Name: WindowMaker
+Version: 0.64.0
+Release: 4
+Group: X11/Window Managers
+Group(es): X11/Administraadores De Ventanas
+Group(fr): X11/Gestionnaires De Fenêtres
+Group(pl): X11/Zarz±dcy Okien
+License: GPL
+Source0: ftp://ftp.windowmaker.org/pub/beta/srcs/%{name}-%{version}.tar.bz2
+Source1: ftp://windowmaker.org/pub/%{name}-data.tar.gz
+Source2: ftp://ftp.windowmaker.org/pub/beta/srcs/%{name}-extra-%{extraver}.tar.gz
+Source3: %{name}.desktop
+Source4: %{name}.RunWM
+Source5: %{name}.wm_style
+Patch0: %{name}-CFLAGS.patch
+Patch1: %{name}-wmconfig.patch
+Patch2: %{name}-a_macro.patch
+Patch3: %{name}-pixmaps.patch
+Patch4: %{name}-shared.patch
+Patch5: %{name}-areas.patch
+Patch6: %{name}-runinst.patch
+Patch7: %{name}-IconPosition.patch
+Patch8: %{name}-singleclick.patch
+Patch9: %{name}-plmenu.patch
+Patch10: %{name}-dockit.patch
+URL: http://www.windowmaker.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: libPropList-devel >= 0.10.1
+BuildRequires: libpng >= 1.0.8
+BuildRequires: libjpeg-devel >= 6b
+BuildRequires: libtiff-devel
+BuildRequires: libungif-devel
+Requires: wmconfig >= 0.9.9-5
+Requires: cpp
+Requires: %{name}-libs = %{version}
+Requires: tk
+Requires: xinitrc >= 3.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/X11R6
+%define _mandir %{_prefix}/man
+%define _sysconfdir /etc/X11
+%define _wmpropsdir %{_datadir}/wm-properties
%description
-WindowMaker is a window manager designed to emulate the look and feel of
-part of the NEXTSTEP(tm) GUI. It's supposed to be fast, relatively small,
-feature rich and easy to configure, with a simple and elegant appearance
-borrowed from NEXTSTEP(tm).
+Window Maker is an X11 window manager which emulates the look and feel
+of the NeXTSTEP (TM) graphical user interface. It is relatively fast,
+feature rich and easy to configure and use. Window Maker is part of
+the official GNU project, which means that Window Maker can
+interoperate with other GNU projects, such as GNOME.
+
+Window Maker allows users to switch themes 'on the fly,' to place
+favorite applications on either an application dock, similar to
+AfterStep's Wharf or on a workspace dock, a 'clip' which extends the
+application dock's usefulness.
+
+You should install the WindowMaker package if you use Window Maker as
+your window manager or if you'd like to try using it. If you do
+install the WindowMaker package, you may also want to install the
+AfterStep-APPS package, which includes applets that will work with
+both AfterStep and Window Maker window managers.
%description -l fr
-WindowMaker est un "Window Manager" conçu pour émuler l'apparence et la
-sensation de l'interface graphique NeXTSTEP(tm). Il est suposé être rapide,
-relativement petit, facile a configurer, extremement complet et avec
-l'apparence simple et élégante empruntée a NeXTSTEP(tm).
+Window Maker est un gestionnaire de fenêtres pour X11 qui cherche à
+reproduire l'allure et l'ergonomie ("look & feel") de l'interface
+graphique NeXTSTEP(tm) (aka OpenStep). Il est relativement rapide,
+évolué, et facile à configurer et à utiliser. Window Maker fait
+officiellement partie du projet GNU, ce qui signifie que Window Maker
+peut coopérer avec d'autres projets GNU, comme par exemple GNOME.
+
+Window Maker permet de changer de thèmes facilement, de placer ses
+applications favorites soit sur un "dock" similaire au programme Wharf
+de AfterStep, soit sur un dock intégré à l'espace de travail, appelé
+"clip" (trombone), et qui permet d'étendre les possibilités du dock
+principal.
+
+Vous devriez installer ce package si votre gestionnaire de fenêtres
+est Window Maker, ou si vous voulez l'essayer. Si vous installez le
+package Window Maker, vous voudrez peut-être installer aussi le
+package AfterStep-APPS, qui contient des "applets" (petites
+applications) qui fonctionnent à la fois dans les gestionnaires de
+fenêtres AfterStep et Window Maker.
+
+%description -l pl
+WindowMaker jest mened¿erem okien przypominaj±cym wygl±dem i wygod±
+obs³ugi interfejs systemu NeXTSTEP(tm). Jest szybki, stosunkowo ma³y,
+o du¿ych mo¿liwo¶ciach i ³atwy w konfiguracji. Konfiguruje siê go
+myszk±, za pomoc± programu WPrefs wchodz±cego w sk³ad tego pakietu.
+
+%package libs
+Summary: WindowMaker shared libraries
+Summary(pl): Biblioteki wspó³dzielone WindowMakera
+Group: Libraries
+Group(fr): Librairies
+Group(pl): Biblioteki
+
+%description libs
+This package contains shared libraries for run WindowMaker.
+
+%description libs -l pl
+Ten pakiet zawiera biblioteki wspó³dzielone niezbêdne do pracy
+mened¿era okien WindowMaker.
%package devel
-Summary: WindowMaker libraries
-Summary(fr): Librairies de WindowMaker
-Group: Development/Libraries
-Requires: %{name} = %{version}
+Summary: WindowMaker libraries - development part
+Summary(fr): Librairies de WindowMaker
+Summary(pl): Biblioteki WindowMakera - czê¶æ dla programistów
+Group: Development/Libraries
+Group(fr): Development/Librairies
+Group(pl): Programowanie/Biblioteki
+Requires: %{name}-libs = %{version}
%description devel
This package contains libraries for building WindowMaker-enhanced
applications.
%description devel -l fr
-Ce paquet contient des librairies pour faire des applications mise en valeur
-par WindowMaker.
+Ce paquet contient des librairies pour faire des applications mise en
+valeur par WindowMaker.
+
+%description devel -l pl
+Ten pakiet zawiera pliki nag³ówkowe i biblioteki niezbêdne do
+tworzenia aplikacji wykorzystuj±cych mo¿liwo¶ci mened¿era okien
+WindowMaker.
+
+%package static
+Summary: WindowMaker static libraries
+Summary(pl): Biblioteki statyczne WindowMakera
+Group: Development/Libraries
+Group(fr): Development/Librairies
+Group(pl): Programowanie/Biblioteki
+Requires: %{name}-devel = %{version}
+
+%description static
+This package contains static libraries for building
+WindowMaker-enhanced applications.
+
+%description static -l pl
+Ten pakiet zawiera statyczne biblioteki niezbêdne do tworzenia
+aplikacji wykorzystuj±cych mo¿liwo¶ci menad¿era okien WindowMaker.
%prep
-%setup -q
+%setup -q -a 1 -a 2
%patch0 -p1
-%patch1 -p1
+%patch1 -p0
+%patch2 -p0
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%build
+aclocal
autoconf
+automake -a -c
+LINGUAS="cs de el es fi fr gl hr it ja ko nl no pl pt ro ru \
+ se sk tr zh_CN zh_TW.Big5" ; export LINGUAS
+CPP_PATH="/lib/cpp" ; export CPP_PATH
-%build
-echo "b" | CFLAGS=$RPM_OPT_FLAGS LDFLAGS="-s" ./configure \
- --prefix=/usr/X11R6 \
- --includedir=/usr/include/X11 \
- --with-nlsdir=/usr/share/locale \
- --enable-sound --with-gnome \
- --enable-superfluous \
- --enable-newstyle \
- --disable-debug
-make
+%configure \
+ --with-nlsdir=%{_datadir}/locale \
+ --with-appspath=%{_libdir}/GNUstep/Apps \
+ --enable-sound \
+ --enable-gnome \
+ --disable-debug \
+ --enable-kde \
+ --enable-shared \
+ --enable-static \
+ --enable-usermenu
+
+touch WindowMaker/Defaults/W*.in
+%{__make} \
+ LINGUAS="cs de el es fi fr gl hr it ja ko nl no pl pt ro ru \
+ se sk tr zh_CN zh_TW.Big5" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
+
+autoconf
+cd %{name}-extra-%{extraver}
+%configure \
+ --with-nlsdir=%{_datadir}/locale \
+ --with-iconsdir=%{_datadir}/pixmaps
%install
rm -rf $RPM_BUILD_ROOT
-#install -d $RPM_BUILD_ROOT/usr/{include/X11,X11R6/share/pixmaps}
+install -d $RPM_BUILD_ROOT{%{_datadir}/pixmaps,%{_wmpropsdir}} \
+ $RPM_BUILD_ROOT/etc/sysconfig/wmstyle
+
+%{__make} install \
+ LINGUAS="cs de el es fi fr gl hr it ja ko nl no pl pt ro ru \
+ se sk tr zh_CN zh_TW.Big5" \
+ DESTDIR=$RPM_BUILD_ROOT
-make install-strip \
- prefix=$RPM_BUILD_ROOT/usr/X11R6 \
- exec_prefix=$RPM_BUILD_ROOT/usr/X11R6 \
- nlsdir=$RPM_BUILD_ROOT/usr/share/locale \
- includedir=$RPM_BUILD_ROOT/usr/X11R6/include
+install util/bughint $RPM_BUILD_ROOT%{_bindir}
+
+install contrib/dockit $RPM_BUILD_ROOT%{_bindir}
+install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+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
+
+(cd %{name}-extra-%{extraver};
+%{__make} DESTDIR=$RPM_BUILD_ROOT install )
+
+gzip -9nf AUTHORS BUGFORM BUGS ChangeLog FAQ NEWS README
+
+%find_lang %{name} --all-name
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%clean
-rm -r $RPM_BUILD_ROOT
-
-%files
-%attr(644, root, root, 755)
-%doc AUTHORS BUGFORM BUGS ChangeLog FAQ NEWS README TODO util/bughint
-%attr(755, root, root) /usr/X11R6/bin/*
-/usr/X11R6/share/*
-
-%dir /usr/X11R6/GNUstep
-%dir /usr/X11R6/GNUstep/Apps
-%dir /usr/X11R6/GNUstep/Apps/WPrefs.app
-%attr(755, root, root) /usr/X11R6/GNUstep/Apps/WPrefs.app/WPrefs
-/usr/X11R6/GNUstep/Apps/WPrefs.app/tiff
-/usr/X11R6/GNUstep/Apps/WPrefs.app/xpm
-/usr/X11R6/GNUstep/Apps/WPrefs.app/WPrefs.tiff
-/usr/X11R6/GNUstep/Apps/WPrefs.app/WPrefs.xpm
-
-%lang(cs) /usr/share/locale/cs/LC_MESSAGES/*
-%lang(de) /usr/share/locale/de/LC_MESSAGES/*
-%lang(el) /usr/share/locale/el/LC_MESSAGES/*
-%lang(es) /usr/share/locale/es/LC_MESSAGES/*
-%lang(fi) /usr/share/locale/fi/LC_MESSAGES/*
-%lang(fr) /usr/share/locale/fr/LC_MESSAGES/*
-%lang(gl) /usr/share/locale/gl/LC_MESSAGES/*
-%lang(hr) /usr/share/locale/hr/LC_MESSAGES/*
-%lang(it) /usr/share/locale/it/LC_MESSAGES/*
-%lang(ko) /usr/share/locale/ko/LC_MESSAGES/*
-%lang(nl) /usr/share/locale/nl/LC_MESSAGES/*
-%lang(no) /usr/share/locale/no/LC_MESSAGES/*
-%lang(pl) /usr/share/locale/pl/LC_MESSAGES/*
-%lang(pt) /usr/share/locale/pt/LC_MESSAGES/*
-%lang(ru) /usr/share/locale/ru/LC_MESSAGES/*
-%lang(se) /usr/share/locale/se/LC_MESSAGES/*
-%lang(tr) /usr/share/locale/tr/LC_MESSAGES/*
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc *.gz
+
+%dir %{_sysconfdir}/WindowMaker
+%config %verify(not size mtime md5) %{_sysconfdir}/WindowMaker/*
+
+%attr(755,root,root) /etc/sysconfig/wmstyle/*.sh
+/etc/sysconfig/wmstyle/*.names
+
+%{_mandir}/man1/*
+
+%{_pixmapsdir}/*
+%{_wmpropsdir}/WindowMaker.desktop
+
+%attr(755,root,root) %{_bindir}/bughint
+%attr(755,root,root) %{_bindir}/geticonset
+%attr(755,root,root) %{_bindir}/getstyle
+%attr(755,root,root) %{_bindir}/seticons
+%attr(755,root,root) %{_bindir}/setstyle
+%attr(755,root,root) %{_bindir}/wdwrite
+%attr(755,root,root) %{_bindir}/wdread
+%attr(755,root,root) %{_bindir}/wkdemenu.pl
+%attr(755,root,root) %{_bindir}/wm-oldmenu2new
+%attr(755,root,root) %{_bindir}/wmagnify
+%attr(755,root,root) %{_bindir}/wmaker
+%attr(755,root,root) %{_bindir}/wmaker.inst
+%attr(755,root,root) %{_bindir}/wmsetbg
+%attr(755,root,root) %{_bindir}/wmchlocale
+%attr(755,root,root) %{_bindir}/wsetfont
+%attr(755,root,root) %{_bindir}/wxcopy
+%attr(755,root,root) %{_bindir}/wxpaste
+%attr(755,root,root) %{_bindir}/dockit
+
+%{_datadir}/WindowMaker
+
+%dir %{_libdir}/GNUstep
+%dir %{_libdir}/GNUstep/Apps
+%dir %{_libdir}/GNUstep/Apps/WPrefs.app
+
+%attr(755,root,root) %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs
+
+%{_libdir}/GNUstep/Apps/WPrefs.app/tiff
+%{_libdir}/GNUstep/Apps/WPrefs.app/xpm
+%{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.tiff
+%{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.xpm
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/get-wings-flags
+%attr(755,root,root) %{_bindir}/get-wraster-flags
+%attr(755,root,root) %{_bindir}/get-wutil-flags
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%{_datadir}/WINGs
%files devel
-%attr(644,root,root) /usr/X11R6/include/*.h
-%attr(644,root,root) /usr/X11R6/lib/lib*.a
-
-%changelog
-* Thu Sep 8 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.19.3-1]
-- added -q %setup parameter,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- changeded dependences to "Requires: %%{name} = %%{version}" in devel
- subpackage,
-- removed "rm -r %%{builddir}" - it's automatically removed if rpm is runed
- on building with --clean,
-- removed COPYING and INSTALL from %doc (copyright statment is in Copyright
- field),
-- WindowMaker is now builded from bz2 source tar,
-- removed Packager field (this must be placed in persolan ~/.rpmrc),
-- nls stuff moved to /usr/share/locale,
-- added --disable-debug for configure,
-- adde %lang macros for /usr/share/locale/*/LC_MESSAGES/* files,
-- added WindowMaker-fix_po.patch wit fixing .po files,
-- simplification in %files and added using %defattr macro also.
-
-* Tue Jul 21 1998 W. Reilly Cooley <wcooley@nakedape.ml.org>
-- updated from 16.1 to 17.2; made it use RPM_OPT_FLAGS
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_bindir}/get-wraster-flags
+%{_includedir}/*
+%{_libdir}/lib*.la
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a