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