File i3blocks.spec of Package i3blocks

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

Name:           i3blocks
Version:        1.4
Release:        0
Summary:        Alternative status bar for i3
License:        GPL-3.0
Group:          System/Monitoring
Source:         %{name}-%{version}.tar.xz
BuildRequires:  pandoc
Requires:       acpi
Requires:       alsa-utils
Requires:       i3
Requires:       iproute2
Requires:       sysstat
Requires:       xclip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

i3blocks is a highly flexible status line for the i3 window manager. It handles
clicks, signals and language-agnostic user scripts.

The content of each block (e.g. time, battery status, network state, ...) is
the output of a command provided by the user. Blocks are updated on click, at a
given interval of time or on a given signal, also specified by the user.

It aims to respect the i3bar protocol, providing customization such as text
alignment, urgency, color, and more.

%setup -q

export CFLAGS="%{optflags}"
make %{?_smp_mflags}
make man %{?_smp_mflags}

make %{?_smp_mflags} DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBEXECDIR=%{_libexecdir} install
make %{?_smp_mflags} DESTDIR=%{buildroot} PREFIX=%{_prefix} install-man

%config(noreplace) %{_sysconfdir}/%{name}.conf