LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File enlightenment.spec of Package enlightenment (Project X11:windowmanagers)

# spec file for package enlightenment
# Copyright (c) 2011 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/

Name:           enlightenment
%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
License:        BSD-3-Clause
Group:          System/GUI/Other
Provides:       windowmanager
Obsoletes:      enlight
Summary:        A Good-Looking Window Manager for the X Window System
Url:            http://www.enlightenment.org
Version:        1.0.0
Release:        1
Requires:       imlib2 imlib2-loaders
BuildRequires:  imlib2-devel >= 1.2.0
BuildRequires:  libtool
BuildRequires:  xorg-x11-devel
BuildRequires:  xorg-x11
BuildRequires:  pkgconfig
%if %enable_sound
BuildRequires:  alsa-devel
BuildRequires:  esound-devel
%if %enable_pango
BuildRequires:  pango-devel
Source:         e16-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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}

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}

     localedir=%{_prefix}/share/locale \
     gnulocaledir=%{_prefix}/share/locale \
find $RPM_BUILD_ROOT/usr/share/e16/themes -type d | xargs chmod 755
find $RPM_BUILD_ROOT/usr/share/e16/themes -type f | xargs chmod 644
rm -rf $RPM_BUILD_ROOT/usr/share/locale/no
rm -rf $RPM_BUILD_ROOT/usr/share/xsessions/e16-*
rm -rf $RPM_BUILD_ROOT/usr/share/applications/*.desktop
rm -rf $RPM_BUILD_ROOT/usr/share/e16/fonts
%find_lang e16

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f e16.lang
%dir %{_datadir}/e16
%dir %{_datadir}/e16/E-docs
%dir %{_datadir}/e16/config
%dir %{_datadir}/e16/config/menus
%dir %{_datadir}/e16/config/pix
%dir %{_datadir}/e16/misc
%dir %{_datadir}/e16/scripts
%dir %{_datadir}/e16/themes
%dir %{_datadir}/e16/themes/winter
%if %suse_version <= 1020
%dir %{_datadir}/xsessions