File grc.spec of Package grc
#
# spec file for package grc (Version 1.2)
#
# Copyright 2008 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.
#
Summary: Colouriser to beautify logfiles or output from commands
Name: grc
Version: 1.2
Release: 1
Source0: %{name}_%{version}.tar.bz2
Vendor: %{_vendor}
URL: http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
License: GPL
Requires: python
Group: Productivity/Other
BuildArch: noarch
BuildRoot: %{_builddir}/%{name}-%{version}-build
%description
Colourizers, colormakes and similar programs are
useful for making files or outputs of different
programs more readable by inserting ansi colour
control codes into them.
This program could eventually provide the
functions of many others.
Two programs are provided: grc and grcat. The
main is grcat, which acts as a filter, i.e. taking
standard input, colourising it and writing to
standard output.
%prep
%setup -q
%build
%install
install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/bin
install -m 755 grc $RPM_BUILD_ROOT%{_prefix}/bin
install -m 755 grcat $RPM_BUILD_ROOT%{_prefix}/bin
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/grc
install -m 644 conf.* $RPM_BUILD_ROOT%{_datadir}/grc
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}
install -m 644 grc.conf $RPM_BUILD_ROOT%{_sysconfdir}
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
install -m 644 *.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_bindir}/%{name}at
%config %attr(0644,root,root)%{_sysconfdir}/%{name}.conf
%dir %{_datadir}/%{name}
%attr(0644,root,root)%{_datadir}/%{name}/conf.*
%doc CHANGES CREDITS README TODO Regexp.txt
%doc %{_mandir}/man1/%{name}.1.gz
%doc %{_mandir}/man1/%{name}at.1.gz
%changelog
* Sat Jun 7 2009 Mario GarcĂa H. <code933k@gmail.com> - 1.2
- Initial package.