1 Summary: Colorize stderr in red
7 Source0: https://github.com/albinoloverats/stderred/tarball/master
8 # Source0-md5: 22cc54079d6ca05a4064202c56cfc1af
9 URL: https://github.com/albinoloverats/stderred
10 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13 stderred hooks on write() function from libc in order to colorize all
14 stderr output that goes to terminal thus making it distinguishable
15 from stdout. Basically it wraps text that goes to file with descriptor
16 "2" with proper escape codes making text red.
19 %setup -q -n albinoloverats-stderred-c07cb01
22 %{__cc} stderred.c -D_GNU_SOURCE -Wall -ldl -fPIC -shared %{rpmcflags} -o %{name}.so
25 rm -rf $RPM_BUILD_ROOT
26 install -d $RPM_BUILD_ROOT%{_libdir}
28 install %{name}.so $RPM_BUILD_ROOT%{_libdir}
31 rm -rf $RPM_BUILD_ROOT
34 %defattr(644,root,root,755)
36 %attr(755,root,root) %{_libdir}/%{name}.so