From 0e9409dc0c065b9272f705cd4fd3745397abe983 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Feb 15 2007 22:25:15 +0000 Subject: auto-import dwdiff-1.2.1-3 on branch devel from dwdiff-1.2.1-3.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..b3b005b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +dwdiff-1.2.1.tgz diff --git a/dwdiff.spec b/dwdiff.spec new file mode 100644 index 0000000..c8825a5 --- /dev/null +++ b/dwdiff.spec @@ -0,0 +1,62 @@ +Name: dwdiff +Version: 1.2.1 +Release: 3%{?dist} +Summary: Front end to diff for comparing files on a word per word basis + +Group: Applications/Text +License: OSL +URL: http://os.ghalkes.nl/dwdiff.html +Source0: http://os.ghalkes.nl/dist/%{name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Requires: diffutils +BuildRequires: gettext + +%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 -q + +%build +#dwdiff uses its own custom configure script +./configure --prefix=%{?buildroot:%{buildroot}}%{_prefix} \ + CFLAGS="%{optflags}" +make + + +%install +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 + +%clean +rm -rf %{buildroot} + +%files -f %{name}.lang +%defattr(-,root,root,-) +%{_bindir}/dwdiff +%doc README COPYING Changelog +%{_mandir}/man1/dwdiff.1* + +%lang(nl) %{_mandir}/nl/man1/dwdiff.1* + +%changelog +* 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 diff --git a/sources b/sources index e69de29..f567110 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3e4b6ed3c565d01ab1ca741473142a91 dwdiff-1.2.1.tgz