File e16.spec of Package e16

# spec file for package e16
# Copyright (c) 2014 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

%define enable_sound       1
%define enable_hints_gnome 0
%define enable_zoom        1
%define enable_xrandr      1
%define enable_composite   1
%define enable_pango       1
Name:           e16
Version:        1.0.17
Release:        0
Summary:        A Good-Looking Window Manager for the X Window System
License:        MIT and GPL-2.0+
Group:          System/GUI/Other
Source:         e16-%{version}.tar.gz
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(imlib2) >= 1.2.0
Requires:       imlib2-loaders
Provides:       windowmanager
Obsoletes:      enlight < %{version}
Provides:       enlight = %{version}
# don't use provides as that will cause issues with the new enlightenment (e18) package
Obsoletes:      enlightenment >= 1.0.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#conflict with the old enlightenment package
Conflicts:      enlightenment >= 1.0.0
%if %{enable_sound}
BuildRequires:  esound-devel
BuildRequires:  pkgconfig(alsa)
%if %{enable_pango}
BuildRequires:  pkgconfig(pango)
BuildRequires:  fdupes
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcomposite)
BuildRequires:  pkgconfig(xdamage)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xfixes)
BuildRequires:  pkgconfig(xft)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xrender)

Enlightenment is a window manager for the X Window System that is
designed to be powerful, extensible, configurable, and very good
looking. It is one of the more graphically intense window managers.

Enlightenment goes beyond managing windows by providing a useful and
appealing graphical shell from which to work. It is open in design and,
instead of dictating a policy, it allows the user to define their own
policy, down to every last detail.

%setup -q -n e16-%{version}

%if 0%{?sles_version} != 10
autoreconf -fi
%configure \
        --disable-roothacklib \
%if %{enable_sound}
	--enable-sound \
	--disable-sound \
%if %{enable_hints_gnome}
	--enable-hints-gnome \
	--disable-hints-gnome \
%if %{enable_zoom}
	--enable-zoom \
	--disable-zoom \
%if %{enable_xrandr}
	--enable-xrandr \
	--disable-xrandr \
%if %{enable_composite}
	--enable-composite \
	--disable-composite \
%if %{enable_pango}
make %{?_smp_mflags} V=1

make DESTDIR=%{buildroot} \
     localedir=%{_datadir}/locale \
     gnulocaledir=%{_datadir}/locale \
find %{buildroot}%{_datadir}/e16/themes -type d | xargs chmod 755
find %{buildroot}%{_datadir}/e16/themes -type f | xargs chmod 644
rm %{buildroot}%{_datadir}/applications/e16.desktop
rm %{buildroot}%{_datadir}/xsessions/e16-{gnome2,gnome3,kde}-session.desktop
rm -rf %{buildroot}%{_datadir}/gnome-session
rm -rf %{buildroot}%{_datadir}/e16/fonts
%if 0%{?suse_version} >= 1100
%fdupes -s %{buildroot}%{_datadir}/e16/themes/winter
%find_lang e16

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f e16.lang