0e9409d
Name:    dwdiff       
405a91e
Version: 1.7
e6fb393
Release: 2%{?dist}
ec31e38
Summary: Front end to diff for comparing on a per word basis
0e9409d
0e9409d
Group:   Applications/Text       
405a91e
License: GPLv3
0e9409d
URL:     http://os.ghalkes.nl/dwdiff.html
0e9409d
Source0: http://os.ghalkes.nl/dist/%{name}-%{version}.tgz
0e9409d
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0e9409d
0e9409d
Requires: diffutils
0e9409d
BuildRequires: gettext
dff640c
BuildRequires: libicu-devel
0e9409d
bf503d5
Patch0: dwdiff-localedir.patch
bf503d5
0e9409d
%description
0e9409d
dwdiff is a front-end for the diff program that operates at the word level
0e9409d
instead of the line level. It is different from wdiff in that it allows the
0e9409d
user to specify what should be considered whitespace, and in that it takes an
0e9409d
optional list of characters that should be considered delimiters. Delimiters
0e9409d
are single characters that are treated as if they are words, even when there
0e9409d
is no whitespace separating them from preceding words or delimiters. 
0e9409d
0e9409d
%prep
0e9409d
%setup -q
61014e5
%patch0 -p1 -b .localedir
0e9409d
0e9409d
%build
0e9409d
#dwdiff uses its own custom configure script
0e9409d
./configure --prefix=%{?buildroot:%{buildroot}}%{_prefix} \
bf503d5
            --binddir=%{_datadir}/locale CFLAGS="%{optflags}" 
0e9409d
make 
0e9409d
0e9409d
0e9409d
%install
0e9409d
rm -rf %{buildroot}
0e9409d
make install DESTDIR=%{buildroot}
0e9409d
%find_lang %{name}
0e9409d
#get rid of manpages other than UTF8
0e9409d
rm -rf %{buildroot}%{_mandir}/nl.ISO8859-1/man1/
0e9409d
rm -rf %{buildroot}%{_mandir}/nl.ISO8859-15/man1/
0e9409d
mkdir %{buildroot}%{_mandir}/man1/nl/
0e9409d
mv %{buildroot}%{_mandir}/nl.UTF-8/man1/dwdiff.1 %{buildroot}%{_mandir}/nl/man1/dwdiff.1
405a91e
mv %{buildroot}%{_mandir}/nl.UTF-8/man1/dwfilter.1 %{buildroot}%{_mandir}/nl/man1/dwfilter.1
0e9409d
0e9409d
%clean
0e9409d
rm -rf %{buildroot}
0e9409d
0e9409d
%files -f %{name}.lang
0e9409d
%defattr(-,root,root,-)
0e9409d
%{_bindir}/dwdiff
405a91e
%{_bindir}/dwfilter
0e9409d
%doc README COPYING Changelog 
0e9409d
%{_mandir}/man1/dwdiff.1*
405a91e
%{_mandir}/man1/dwfilter.1*
0e9409d
0e9409d
%lang(nl) %{_mandir}/nl/man1/dwdiff.1*
405a91e
%lang(nl) %{_mandir}/nl/man1/dwfilter.1*
0e9409d
0e9409d
%changelog
e6fb393
* Sun Mar 7 2010 Jakub Hrozek <jhrozek@redhat.com> 1.7-2
405a91e
- New upstream release, changed license to GPLv3
405a91e
c755b08
* Sun Nov 8 2009 Jakub Hrozek <jhrozek@redhat.com> 1.6.1-1
c755b08
- New upstream release
c755b08
7da2cf4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-4
7da2cf4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7da2cf4
88ce825
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3
88ce825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
88ce825
85ca9b2
* Tue Dec 16 2008 Jakub Hrozek <jhrozek@redhat.com> 1.5-2
85ca9b2
- Modify the localedir patch to allow build with fuzz=0 and version 1.5
85ca9b2
ec8ad06
* Tue Dec 16 2008 Jakub Hrozek <jhrozek@redhat.com> 1.5-1
ec8ad06
- New upstream release
ec8ad06
ec31e38
* Tue Dec 02 2008 Jakub Hrozek <jhrozek@redhat.com> 1.4-3
ec31e38
- Shorten summary so it's PackageKit friendly
ec31e38
61014e5
* Sun Sep 21 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.4-2
61014e5
- Fix Patch0:/%%patch mismatch.
61014e5
dff640c
* Tue Jul 08 2008 Jakub Hrozek <jhrozek@redhat.com> 1.4-1
dff640c
- New upstream release, which BR: libicu-devel
dff640c
9787386
* Sun Feb 10 2008 Jakub Hrozek <jhrozek@redhat.com> 1.3-2
9787386
- Bump & rebuild for GCC 4.3
9787386
cd04e3c
* Fri Dec 28 2007 Jakub Hrozek <jhrozek@redhat.com> 1.3-1
cd04e3c
- New upstream 
cd04e3c
bf503d5
* Tue Aug  21 2007 Jakub Hrozek <jhrozek@redhat.com> 1.2-5
bf503d5
Fix configure/build to make the package rebuild in mock
bf503d5
672c21c
* Mon Aug  13 2007 Jakub Hrozek <jhrozek@redhat.com> 1.2-4
c608800
Clarified the license tag
c608800
0e9409d
* Thu Oct  12 2006 Jakub Hrozek <jhrozek@redhat.com> 1.2-3
0e9409d
Fixed NL manpages packaging according to BZ #209608 comment #3
0e9409d
0e9409d
* Sat Oct  7 2006 Jakub Hrozek <jhrozek@redhat.com> 1.2-2
0e9409d
Fixed bugs in the specfile according to BZ #209608 comment #1
0e9409d
0e9409d
* Fri Oct  6 2006 Jakub Hrozek <jhrozek@redhat.com> 1.2-1
0e9409d
-initial packaging