File xvisbell.spec of Package xvisbell
#
# spec file for package xvisbell
#
# Copyright (c) 2018 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: xvisbell
Version: 0~git20180718.a46c963
Release: 0
Summary: Visual Bell for X11
License: GPL-3.0-or-later
Group: System/X11/Utilities
URL: https://github.com/rianhunter/xvisbell
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: pkgconfig(x11)
%description
This is a simple program that flashes a white window on the screen
whenever the X11 bell is rung.
The typical way to use this program is to run it in the background
in your .xsession/.xinitrc file. Works best when used with dwm &
xmonad & friends.
%prep
%setup -q
# set compiler flags
sed -i 's/c++/c++ $(RPM_OPT_FLAGS)/' Makefile
%build
make %{?_smp_mflags}
%install
install -Dm0755 %{name} %{buildroot}/%{_bindir}/%{name}
%files
%doc README.md
%license COPYING
%{_bindir}/%{name}
%changelog