File colordiff.spec of Package colordiff

#
# spec file for package colordiff (Version 1.0.6a)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           colordiff
URL:            http://colordiff.sourceforge.net/
Version:        1.0.6a
Release:        1
License:        GPL
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Productivity/Text/Utilities
Summary:        Colour-highlighted 'diff' output
Source0:        http://colordiff.sourceforge.net/%{name}-%{version}.tar.bz2
Patch0:         colordiff-fix-permission.diff
BuildArch:      noarch

%description
The Perl script colordiff is a wrapper for 'diff' and produces the same
output but with pretty 'syntax' highlighting. Colour schemes can be
customized.



Authors:
--------
    Dave Ewart <davee@sungate.co.uk>

%prep
%setup -q
%patch -p1

%build

%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/etc
make INSTALL_DIR=$RPM_BUILD_ROOT/%{_bindir} \
        MAN_DIR=$RPM_BUILD_ROOT/%{_mandir}/man1 \
        ETC_DIR=$RPM_BUILD_ROOT/etc install
gzip $RPM_BUILD_ROOT/%{_mandir}/man1/*.1
sed -i -e "s@$RPM_BUILD_ROOT@@" $RPM_BUILD_ROOT/%{_bindir}/colordiff
chmod a-x $RPM_BUILD_ROOT/%{_mandir}/man1/colordiff.*

%clean
rm -rf "$RPM_BUILD_ROOT" 

%files
%defattr(-,root,root)
%doc README TODO COPYING CHANGES BUGS colordiffrc colordiffrc-lightbg
%{_bindir}/*
%{_mandir}/man1/*
/etc/colordiffrc

%changelog
* Sun Jun 24 2007 - bwalle@suse.de
- initial SUSE package
openSUSE Build Service is sponsored by