#
# Conditional build:
-# _with_antialiasing - enable antialiasing
-# _with_gradients - enable gradients (implies _with_antialiasing)
+# _with_gradients - enable gradients (implies _with_antialiasing)
+# _with_antialiasing - enable antialiasing (implies _with_freetype)
+# _without_freetype - disable xfreetype support
+# _without_guievents - disable guievents
+# _without_gnome - disable GNOME support
+# _without_imlib - disable imlib support
#
# TODO:
# - make a PLD-theme - default :]
Summary(ru): ïËÏÎÎÙÊ ÍÅÎÅÄÖÅÒ ÄÌÑ X11
Summary(uk): ÷¦ËÏÎÎÉÊ ÍÅÎÅÄÖÅÒ ÄÌÑ X11
Name: icewm
-Version: 1.2.0pre3
-Release: 1
+Version: 1.2.2
+Release: 2
+Epoch: 1
License: LGPL
Group: X11/Window Managers
-Source0: ftp://ftp.sourceforge.net/pub/sourceforge/icewm/%{name}-%{version}.tar.gz
+Source0: http://prdownloads.sourceforge.net/icewm/%{name}-%{version}.tar.gz
Source1: IceWM.desktop
Source2: %{name}.directory
-Source3: ftp://ftp.sourceforge.net/pub/sourceforge/icewm/iceicons-0.6.tar.gz
+Source3: http://prdownloads.sourceforge.net/icewm/iceicons-0.6.tar.gz
Source4: IceWM.RunWM
Source5: IceWM.wm_style
Source6: %{name}-menu
-Source7: ftp://ftp.sourceforge.net/pub/sourceforge/icewm/netscapeicons-0.2.tar.gz
+Source7: http://prdownloads.sourceforge.net/icewm/netscapeicons-0.2.tar.gz
+Patch0: %{name}-menu.patch
URL: http://www.icewm.org/
BuildRequires: XFree86-devel
-BuildRequires: gnome-libs-devel
-BuildRequires: imlib-devel
-BuildRequires: libstdc++-devel
+%{!?_without_guievents:BuildRequires: esound-devel}
+BuildRequires: gcc-c++
+%{!?_without_gnome:BuildRequires: gnome-libs-devel}
+%{!?_without_imlib:BuildRequires: imlib-devel}
Requires(pre): fileutils
Requires(pre): sh-utils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
+%patch0 -p1
cd lib/icons
tar -xzf %{SOURCE3}
%build
%configure \
- --with-docdir=%{_docdir} \
- --enable-i18n \
- --enable-guievents \
- --enable-xfreetype \
- --with-gnome-menus \
- --with-imlib \
+ %{?_with_gradients:--enable-gradients} \
%{?_with_antialiasing:--enable-antialiasing} \
- %{?_with_gradients:--enable-gradients}
+ %{!?_without_freetype:--enable-xfreetype} \
+ %{!?_without_guievents:--enable-guievents} \
+ %{!?_without_gnome:--with-gnome-menus} \
+ %{?_without_imlib:--without-imlib} \
+ --with-docdir=%{_docdir}
%{__make}
%install