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 http://bugs.opensuse.org/
#
Name: flashfocus
Version: 1.2.1
Release: 0
Summary: Focus animations for tiling window managers
License: MIT
Group: System/X11/Utilities
URL: https://github.com/fennerm/flashfocus
Source: https://github.com/fennerm/flashfocus/archive/v%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: libffi-devel
BuildRequires: libxcb-devel
BuildRequires: python3
BuildRequires: python3-pytest-runner
BuildRequires: python3-setuptools
Requires: python3-PyYAML >= 3.0
Requires: python3-cffi
Requires: python3-click
Requires: python3-marshmallow
Requires: python3-xcffib
Requires: python3-xpybutil
Recommends: compton
BuildArch: noarch
%description
Focus animations for tiling window managers. Compatible with all X based window managers.
%prep
%setup -q
sed -i "s/#!\/usr\/bin\/env bash/#!\/bin\/bash/" bin/nc_flash_window
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --optimize=2 --root=%{buildroot}
%fdupes -s %{buildroot}
%files
%license LICENSE
%doc CHANGELOG.md README.md
%{_bindir}/flash_window
%{_bindir}/flashfocus
%{_bindir}/nc_flash_window
%{python3_sitelib}/flashfocus*
%changelog