2007-07-02 04:28:37 +02:00
|
|
|
#
|
2009-06-09 10:41:38 +02:00
|
|
|
# spec file for package colordiff (Version 1.0.9)
|
2007-07-02 04:28:37 +02:00
|
|
|
#
|
2009-03-26 02:04:57 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-07-02 04:28:37 +02:00
|
|
|
#
|
2009-03-26 02:04:57 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-07-02 04:28:37 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2009-03-26 02:04:57 +01:00
|
|
|
|
2007-07-02 04:28:37 +02:00
|
|
|
Name: colordiff
|
2009-03-26 02:04:57 +01:00
|
|
|
Url: http://colordiff.sourceforge.net/
|
2009-06-09 10:41:38 +02:00
|
|
|
Version: 1.0.9
|
2007-07-02 04:28:37 +02:00
|
|
|
Release: 1
|
2009-03-26 02:04:57 +01:00
|
|
|
License: GPL v2 or later
|
2007-07-02 04:28:37 +02:00
|
|
|
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
|
2009-06-09 10:41:38 +02:00
|
|
|
%patch
|
2007-07-02 04:28:37 +02:00
|
|
|
|
|
|
|
%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/*
|
2009-06-09 10:41:38 +02:00
|
|
|
%config /etc/colordiffrc
|
2007-07-02 04:28:37 +02:00
|
|
|
|
|
|
|
%changelog
|
2009-06-09 10:41:38 +02:00
|
|
|
* Mon Jun 08 2009 mseben@suse.cz
|
|
|
|
- updated to 1.0.9 version
|
|
|
|
- Fix for Debian bug 513313 incorporated.
|
|
|
|
- set /etc/colordiffrc as config file in spec
|
2009-03-26 02:04:57 +01:00
|
|
|
* Wed Mar 18 2009 mseben@suse.cz
|
|
|
|
- updated to 1.0.8a version
|
|
|
|
- Changes between version 1.0.6a and 1.0.7a
|
|
|
|
- Support introduced for 'wdiff' colourising (thanks to Tom Regner)
|
|
|
|
- Correctly handles undefined HOME (patches from various people).
|
|
|
|
- Support for p4 diffs added by Alexis Layton, plus bug fix for
|
|
|
|
blank first lines
|
|
|
|
- Changes between version 1.0.7a and 1.0.8a
|
|
|
|
- Support for numeric colours added, for 256-colour terminals
|
|
|
|
(thanks to GautamIyer).
|
|
|
|
- Diff-types can now be specified explicitly, for use when
|
|
|
|
diff-type detection doesn't work or isn't possible.
|
|
|
|
- Return diff's exit code, patch from Tim Connors. Allow
|
|
|
|
extraneous diff text to be coloured separately.
|
|
|
|
* Sun Jun 24 2007 bwalle@suse.de
|
2007-07-02 04:28:37 +02:00
|
|
|
- initial SUSE package
|