%define name bsdiff %define version 4.3 %define rel 5 %define release %mkrel %rel Summary: Binary diff/patch utility Name: %name Version: 4.3 Release: 1%release Group: File tools License: BSD URL: http://www.daemonology.net/bsdiff/ Source: http://www.daemonology.net/bsdiff/%name-%version.tar.gz BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: bzip2-devel %description bsdiff and bspatch are tools for building and applying patches to binary files. By using suffix sorting (specifically, Larsson and Sadakane's qsufsort) and taking advantage of how executable files change, bsdiff routinely produces binary patches 50-80%% smaller than those produced by Xdelta, and 15%% smaller than those produced by .RTPatch. These programs were originally named bdiff and bpatch, but the large number of other programs using those names lead to confusion; I'm not sure if the "bs" in refers to "binary software" (because bsdiff produces exceptionally small patches for executable files) or "bytewise subtraction" (which is the key to how well it performs). Feel free to offer other suggestions. %prep %setup -q %build %__cc %optflags -lbz2 bsdiff.c -o bsdiff %__cc %optflags -lbz2 bspatch.c -o bspatch %install rm -rf %{buildroot} install -D -m755 bsdiff %{buildroot}%{_bindir}/bsdiff install -D -m755 bspatch %{buildroot}%{_bindir}/bspatch install -D -m644 bsdiff.1 %{buildroot}%{_mandir}/man1/bsdiff.1 install -D -m644 bspatch.1 %{buildroot}%{_mandir}/man1/bspatch.1 %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/bsdiff %{_bindir}/bspatch %{_mandir}/man1/bsdiff.1* %{_mandir}/man1/bspatch.1* %changelog * Thu Dec 09 2010 Oden Eriksson 4.3-4mdv2011.0 + Revision: 616866 - the mass rebuild of 2010.0 packages * Wed Sep 02 2009 Thierry Vignaud 4.3-3mdv2010.0 + Revision: 424695 - rebuild * Fri Dec 21 2007 Olivier Blin 4.3-2mdv2008.1 + Revision: 136280 - restore BuildRoot + Thierry Vignaud - kill re-definition of %%buildroot on Pixel's request * Sat Mar 03 2007 Anssi Hannula 4.3-2mdv2007.0 + Revision: 131659 - rebuild - Import bsdiff * Sat Mar 18 2006 Anssi Hannula 4.3-1mdk - initial Mandriva release