File beep.spec of Package beep
#
# spec file for package beep
#
# Copyright (c) 2022 COMBES Pascal <pascom@orange.fr>
#
# 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/
#
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: beep
Version: 1.3
Release: 0
Summary: A command-line tool to beepSound the PC speaker under linux
License: GPL-2.0
Group: Productivity/Multimedia/Sound/Utilities
Url: http://www.johnath.com/beep/
Source0: beep-%{version}.tar.gz
%description
I just got so tired of being limited to printf("\a"); when I wanted a terminal
beep. This program isn't supposed to be anything stupendous, it's just
supposed to get the job done. Its intended purpose in life is to live inside
shell/perl scripts, and allow a little more granularity than you get with the
default terminal bell. Maybe I'm the only one who thinks this is useful. :)
%prep
%setup -q
%build
gcc -Wall -O2 -o beep beep.c
%install
# Install program
mkdir -p %{buildroot}%{_bindir}
install -m 755 beep %{buildroot}%{_bindir}
# Install man page
mkdir -p %{buildroot}%{_mandir}/man1
install -m 644 beep.1.gz %{buildroot}%{_mandir}/man1/
%files
%defattr(-, root, root)
%{_bindir}/beep
%{_mandir}/man1/beep.1.gz
%changelog