File wdiff.spec of Package wdiff
#
# spec file for package wdiff
#
# Copyright (c) 2013 SUSE LINUX Products 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
BuildRequires: makeinfo
BuildRequires: ncurses-devel
Url: ftp://mirrors.kernel.org/gnu/wdiff/
Version: 1.2.1
Release: 0
Summary: Display Word Differences Between Text Files
License: GPL-2.0+
Group: Productivity/Text/Utilities
Source: ftp://mirrors.kernel.org/gnu/wdiff/wdiff-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
Recommends: %{name}-lang
%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.
Authors:
--------
Francois Pinard <pinard@iro.umontreal.ca>
Hans Lermen <lermen@fgan.de>
%package lang
Summary: Translations for Wdiff
Group: Productivity/Text/Utilities
Requires: %{name} = %{version}
%description lang
Contains language specific files for of wdiff.
%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="$RPM_OPT_FLAGS -pipe -DPROTOTYPES" \
GETOPT="" \
%configure
make
%install
make "DESTDIR=$RPM_BUILD_ROOT" install
%find_lang %{name}-gnulib
%find_lang %{name}
%files
%defattr(-,root,root)
%doc BACKLOG ChangeLog NEWS README* THANKS TODO ABOUT-NLS AUTHORS COPYING
%{_infodir}/wdiff.info*
/usr/bin/*
%{_mandir}/man1/*
%files lang -f %{name}-gnulib.lang -f %{name}.lang
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%changelog