File entr.spec of Package entr
#
# spec file for package entr
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 Daniel Lichtenberger
#
# 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: entr
Version: 4.0
Release: 0
Summary: A utility for running arbitrary commands when files change
License: ISC
Group: Development/Tools/Other
Url: https://bitbucket.org/eradman/entr
Source0: https://bitbucket.org/eradman/entr/get/entr-%{version}.tar.bz2
Source1: LICENSE
%description
A utility for running arbitrary commands when files change. Uses
inotify(7) to avoid polling.
%prep
%autosetup -c
mv eradman-%{name}-*/* .
%build
export CFLAGS="%{optflags}"
# not autotoolsconfigure
./configure
make %{?_smp_mflags}
%install
export PREFIX=%{_prefix}
export MANPREFIX=%{_mandir}
%make_install
%check
make %{?_smp_mflags} test
%files
%doc LICENSE NEWS README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man}
%changelog