File flashfocus.spec of Package flashfocus

# spec file for package flashfocus
# Copyright (c) 2019 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:           flashfocus
Version:        2.1.1
Release:        0
Summary:        Focus animations for tiling window managers
License:        MIT
Group:          System/X11/Utilities
Patch0:         flashfocus-2.0.3-no-i3ipc.patch
BuildRequires:  fdupes
BuildRequires:  libffi-devel
BuildRequires:  libxcb-devel
BuildRequires:  python3
BuildRequires:  python3-pytest-runner
BuildRequires:  python3-setuptools
Requires:       python3-PyYAML >= 5.1
Requires:       python3-cffi
Requires:       python3-click
Requires:       python3-marshmallow
Requires:       python3-xcffib
Requires:       python3-xpybutil
Recommends:     compton
BuildArch:      noarch

Focus animations for tiling window managers. Compatible with all X based window managers.

%setup -q
%patch0 -p1
sed -i "s/#!\/usr\/bin\/env bash/#!\/bin\/bash/" bin/nc_flash_window

python3 build

python3 install --prefix=%{_prefix} --optimize=2 --root=%{buildroot}
%fdupes -s %{buildroot}

%license LICENSE