File shush.spec of Package shush
# norootforbuild
Name: shush
Version: 1.2.3
Release: 0
Summary: Command Wrapper that optionally sends Output by Email
License: BSD License (original)
Group: System/Shells
URL: https://web.taranis.org/shush/
Source: https://web.taranis.org/shush/dist/shush-%{version}.tgz
Patch1: shush-fix.patch
Patch2: shush-destdir.patch
Patch3: shush-includes.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: pcre2-devel
# needed for configure to find /usr/lib/sendmail:
BuildRequires: postfix
%if 0%{?fedora_version}
BuildRequires: byacc
%endif
%description
shush runs a command and optionally reports its output by email. It is a
powerful wrapper around cron jobs.
%prep
%setup -q
%patch -P 1
%patch -P 2
%patch -P 3
%build
export CFLAGS="%{optflags} -Wno-implicit-function-declaration"
%configure
%make_build
%install
%make_install
%files
%license LICENSE
%doc CHANGES
%{_bindir}/shush
%{_mandir}/man1/shush.1%{?ext_man}
%changelog