Blob Blame Raw
Name:    dwdiff       
Version: 1.2.1
Release: 5%{?dist}
Summary: Front end to diff for comparing files on a word per word basis

Group:   Applications/Text       
License: OSL 2.0
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires: diffutils
BuildRequires: gettext

Patch0: dwdiff-localedir.patch

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. 

%setup -q
%patch -p1 -b .localedir

#dwdiff uses its own custom configure script
./configure --prefix=%{?buildroot:%{buildroot}}%{_prefix} \
            --binddir=%{_datadir}/locale CFLAGS="%{optflags}" 

rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%find_lang %{name}
#get rid of manpages other than UTF8
rm -rf %{buildroot}%{_mandir}/nl.ISO8859-1/man1/
rm -rf %{buildroot}%{_mandir}/nl.ISO8859-15/man1/
mkdir %{buildroot}%{_mandir}/man1/nl/
mv %{buildroot}%{_mandir}/nl.UTF-8/man1/dwdiff.1 %{buildroot}%{_mandir}/nl/man1/dwdiff.1

rm -rf %{buildroot}

%files -f %{name}.lang
%doc README COPYING Changelog 

%lang(nl) %{_mandir}/nl/man1/dwdiff.1*

* Tue Aug  21 2007 Jakub Hrozek <> 1.2-5
Fix configure/build to make the package rebuild in mock

* Mon Aug  13 2007 Jakub Hrozek <> 1.2-4
Clarified the license tag

* Thu Oct  12 2006 Jakub Hrozek <> 1.2-3
Fixed NL manpages packaging according to BZ #209608 comment #3

* Sat Oct  7 2006 Jakub Hrozek <> 1.2-2
Fixed bugs in the specfile according to BZ #209608 comment #1

* Fri Oct  6 2006 Jakub Hrozek <> 1.2-1
-initial packaging