%{!?make_build: %global make_build make %{?_smp_mflags}} %{!?make_install: %global make_install make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p"} # not tagged or released %global srcver 0.3.5 %global commit 5894bbb6b8d4d2bcdd4035a610a76b5eeac6a6c9 %global gitdate 20260601 %global shortcommit %(c=%{commit}; echo ${c:0:7}) #%%global githubproject joakim666/colortail %global githubproject barsnick/colortail Name: colortail Version: %{srcver} Release: 0.2.%{gitdate}.git%{shortcommit}%{?dist}.1sunshine Summary: A tail-like command line utility with colors License: GPLv2 URL: https://github.com/%{githubproject}/ Source0: %{url}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Source1: https://sources.debian.org/data/main/c/colortail/0.3.4+git20191125.ad3bc53-1/debian/colortail.1 BuildRequires: gcc-c++, autoconf, automake %description Colortail works like tail but can optionally read one or more config files where it's specified which patterns results in which colors. Colortail uses regular expressions (see regex(7)) to determine which lines and parts of lines to print in which colors. %prep %setup -q -n %{name}-%{commit} %build ./autogen.sh %configure %make_build %install %make_install install -d %{buildroot}%{_mandir}/man1 install -m644 -p %{SOURCE1} %{buildroot}%{_mandir}/man1/ %{!?_licensedir:%global license %%doc} %files %license COPYING %doc README BUGS AUTHORS example-conf/conf.* %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Mon Jun 01 2026 Moritz Barsnick 0.3.5-0.2.20260601.git5894bbb.1sunshine - switch to my forked sources with various fixes * Fri May 15 2026 Moritz Barsnick 0.3.5-0.1.20250321.git653bbbe.1sunshine - update to 0.3.5 * Sat Oct 12 2024 Moritz Barsnick 0.3.4-0.1.20191125.gitad3bc53.4sunshine - use non-deprecated %%patch macro syntax * Thu May 14 2020 Moritz Barsnick 0.3.4-0.1.20191125.gitad3bc53.3sunshine - add a patch to fix the "-h" option - expand man page with list of colors supported * Thu May 14 2020 Moritz Barsnick 0.3.4-0.1.20191125.gitad3bc53.2sunshine - include man page from Debian package * Tue May 05 2020 Moritz Barsnick 0.3.4-0.1.20191125.gitad3bc53.1sunshine - initial RPM