File awesome.spec of Package awesome
#
# spec file for package awesome
#
# Copyright (c) 2015 SUSE LINUX 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
Version: 3.5.6
Release: 0
Summary: Highly configurable tiling and floating Window Manager
License: GPL-2.0+
Group: System/GUI/Other
Url: http://awesome.naquadah.org/
Source: http://awesome.naquadah.org/download/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE awesome-remove_build_timestamp.patch pascal.bleser@opensuse.org -- Remove timestamp from build.
Patch0: %{name}-remove_build_timestamp.patch
BuildRequires: ImageMagick
BuildRequires: asciidoc
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: grep
BuildRequires: lua-devel
BuildRequires: lua-lgi
BuildRequires: xmlto
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(cairo-xcb)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libstartup-notification-1.0) >= 0.10
BuildRequires: pkgconfig(libxdg-basedir) >= 1.0.0
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb-cursor)
BuildRequires: pkgconfig(xcb-icccm) >= 0.3.8
BuildRequires: pkgconfig(xcb-keysyms) >= 0.3.4
BuildRequires: pkgconfig(xcb-randr)
BuildRequires: pkgconfig(xcb-shape)
BuildRequires: pkgconfig(xcb-util) >= 0.3.8
BuildRequires: pkgconfig(xcb-xinerama)
BuildRequires: pkgconfig(xcb-xtest)
BuildRequires: pkgconfig(xproto) >= 7.0.15
BuildRequires: typelib(Pango)
Requires: %{name}-branding
Requires: lua-lgi
Requires: typelib(Pango)
%description
awesome is an extremely fast, small, and dynamic window manager.
It manages windows in several layouts mode: tiled, floating, etc.
Each layout can be applied dynamically, optimizing the environment
for the application inuse and the task performed.
It is primarly targeted at power users, developers and any people
dealing with every day computing tasks and who want to have
fine-grained control on theirs graphical environment.
Every aspect of awesome is configurable via awesomerc file.
%package branding-upstream
Summary: Upstream Branding for awesome
Group: System/GUI/Other
Supplements: packageand(%{name}:branding-upstream)
Conflicts: otherproviders(%{name}-branding)
Provides: %{name}-branding = %{version}
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' %{name}rc.lua.in
sed -i 's/^\(Type=\).*$/\1XSession/' %{name}.desktop
%build
%cmake \
-DAWESOME_DOC_PATH=%{_docdir}/%{name} \
-DXDG_CONFIG_DIR=%{_sysconfdir}/xdg \
-DCOMPRESS_MANPAGES=OFF
make %{?_smp_mflags}
%install
%cmake_install
%files
%defattr(-,root,root)
%doc AUTHORS LICENSE README STYLE
%dir %{_sysconfdir}/xdg/%{name}/
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%exclude %{_datadir}/%{name}/themes/
%{_datadir}/xsessions/%{name}.desktop
%{_mandir}/man?/%{name}*.?%{?ext_man}
%{_mandir}/*/man?/%{name}*.?%{?ext_man}
%files branding-upstream
%defattr(-,root,root)
%doc LICENSE
%config(noreplace) %{_sysconfdir}/xdg/%{name}/rc.lua
%{_datadir}/%{name}/themes/
%changelog