%define name colordiff %define version 1.0.9 Summary: Wrapper for diff that produces output with syntax highlighting Name: %{name} Version: %{version} Release: %mkrel 2 License: GPLv2+ Url: http://colordiff.sourceforge.net/ Source0: http://download.sourceforge.net/sourceforge/colordiff/%{name}-%{version}.tar.gz 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 * Thu Dec 09 2010 Oden Eriksson <oeriksson@mandriva.com> 1.0.9-2mdv2011.0 + Revision: 617405 - the mass rebuild of 2010.0 packages * Thu Aug 13 2009 Emmanuel Andry <eandry@mandriva.org> 1.0.9-1mdv2010.0 + Revision: 416111 - New version 1.0.9 * Wed Feb 18 2009 Jérôme Soyer <saispo@mandriva.org> 1.0.8a-1mdv2009.1 + Revision: 342395 - New upstream release * Wed Jul 23 2008 Thierry Vignaud <tv@mandriva.org> 1.0.7-3mdv2009.0 + Revision: 243596 - rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Tue Dec 18 2007 Jérôme Soyer <saispo@mandriva.org> 1.0.7-1mdv2008.1 + Revision: 132040 - New release + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Sat Feb 24 2007 Jérôme Soyer <saispo@mandriva.org> 1.0.6-1mdv2007.0 + Revision: 125249 - New release 1.0.6 - Import colordiff * Mon Sep 05 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 * Sun Feb 06 2005 Charles A Edwards <eslrahc@manndrake.org> 1.0.4-2mdk - bday build