File awesome.spec of Package awesome
#
# spec file for package awesome
#
# Copyright (c) 2012 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: awesome
Summary: Highly configurable tiling and floating Window Manager
Version: 3.4.13
Release: 0
License: GPL-2.0+
Group: System/GUI/Other
Url: http://awesome.naquadah.org/
Source: http://awesome.naquadah.org/download/awesome-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE --remove timestamp from build -- pascal.bleser@opensuse.org
Patch0: awesome-remove_build_timestamp.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ImageMagick
BuildRequires: asciidoc
BuildRequires: bison
BuildRequires: cmake
BuildRequires: flex
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: gperf
BuildRequires: pkgconfig(imlib2)
BuildRequires: pkgconfig(libev)
BuildRequires: pkgconfig(libxdg-basedir)
BuildRequires: lua51-devel
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-ewmh)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-icccm)
BuildRequires: pkgconfig(xcb-image)
BuildRequires: pkgconfig(xcb-render)
BuildRequires: pkgconfig(xcb-util) => 0.3.8
BuildRequires: xmlto
BuildRequires: xorg-x11-util-devel
Requires: imlib2-loaders
Requires: %{name}-branding = %{version}
%description
awesome is a window manager initialy based on a dwm code rewriting. It is
extremely fast, small, dynamic and awesome.
It manages windows in several layouts mode: tiled, floating, etc. Each layout
can be applied dynamically, optimizing the environment for the application in
use and the task performed.
In tiled layout, windows are managed in a master and stacking area. The master
area contains the windows which currently need most attention, whereas the
stacking area contains all other windows. The master area can be splited in
several rows and columns. In floating layout, windows can be resized and moved
freely. Dialog windows are always managed floating, regardless of the layout
selected.
Windows are grouped by tags. Each window can be tagged with one or multiple
tags. Selecting certain tags displays all windows with those tags. Each tag can
have its own layout.
awesome contains a small status bar which displays all available tags, the
layout, the title of the focused window, and text read from standard input. The
selected tags are highlighted with a different color, while the tags of the
focused window are highlighted with a small point. awesome draws a small border
around windows to indicate their focus state.
Every aspect of awesome is configurable via a configuration file: awesomerc.
%package branding-upstream
Summary: Upstream Branding for awesome
License: GPL-2.0+
Group: System/GUI/Other
Supplements: packageand(%{name}:branding-upstream)
Provides: %{name}-branding = %{version}
Conflicts: otherproviders(%{name}-branding)
BuildArch: noarch
%description branding-upstream
This package provides the upstream look and feel for awesome.
%prep
%setup -q
%patch0 -p1
sed -i s/nano/vi/g awesomerc.lua.in
%build
%__mkdir build
pushd build
export CFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS"
cmake \
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
-DCMAKE_COLOR_MAKEFILE=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DPREFIX="%{_prefix}" \
-DAWESOME_DOC_PATH="%{_docdir}/%{name}" \
-DXDG_CONFIG_DIR="%{_sysconfdir}/xdg" \
-DCMAKE_SKIP_RPATH=ON \
%if "%{_lib}"=="lib64"
-DLIB_SUFFIX="64" \
%else
-DLIB_SUFFIX="" \
%endif
-DWITH_DBUS=ON \
-DGENERATE_LUADOC=OFF \
-DCOMPRESS_MANPAGES=OFF \
..
%__make %{?_smp_mflags} VERBOSE=1
popd
%install
pushd build
%make_install
popd
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE README STYLE
%dir %{_sysconfdir}/xdg/%{name}
%{_bindir}/%{name}
%{_bindir}/%{name}-client
%{_bindir}/awsetbg
%exclude %{_datadir}/%{name}/themes
%{_datadir}/%{name}
%{_datadir}/xsessions/%{name}.desktop
%doc %{_mandir}/man1/%{name}.1%{ext_man}
%doc %{_mandir}/man1/%{name}-client.1%{ext_man}
%doc %{_mandir}/man1/awsetbg.1%{ext_man}
%doc %{_mandir}/man5/%{name}rc.5%{ext_man}
%doc %{_mandir}/*/man1/%{name}.1%{ext_man}
%doc %{_mandir}/*/man1/%{name}-client.1%{ext_man}
%doc %{_mandir}/*/man1/awsetbg.1%{ext_man}
%doc %{_mandir}/*/man5/%{name}rc.5%{ext_man}
%dir %_mandir/*/man5
%dir %_mandir/es
%dir %_mandir/it
%dir %_mandir/*/man1
%files branding-upstream
%defattr(-,root,root,-)
%doc LICENSE
%config(noreplace) %{_sysconfdir}/xdg/%{name}/rc.lua
%{_datadir}/%{name}/themes
%changelog