File wdiff.spec of Package wdiff

#
# spec file for package wdiff
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           wdiff
Version:        1.2.2
Release:        0
Summary:        Display Word Differences Between Text Files
License:        GPL-2.0+
Group:          Productivity/Text/Utilities
Url:            https://www.gnu.org/software/wdiff/
Source0:        https://ftp.gnu.org/gnu/wdiff/wdiff-%{version}.tar.gz
Source1:        https://ftp.gnu.org/gnu/wdiff/wdiff-%{version}.tar.gz.sig
Source2:        %{name}.keyring
BuildRequires:  makeinfo
BuildRequires:  ncurses-devel
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
wdiff compares two files and finds which words have been deleted or
added to old_file to get new_file. A word is considered to be anything
between whitespace.

Xwdiff is a handy X Window System front-end, based on Tcl/Tk.

%lang_package

%prep
%setup -q

%build
%configure \
  --enable-experimental="mdiff wdiff2 unify"
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%find_lang %{name}-gnulib
%find_lang %{name}

%check
make %{?_smp_mflags} check

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files
%defattr(-,root,root)
%doc BACKLOG ChangeLog NEWS README* THANKS TODO ABOUT-NLS AUTHORS COPYING
%{_bindir}/mdiff
%{_bindir}/unify
%{_bindir}/wdiff
%{_bindir}/wdiff2
%{_infodir}/wdiff.info%{ext_info}
%{_mandir}/man1/mdiff.1%{ext_man}
%{_mandir}/man1/unify.1%{ext_man}
%{_mandir}/man1/wdiff.1%{ext_man}
%{_mandir}/man1/wdiff2.1%{ext_man}

%files lang -f %{name}-gnulib.lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by