Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 308e3870da8615aa9f51a8af210ab383 > files > 2

colordiff-1.0.5-1mdk.src.rpm

%define name	colordiff
%define version	1.0.5
%define release	1mdk

Summary:	Wrapper for diff that produces output with syntax highlighting
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Url:		http://colordiff.sourceforge.net/
Source0:	http://download.sourceforge.net/sourceforge/colordiff/%{name}-%{version}.tar.bz2  
Group:		Development/Other
BuildRoot:	%{_tmppath}/%{name}-buildroot
Requires:	diffutils
Requires:	less
Requires:	perl
Requires:	webfetch
BuildArch:	noarch
 
%description
The Perl script colordiff is a wrapper for diff. It produces the same 
output but with syntax highlighting. Color schemes can be customized.

%prep
%setup -q 

%build

%install
%{__install} -m 755 -D cdiff.sh %{buildroot}%{_bindir}/cdiff
%{__install} -m 755 -D colordiff.pl %{buildroot}%{_bindir}/colordiff
%{__install} -m 644 -D colordiff.1 %{buildroot}%{_mandir}/man1/colordiff.1
%{__sed} -i -e 's/banner=yes/banner=no/' colordiffrc*
%{__install} -m 644 -D colordiffrc %{buildroot}%{_sysconfdir}/colordiffrc 

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root)
%doc BUGS CHANGES colordiffrc-lightbg COPYING INSTALL README TODO
%{_bindir}/cdiff
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/colordiffrc
%{_mandir}/man1/colordiff*

%changelog
* Sun Sep 04 2005 David Walluck <walluck@mandriva.org> 1.0.5-1mdk
- 1.0.5
- require diffutils (for diff), and less and webfetch (needed by cdiff)
- add url to Source0
- turn off banner by default
- add full docs and colordiffrc-lightbg
- include cdiff script

* Sat Feb 06 2005 Charles A Edwards <eslrahc@manndrake.org> 1.0.4-2mdk
- bday build

* Mon Jan 05 2004 Charles A Edwards <eslrahc@manndrake.org> 1.0.4-1mdk
- first mdk release