dwdiff/dwdiff.spec

Name: dwdiff
Summary: Front end to diff for comparing files on a word per word basis
Version: 2.0
Release: 1
License: OSL 2.0
Group: Applications/Text
URL: http://os.ghalkes.nl/dwdiff.html
Description: dwdiff is a front-end for the diff program that operates at the word level instead of the line level. It is different from wdiff in that it allows the user to specify what should be considered whitespace, and in that it takes an optional list of characters that should be considered delimiters. Delimiters are single characters that are treated as if they are words, even when there is no whitespace separating them from preceding words or delimiters.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

%{?el4:%define _without_dwfilter 1}
%{?el3:%define _without_dwfilter 1}

Summary: Front end to diff for comparing files on a word per word basis
Name: dwdiff
Version: 2.0
Release: 1%{?dist}
License: OSL 2.0
Group: Applications/Text
URL: http://os.ghalkes.nl/dwdiff.html

Source: http://os.ghalkes.nl/dist/dwdiff-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: gettext
%{!?_without_icu36:BuildRequires: libicu-devel >= 3.6}
Requires: diffutils

%description
dwdiff is a front-end for the diff program that operates at the word level
instead of the line level. It is different from wdiff in that it allows the
user to specify what should be considered whitespace, and in that it takes an
optional list of characters that should be considered delimiters. Delimiters
are single characters that are treated as if they are words, even when there
is no whitespace separating them from preceding words or delimiters. 

%prep
%setup

### Remove trailing space so it does not bail out on EL3 and EL4
%{__perl} -pi.orig -e 's|\s+"$|"|' config.pkg

%build
export CFLAGS="%{optflags}"
./configure \
%{?_without_dwfilter:--without-dwfilter} \
%{?_without_icu36:--without-unicode}
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}" prefix="%{buildroot}%{_prefix}"
%find_lang %{name}

### Move nl manpage
%{__install} -Dp -m0644 %{buildroot}%{_mandir}/nl.UTF-8/man1/dwdiff.1 %{buildroot}%{_mandir}/nl/man1/dwdiff.1

### Clean up buildroot
%{__rm} -rf %{buildroot}%{_mandir}/nl.*/man1/

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

%files -f %{name}.lang
%defattr(-, root, root, 0755)
%doc Changelog COPYING README
%doc %{_mandir}/man1/dwdiff.1*
%lang(nl) %{_mandir}/nl/man1/dwdiff.1*
%{_bindir}/dwdiff

%if %{!?_without_dwfilter:1}0
%doc %{_mandir}/man1/dwfilter.1*
%lang(nl) %{_mandir}/nl/man1/dwfilter.1*
%{_bindir}/dwfilter
%endif

%changelog
* Mon Oct 24 2011 Dag Wieers <dag@wieers.com> - 2.0-1
- Updated to release 2.0.

* Sun Jul 25 2010 Dag Wieers <dag@wieers.com> - 1.8.1-1
- Updated to release 1.8.1.

* Wed Jul 07 2010 Dag Wieers <dag@wieers.com> - 1.8-1
- Updated to release 1.8.

* Tue Dec 02 2008 Dag Wieers <dag@wieers.com> - 1.5-1
- Updated to release 1.5.

* Sun Jul 13 2008 Dag Wieers <dag@wieers.com> - 1.4-1
- Initial package. (using DAR)