Name: dwdiff Version: 2.1.4 Release: 1%{?dist} Summary: Front end to diff for comparing on a per word basis Group: Applications/Text License: GPLv3 URL: http://os.ghalkes.nl/dwdiff.html %if !0%{?os2_version} Source0: http://os.ghalkes.nl/dist/%{name}-%{version}.tgz %else %scm_source github http://github.com/TeLLie/%{name}-os2 %{version}-os2 %endif Requires: diffutils BuildRequires: gcc BuildRequires: gettext BuildRequires: libicu-devel %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 %if !0%{?os2_version} %setup -q %else %scm_setup %endif %build #dwdiff uses its own custom configure script %if 0%{?os2_version} export LDFLAGS="-Zhigh-mem -Zexe -Zomf -Zargs-wild -Zargs-resp" %endif ./configure --prefix=%{_prefix} \ LDLIBS="-lintl8_dll -lcx" \ CFLAGS="%{optflags}" make %{?_smp_mflags} %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 mv %{buildroot}%{_mandir}/nl.UTF-8/man1/dwfilter.1 %{buildroot}%{_mandir}/nl/man1/dwfilter.1 cp -p dwdiff.exe ${RPM_BUILD_ROOT}/%{_bindir} cp -p dwfilter.exe ${RPM_BUILD_ROOT}/%{_bindir} %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/dwdiff.exe %{_bindir}/dwfilter.exe %doc README COPYING Changelog %{_mandir}/man1/dwdiff.1* %{_mandir}/man1/dwfilter.1* %exclude /@unixroot/usr/bin/dwdiff %exclude /@unixroot/usr/bin/dwfilter %lang(nl) %{_mandir}/nl/man1/dwdiff.1* %lang(nl) %{_mandir}/nl/man1/dwfilter.1* %changelog * Mon Dec 14 2020 Elbert Pol - 2.1.4-1 - Updated to latest version * Mon Oct 26 2020 Elbert Pol - 2.1.3-1 - Updated to latest version * Fri Dec 14 2018 Elbert Pol - 2.1.2-1 - First OS/2 rpm release