]> git.pld-linux.org Git - SPECS.git/blob - stderred.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / stderred.spec
1 Summary:        Colorize stderr in red
2 Name:           stderred
3 Version:        0.1
4 Release:        1
5 License:        BSD-like
6 Group:          Libraries
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)
11
12 %description
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.
17
18 %prep
19 %setup -q -n albinoloverats-stderred-c07cb01
20
21 %build
22 %{__cc} stderred.c -D_GNU_SOURCE -Wall -ldl -fPIC -shared %{rpmcflags} -o %{name}.so
23
24 %install
25 rm -rf $RPM_BUILD_ROOT
26 install -d $RPM_BUILD_ROOT%{_libdir}
27
28 install %{name}.so $RPM_BUILD_ROOT%{_libdir}
29
30 %clean
31 rm -rf $RPM_BUILD_ROOT
32
33 %files
34 %defattr(644,root,root,755)
35 %doc README.md
36 %attr(755,root,root) %{_libdir}/%{name}.so
This page took 0.124315 seconds and 3 git commands to generate.