a5f25e2
Summary:	Binary diff/patch utility
a5f25e2
Name:		bsdiff
a5f25e2
Version:	4.3
1e63b52
Release:	2%{?dist}
a5f25e2
License:	BSD
a5f25e2
Group:		Development/Tools
a5f25e2
Source0:	http://www.daemonology.net/bsdiff/bsdiff-%{version}.tar.gz
a5f25e2
URL:		http://www.daemonology.net/bsdiff/
a5f25e2
BuildRequires:	bzip2-devel
a5f25e2
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a5f25e2
a5f25e2
%description
a5f25e2
bsdiff and bspatch are tools for building and applying patches to binary files.
a5f25e2
By using suffix sorting (specifically, Larsson and Sadakane's qsufsort) and
a5f25e2
taking advantage of how executable files change, bsdiff routinely produces
a5f25e2
binary patches 50-80% smaller than those produced by Xdelta, and 15% smaller
a5f25e2
than those produced by .RTPatch.
a5f25e2
a5f25e2
%prep
a5f25e2
%setup -q
a5f25e2
a5f25e2
%build
a5f25e2
%{__cc} bsdiff.c -o bsdiff ${RPM_OPT_FLAGS} -lbz2
a5f25e2
%{__cc} bspatch.c -o bspatch ${RPM_OPT_FLAGS} -lbz2
a5f25e2
a5f25e2
%install
a5f25e2
rm -rf ${RPM_BUILD_ROOT}
a5f25e2
install -d -m 755 ${RPM_BUILD_ROOT}%{_bindir}
a5f25e2
install -d -m 755 ${RPM_BUILD_ROOT}%{_mandir}/man1
a5f25e2
install -m 755 bsdiff bspatch ${RPM_BUILD_ROOT}%{_bindir}
a5f25e2
install -m 644 bsdiff.1 bspatch.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
a5f25e2
a5f25e2
%clean
a5f25e2
rm -rf ${RPM_BUILD_ROOT}
a5f25e2
a5f25e2
%files
a5f25e2
%defattr(-,root,root)
a5f25e2
%{_bindir}/bsdiff
a5f25e2
%{_bindir}/bspatch
a5f25e2
%{_mandir}/man1/*
a5f25e2
a5f25e2
%changelog
1e63b52
* Mon Sep 11 2006 Jindrich Novy <jnovy@redhat.com> 4.3-2
1e63b52
- rebuild
1e63b52
a5f25e2
* Fri Mar 24 2006 Jindrich Novy <jnovy@redhat.com> 4.3-1
a5f25e2
- initial build