File colormake.spec of Package colormake

# spec file for package colormake
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           colormake
Version:        0.9.20140503
Release:        0
Summary:        Colorize the make output
License:        GPL-2.0+
Group:          Development/Tools/Building
Patch0:         %{name}-clang.patch
Patch1:         %{name}-tests.patch
Patch2:         %{name}-gpp.patch
Patch3:         %{name}-silent-rules.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

A simple wrapper for making the output from make easier to read
(more colorful), and errors easier to find in messy compilations.
It was inspired by Micheal T. Babcock's excellent logcolorize program.

%setup -q -n Colormake-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
sed -i -e 's# make # %{_bindir}/make #g' \
    -e '{perl_vendorlib}/' colormake


install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm0755 %{name}.pl %{buildroot}%{perl_vendorlib}/%{name}.pl
cp -a %{name}-short clmake* %{buildroot}%{_bindir}
install -Dpm0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1


openSUSE Build Service is sponsored by