+#
+# Conditional build:
+%bcond_with gnome2 # build with support for GNOME2 wm-properties
+#
%define extraver 0.1
-
Summary: NeXT-alike window manager
Summary(es.UTF-8): Administrador de Ventanas parecido con el NeXT
Summary(fr.UTF-8): Gestionnaire de fenêtres avec le look NeXT
Summary(uk.UTF-8): WindowMaker - віконний менеджер для X11
Name: WindowMaker
Version: 0.92.0
-Release: 1
+Release: 19
License: GPL
Group: X11/Window Managers
Source0: ftp://windowmaker.info/pub/source/release/%{name}-%{version}.tar.gz
Patch10: %{name}-localenames.patch
Patch11: %{name}-0.91.0-translucency-1.patch
Patch12: %{name}-gnustep.patch
+Patch13: %{name}-wine.patch
+Patch14: %{name}-libpng14.patch
+Patch15: %{name}-libpng15.patch
+Patch16: %{name}-format.patch
URL: http://www.windowmaker.info/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
+BuildRequires: giflib-devel
BuildRequires: libjpeg-devel >= 6b
-BuildRequires: libpng-devel >= 1.0.8
+BuildRequires: libpng-devel >= 2:1.4.0
BuildRequires: libtiff-devel
BuildRequires: libtool >= 1:1.4.2-9
-BuildRequires: giflib-devel
BuildRequires: perl-base
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
BuildRequires: xorg-lib-libXext-devel
BuildRequires: xorg-lib-libXft-devel
+BuildRequires: xorg-lib-libXinerama-devel
BuildRequires: xorg-lib-libXpm-devel
Requires: %{name}-libs = %{version}-%{release}
-Requires: cpp
+Requires: Esetroot
+Requires: cpp >= 6:4.0.0
Requires: gnustep-dirs
Requires: tk
Requires: vfmg >= 0.9.95
+Provides: WallpaperChanger
+Conflicts: filesystem < 3.0-20
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/X11
-%define _wmpropsdir /usr/share/wm-properties
+%define _wmpropsdir /usr/share/gnome/wm-properties
%description
Window Maker is an X11 window manager which emulates the look and feel
%package static
Summary: WindowMaker static libraries
Summary(pl.UTF-8): Biblioteki statyczne WindowMakera
+Summary(pt_BR.UTF-8): Componentes estáticos de desenvolvimento para o WindowMaker
Summary(ru.UTF-8): Статические библиотеки поддержки для WindowMaker
Summary(uk.UTF-8): Статичні бібліотеки підтримки для WindowMaker
Group: Development/Libraries
-Summary(pt_BR.UTF-8): Componentes estáticos de desenvolvimento para o WindowMaker
Requires: %{name}-devel = %{version}-%{release}
%description static
%patch10 -p1
%patch11 -p1
%patch12 -p0
+%patch13 -p1
+%patch14 -p1
+%patch15 -p1
+%patch16 -p1
for f in WindowMaker/*menu*; do
- sed -i s,/usr/lib/GNUstep/,%{_libdir}/GNUstep/, $f
- sed -i s,/usr/local/GNUstep/,%{_libdir}/GNUstep/, $f
+ %{__sed} -i s,/GNUstep/Apps,/GNUstep/Applications, $f
+ %{__sed} -i s,%{_libdir}/GNUstep/,%{_libdir}/GNUstep/, $f
+ %{__sed} -i s,%{_prefix}/local/GNUstep/,%{_libdir}/GNUstep/, $f
done
-mv -f po/{no,nb}.po
+%{__mv} po/{no,nb}.po
%build
#%ifarch %{x8664}
--disable-rpath \
--enable-shared \
--enable-static \
+ --enable-xinerama \
--enable-usermenu \
- --with-appspath=%{_libdir}/GNUstep/Apps \
+ --with-appspath=%{_libdir}/GNUstep/Applications \
--with-nlsdir=%{_datadir}/locale \
--with-gnustepdir=%{_libdir}/GNUstep \
--enable-sound \
touch WindowMaker/Defaults/W*.in
-%{__make} \
+%{__make} -j1 \
CFLAGS="%{rpmcflags}" \
LDFLAGS="%{rpmldflags}"
cd %{name}-extra-%{extraver}
%configure \
--with-nlsdir=%{_datadir}/locale \
- --with-iconsdir=%{_datadir}/pixmaps
+ --with-iconsdir=%{_pixmapsdir}
%install
rm -rf $RPM_BUILD_ROOT
install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
-install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}
+#%{?with_gnome2:install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}}
+%{?with_gnome2:%{__sed} s,@LIBDIR@,%{_libdir}, %{SOURCE3} > $RPM_BUILD_ROOT%{_wmpropsdir}/WindowMaker.desktop}
install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
+#%{__sed} s,@LIBDIR@,%{_libdir}, %{SOURCE6} > $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
%{__make} -C %{name}-extra-%{extraver} install \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
+
%find_lang %{name} --all-name
%clean
%dir %{_sysconfdir}/WindowMaker
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/WindowMaker/*
-%{_mandir}/man1/*
-%lang(sk) %{_mandir}/sk/man1/*
+%{_mandir}/man1/*.1*
+%lang(sk) %{_mandir}/sk/man1/*.1*
-%{_pixmapsdir}/*
-%{_wmpropsdir}/WindowMaker.desktop
+%{_pixmapsdir}/*.xpm
+%{?with_gnome2:%{_wmpropsdir}/WindowMaker.desktop}
%attr(755,root,root) %{_bindir}/convertfonts
%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}/set*
+%attr(755,root,root) %{_bindir}/wd*
%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}/wmsetup
-%attr(755,root,root) %{_bindir}/wxcopy
-%attr(755,root,root) %{_bindir}/wxpaste
+%attr(755,root,root) %{_bindir}/wm*
+%attr(755,root,root) %{_bindir}/wx*
%attr(755,root,root) %{_bindir}/dockit
%{_datadir}/WindowMaker
%attr(755,root,root) %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs
%{_libdir}/GNUstep/Applications/WPrefs.app/tiff
-%{_libdir}/GNUstep/Applications/WPrefs.app/xpm
%{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.tiff
%{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.xpm
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libExtraWINGs.so.0
+%attr(755,root,root) %ghost %{_libdir}/libWINGs.so.0
+%attr(755,root,root) %ghost %{_libdir}/libWMaker.so.0
+%attr(755,root,root) %ghost %{_libdir}/libWUtil.so.0
+%attr(755,root,root) %ghost %{_libdir}/libwraster.so.3
%{_datadir}/WINGs
%files devel
%attr(755,root,root) %{_bindir}/get-wraster-flags
%attr(755,root,root) %{_bindir}/get-wutil-flags
%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
%{_includedir}/*
%{_pkgconfigdir}/*.pc