]> git.pld-linux.org Git - packages/icewm.git/blobdiff - icewm.spec
- rel 2
[packages/icewm.git] / icewm.spec
index 21fe51f4861a66aee25ede6879ba398d12e11351..a9d7dc7250c7796d71cc3479e6e91ec3980116c8 100644 (file)
@@ -1,7 +1,11 @@
 #
 # 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 :]
@@ -14,23 +18,26 @@ Summary(pt_BR):     Gerenciador de Janelas X11
 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)
@@ -99,6 +106,7 @@ warp3, warp4, win95.
 
 %prep
 %setup -q
+%patch0 -p1
 
 cd lib/icons
 tar -xzf %{SOURCE3}
@@ -107,14 +115,13 @@ cd ../..
 
 %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
This page took 0.091229 seconds and 4 git commands to generate.