diff --git a/multitail-6.5.0.tgz b/multitail-6.5.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..b6a12b5e89537e2d5604947d1e8ed9f3f7fcffbe Binary files /dev/null and b/multitail-6.5.0.tgz differ diff --git a/multitail.spec b/multitail.spec new file mode 100644 index 0000000000000000000000000000000000000000..e99d014fec1ba580830fb23aa8fbaf64e92ee5dd --- /dev/null +++ b/multitail.spec @@ -0,0 +1,66 @@ +Name: multitail +Version: 6.5.0 +Release: 1 +Summary: View one or multiple files like tail but with multiple windows + +# License GPLv2 specified in readme.txt +License: GPLv2 +URL: https://www.vanheusden.com/multitail/ +Source: https://www.vanheusden.com/multitail/multitail-%{version}.tgz + +BuildRequires: gcc +BuildRequires: ncurses-devel + +%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 + +# Fix up examples permissions +chmod 644 conversion-scripts/colors-example.* +chmod 644 conversion-scripts/convert-*.pl + +%build +%make_build CFLAGS="%{optflags}" CONFIG_FILE=%{_sysconfdir}/%{name}.conf + +%install +# Create necessary directories +mkdir -p %{buildroot}%{_sysconfdir} +%make_install PREFIX=%{_prefix} CONFIG_FILE=%{buildroot}%{_sysconfdir}/%{name}.conf + +# move the configuration in the right place +mv -f %{buildroot}%{_sysconfdir}/multitail.conf{.new,} + +# remove the examples (installed as docs) +rm -f %{buildroot}%{_prefix}%{_sysconfdir}/multitail/colors-example.* +mv -f %{buildroot}{%{_prefix},}%{_sysconfdir}/multitail/ + +# remove documentation later catched up by %%doc +rm -rf %{buildroot}%{_docdir}/ + +%files +%license license.txt +%doc manual*.html readme.txt conversion-scripts/colors-example.* +%config(noreplace) %{_sysconfdir}/multitail.conf +%{_sysconfdir}/multitail/ +%{_bindir}/multitail +%{_mandir}/man1/multitail.1* + +%changelog +* Thu Jun 24 2021 Xu Jin - 6.5.0-1 +- Initial package for openEuler