File iwatch.spec of Package iwatch
%define DISTRO_RH %([ -f /etc/redhat-release ] && sed -e "s/\(.\+ release \)\(.\+\)\( .\+\)/\2/" /etc/redhat-release)
%define DISTRO_SUSE %([ -f /etc/SuSE-release ] && grep VERSION /etc/SuSE-release| sed -e "s/VERSION = /SuSE/"|tr -d ".")
%define iwatch_version 20160926
%define iwatch_release 1
Summary: watch the command output with interval timer
Name: iwatch
Version: %(echo %{iwatch_version}|tr -s "-" "_")
Release: %{iwatch_release}.%{DISTRO_RH}%{DISTRO_SUSE}
License: GNU GPL
Vendor: IIJ
Group: System/Monitoring
Source0: iwatch-%{iwatch_version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
BuildRequires: ncurses-devel
Requires: ncurses
URL: http://iwatch.sourceforge.net/
Distribution: openSUSE (x86_64)
%description
iwatch is a program to watch the given command's output periodically and watch the output change.
%prep
%setup -n %{name}-%{iwatch_version}
%build
%configure
make
%install
[ "x" != "x/" ] && rm -rf ""
%makeinstall
%clean
[ "x" != "x/" ] && rm -rf ""
%pre
%post
%preun
%files
%defattr(-,root,root)
%doc {README.md,TODO}
/*
%changelog
* Tue Nov 22 2016 koga <koga@iij.ad.jp>
- Build rpm package.