# $Id: wdiff.spec 7981 2009-11-03 03:05:34Z dag $ # Authority: dag Summary: Word-based diff front end Name: wdiff Version: 0.5 Release: 1%{?dist}.art License: GPL Group: Applications/Text URL: http://www.gnu.org/software/wdiff/wdiff.html Packager: Dag Wieers Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Source: http://ftp.gnu.org/gnu/wdiff/wdiff-%{version}.tar.gz Patch0: wdiff-0.5-debian-12.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: autoconf BuildRequires: libtermcap-devel BuildRequires: texinfo %description GNU wdiff is a front-end to GNU diff. It compares two files, finding which words have been deleted or added to the first in order to create the second. It has many output formats and interacts well with terminals and pagers (notably with less). GNU wdiff is particularly useful when two texts differ only by a few words and paragraphs have been refilled. %prep %setup %patch0 -p1 -b .debian %build #autoreconf --force --install --symlink ./configure --prefix="%{_prefix}" --enable-cbars %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} #%{__make} install DESTDIR="%{buildroot}" %{__install} -Dp -m0755 cbars %{buildroot}%{_bindir}/cbars %{__install} -Dp -m0755 wdiff %{buildroot}%{_bindir}/wdiff %{__install} -Dp -m0644 wdiff.info %{buildroot}%{_infodir}/wdiff.info %post if [ -e %{_infodir}/wdiff.info.gz ]; then /sbin/install-info %{_infodir}/wdiff.info.gz %{_infodir}/dir fi %preun if [ -e %{_infodir}/wdiff.info.gz ]; then /sbin/install-info --delete %{_infodir}/wdiff.info.gz %{_infodir}/dir fi %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc BACKLOG ChangeLog COPYING NEWS README NEWS THANKS TODO %doc %{_infodir}/wdiff.info* %{_bindir}/cbars %{_bindir}/wdiff %changelog * Mon Apr 27 2009 Dag Wieers - 0.5-1 - 7981+/dag - Initial package. (using DAR)