File wdiff.spec of Package wdiff
#
# spec file for package wdiff
#
# Copyright (c) 2015 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: http://www.gnu.org/software/wdiff/
Source0: ftp://ftp.gnu.org/gnu/wdiff/wdiff-%{version}.tar.gz
Source1: ftp://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
# those autoconf tools never really work, do they?
# error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE
# autoreconf -fi
LIBS=-lncurses \
CFLAGS="%{optflags} -pipe -DPROTOTYPES" \
GETOPT="" \
%configure
make %{?_smp_mflags}
%install
make "DESTDIR=$RPM_BUILD_ROOT" install
%find_lang %{name}-gnulib
%find_lang %{name}
%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
%{_infodir}/wdiff.info*
%{_bindir}/*
%{_mandir}/man1/*
%files lang -f %{name}-gnulib.lang -f %{name}.lang
%defattr(-,root,root)
%changelog