File icewm-lite.spec of Package icewm-lite

#
# spec file for package icewm-lite (Version 1.2.38)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           icewm-lite
BuildRequires:  freetype2-devel gcc-c++ xorg-x11-devel
License:        LGPLv2.1+
Group:          System/GUI/Other
Provides:       icewm-bin
Requires:       icewm
Conflicts:      icewm-default
AutoReqProv:    on
Version:        1.2.38
Release:        4
%define real_version 1.2.38pre1
Source:         icewm-%{real_version}.tar.bz2
Patch0:         icewm-LANG.menu.patch
Patch1:         icewm-multiByte.patch
Patch2:         icewm-menu.patch
Patch3:         icewm-docdir.patch
Patch4:         icewm-1.2.30-strict-aliasing.patch
Patch5:         icewm-1.2.35-override-config.patch
Patch8:         icewm-1.2.35-empty-winmenu.patch
Patch9:         icewm-1.2.35-unaligned-access.patch
Patch10:        icewm-1.2.36-gnome-compilation.patch
Patch11:        icewm-1.2.38pre1-bad-delete.patch
Url:            http://www.icewm.org/
Summary:        IceWM Window Manager--Lite Version
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Window manager for the X Window System that can emulate the look of
Windows 95, OS/2 Warp 3,4, Motif. It tries to take the best features of
the above systems. It features multiple workspaces, opaque move and
resize. It is fast and small.

The icewm-default package features a taskbar, window list, mailbox
status and digital clock in addition to that.



Authors:
--------
    Marko Macek <Marko.Macek@gmx.net>

%prep
%setup -q -n icewm-%real_version
%patch0 -p1
%patch1
%patch2
%patch3
%patch4
%patch5
%patch8
%patch9
%patch10 -p1
%patch11 -p1

%build
%{?suse_update_config:%{suse_update_config -f}}
autoconf
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure --without-debug \
	    --sysconfdir=/etc \
	    --with-cfgdir=/etc/icewm \
	    --prefix=/usr \
	    --with-docdir=%{_docdir} \
	    --enable-i18n \
	    --disable-nls \
	    --disable-guievents \
	    --with-xpm \
	    --disable-winmenu \
	    --enable-lite \
	    --without-gnome-menus
make %{?jobs:-j%jobs}

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
cd src
install icewm icewmhint icewmbg icesh icewm-session $RPM_BUILD_ROOT/usr/bin

%clean
rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
/usr/bin/icewm
/usr/bin/icewmhint
/usr/bin/icewmbg
/usr/bin/icesh
/usr/bin/icewm-session

%changelog