2007-07-02 04:28:37 +02:00
|
|
|
#
|
2011-09-20 17:55:53 +02:00
|
|
|
# spec file for package colordiff
|
2007-07-02 04:28:37 +02:00
|
|
|
#
|
2017-09-11 10:28:44 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: colordiff
|
2017-09-11 10:28:44 +02:00
|
|
|
Version: 1.0.18
|
2012-02-16 01:57:40 +01:00
|
|
|
Release: 0
|
2007-07-02 04:28:37 +02:00
|
|
|
Summary: Colour-highlighted 'diff' output
|
2012-02-16 01:57:40 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Text/Utilities
|
2015-03-30 14:10:29 +02:00
|
|
|
Url: http://www.colordiff.org
|
|
|
|
Source0: http://www.colordiff.org/%{name}-%{version}.tar.gz
|
2015-12-25 15:11:32 +01:00
|
|
|
Source1: http://www.colordiff.org/%{name}-%{version}.tar.gz.sig
|
|
|
|
Source2: %{name}.keyring
|
2007-07-02 04:28:37 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-08-26 16:57:19 +02:00
|
|
|
%patch0
|
2007-07-02 04:28:37 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2015-03-30 14:10:29 +02:00
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
2015-12-25 15:11:32 +01:00
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}
|
|
|
|
make \
|
|
|
|
INSTALL_DIR=%{buildroot}/%{_bindir} \
|
|
|
|
MAN_DIR=%{buildroot}/%{_mandir}/man1 \
|
|
|
|
ETC_DIR=%{buildroot}%{_sysconfdir} install
|
2015-03-30 14:10:29 +02:00
|
|
|
sed -i -e "s@%{buildroot}@@" %{buildroot}/%{_bindir}/colordiff
|
|
|
|
chmod a-x %{buildroot}/%{_mandir}/man1/colordiff.*
|
2007-07-02 04:28:37 +02:00
|
|
|
|
|
|
|
%files
|
2015-03-30 14:10:29 +02:00
|
|
|
%doc README COPYING CHANGES BUGS colordiffrc colordiffrc-lightbg
|
|
|
|
%config %{_sysconfdir}/colordiffrc
|
2015-12-25 15:11:32 +01:00
|
|
|
%{_bindir}/cdiff
|
|
|
|
%{_bindir}/colordiff
|
|
|
|
%{_mandir}/man1/cdiff.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/colordiff.1%{?ext_man}
|
2007-07-02 04:28:37 +02:00
|
|
|
|
|
|
|
%changelog
|