Package librsync: Specfile

Name: librsync
Version: 0.9.7
Release: alt1

Summary: rsync remote network-delta algorithm library

License: GPL
Group: Development/C
Url: http://librsync.sourceforge.net/

Packager: Vitaly Lipatov <lav@altlinux.ru>

Source: http://dl.sf.net/%name/%name-%version.tar.bz2

Patch1: librsync-debian-01-manpage.patch
Patch2: librsync-debian-02-4gb.patch

# Automatically added by buildreq on Tue Jul 01 2008
BuildRequires: bzlib-devel gcc-c++ libpopt-devel zlib-devel

%description
librsync is a free software library that implements the rsync remote-delta
algorithm. This algorithm allows efficient remote updates of a file,
without requiring the old and new versions to both be present at the
sending end. The library uses a "streaming" design similar to that of
zlib with the aim of allowing it to be embedded into many different
applications.

%package devel
Summary: Header files for %name
Group: Development/C
Requires: %name = %version-%release

%description devel
This package contain header files for %name.

%prep
%setup -q
%patch1 -p1
%patch2 -p1

%build
%configure --disable-static --enable-shared
%make_build

%install
%makeinstall_std

%post
%post_ldconfig

%postun
%postun_ldconfig

%files
%_bindir/rdiff
%doc AUTHORS README
%_libdir/*.so.*

%files devel
%_includedir/*
%_libdir/*.so
%_man1dir/*
%_man3dir/*

%changelog
* Tue Jul 01 2008 Vitaly Lipatov <lav@altlinux.ru> 0.9.7-alt1
- cleanup spec, update spec
- add patches from Debian (fixes transfer from 32bit to 64bit host)

* Mon Nov 28 2005 Vitaly Lipatov <lav@altlinux.ru> 0.9.7-alt0.1
- initial build for ALT Linux Sisyphus