Name: multitail Version: 6.4.2 Release: 1%{?dist} Summary: View one or multiple files like tail but with multiple windows Group: Applications/Text # License GPLv2 specified in readme.txt License: GPLv2 URL: http://www.vanheusden.com/multitail/ Source: http://www.vanheusden.com/multitail/multitail-%{version}.tgz Patch0: Unversioned-doc-dir.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: ncurses-devel # For unversioned doc dir %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} %description MultiTail lets you view one or multiple files like the original tail program. The difference is that it creates multiple windows on your console (with ncurses). It can also monitor wildcards: if another file matching the wildcard has a more recent modification date, it will automatically switch to that file. That way you can, for example, monitor a complete directory of files. Merging of 2 or even more logfiles is possible. It can also use colors while displaying the logfiles (through regular expressions), for faster recognition of what is important and what not. Multitail can also filter lines (again with regular expressions) and has interactive menus for editing given regular expressions and deleting and adding windows. One can also have windows with the output of shell scripts and other software. When viewing the output of external software, MultiTail can mimic the functionality of tools like 'watch' and such. %prep %setup -q -n multitail-%{version} %patch0 -p1 %build CFLAGS="%{optflags}" make %{?_smp_mflags} # Fix up doc encoding for f in readme.txt; do iconv -f ISO88592 -t UTF8 < $f > $f.utf8 && \ touch -r $f $f.utf8 && \ mv $f.utf8 $f done # Fix up examples permissions chmod 644 conversion-scripts/colors-example.* chmod 644 conversion-scripts/convert-*.pl %install rm -rf %{buildroot} # Create necessary directories mkdir -p %{buildroot}/%{_pkgdocdir} %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 %{buildroot}%{_sysconfdir} %{buildroot}%{_pkgdocdir} make DESTDIR=%{buildroot} DOCDIR=%{buildroot}%{_pkgdocdir} install # move the configuration in the right place mv %{buildroot}%{_sysconfdir}/multitail.conf{.new,} # remove the examples (installed as docs) rm %{buildroot}%{_sysconfdir}/multitail/colors-example.* %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc manual*.html license.txt readme.txt conversion-scripts/colors-example.* %config(noreplace) %{_sysconfdir}/multitail.conf %{_sysconfdir}/multitail/ %{_bindir}/multitail %{_mandir}/man1/multitail.1* %changelog * Sun Oct 2 2016 Daniel Steiner - 6.4.2-1 - Update to 6.4.2 - Initial build for CentOS 7.