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
%endif
%if %enable_pango
BuildRequires:  pango-devel
%endif
Source:         e16-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.

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

%build
autoreconf -fi
%configure \
        --disable-roothacklib \
%if %enable_sound
	--enable-sound \
%else
	--disable-sound \
%endif
%if %enable_hints_gnome
	--enable-hints-gnome \
%else
	--disable-hints-gnome \
%endif
%if %enable_zoom
	--enable-zoom \
%else
	--disable-zoom \
%endif
%if %enable_xrandr
	--enable-xrandr \
%else
	--disable-xrandr \
%endif
%if %enable_composite
	--enable-composite \
%else
	--disable-composite \
%endif
%if %enable_pango
	--enable-pango
%else
	--disable-pango
%endif
make %{?_smp_mflags}

%install
make DESTDIR=$RPM_BUILD_ROOT \
     localedir=%{_prefix}/share/locale \
     gnulocaledir=%{_prefix}/share/locale \
     install
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
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING docs/README TODO
%{_bindir}/*
%{_bindir}/starte16
%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
%{_datadir}/e16/E-docs/*.png
%{_datadir}/e16/config/definitions
%{_datadir}/e16/config/*.cfg
%{_datadir}/e16/config/menus/*.menu
%{_datadir}/e16/config/pix/*.png
%{_datadir}/e16/config/e16keyedit.db
%{_datadir}/e16/misc/*
%{_datadir}/e16/scripts/*
%{_datadir}/e16/themes/*/*
%{_datadir}/xsessions/e*.desktop
%if %suse_version <= 1020
%dir %{_datadir}/xsessions
%endif

%changelog