From 4464b648d331637b79d6ab9291b9154027d7e0d1 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 6 Nov 2012 21:21:46 -0800 Subject: [PATCH] add packaging --- packaging/wdiff.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 packaging/wdiff.spec diff --git a/packaging/wdiff.spec b/packaging/wdiff.spec new file mode 100644 index 0000000..af15aa2 --- /dev/null +++ b/packaging/wdiff.spec @@ -0,0 +1,61 @@ +Name: wdiff +Version: 1.0.1 +Release: 1 +License: GPL-2.0+ +Summary: Display Word Differences Between Text Files +Url: ftp://mirrors.kernel.org/gnu/wdiff/ +Group: Productivity/Text/Utilities +Source: http://alpha.gnu.org/gnu/wdiff/wdiff-%{version}.tar.bz2 +BuildRequires: ncurses-devel +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. + +%package lang +License: GPL-2.0+ +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="%{optflags} -pipe -DPROTOTYPES" \ +GETOPT="" \ +%configure +make + +%install +make "DESTDIR=%{buildroot}" 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 -- 2.7.4