File grc.spec of Package grc

Summary:    Generic Colouriser
Name:       grc
Version:    1.9
Release:    1%{?dist}
License:    GPLv2
Group:      Productivity/Text/Utilities
Source0:    grc_%{version}.tar.gz
Patch0:     grc.conf-apache.patch
URL:        http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-build
Requires:   python >= 2.4
BuildArch:  noarch

%description
Generic Colouriser is yet another colouriser for beautifying your logfiles or output of commands.

%prep
%setup -q
%patch0

%build

%install
./install.sh $RPM_BUILD_ROOT

gzip -9 grc.1 grcat.1
%{__mkdir} -p %{buildroot}%{_mandir}/man1
%{__install} grc.1.gz grcat.1.gz %{buildroot}%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root)
%doc CHANGES COPYING CREDITS README
%config %{_sysconfdir}/grc.conf
%dir %{_datadir}/grc
%{_datadir}/grc/conf.*
%attr(755, root, root) %{_bindir}/grc*
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by