Summary: Rsync libraries Name: librsync Version: 0.9.7 Release: 3%{?_dist_release} License: LGPL Group: System Environment/Libraries URL: http://librsync.sourceforge.net/ Source: http://dl.sf.net/sourceforge/%{name}/%{name}-%{version}.tar.gz Patch0: librsync-0.9.7-lfs_overflow.patch Patch1: librsync-0.9.7-getopt.patch Patch2: librsync-0.9.7-man_pages.patch Patch3: librsync-0.9.7-format-security.patch BuildRequires: zlib-devel, bzip2-devel, popt, libtool BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description librsync implements the "rsync" algorithm, which allows remote differencing of binary files. librsync computes a delta relative to a file's checksum, so the two files need not both be present to generate a delta. This library was previously known as libhsync up to version 0.9.0. The current version of this package does not implement the rsync network protocol and uses a delta format slightly more efficient than and incompatible with rsync 2.4.6. %package devel Summary: Headers and development libraries for librsync Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel librsync implements the "rsync" algorithm, which allows remote differencing of binary files. librsync computes a delta relative to a file's checksum, so the two files need not both be present to generate a delta. This library was previously known as libhsync up to version 0.9.0. The current version of this package does not implement the rsync network protocol and uses a delta format slightly more efficient than and incompatible with rsync 2.4.6. This package contains header files necessary for developing programs based on librsync. %prep %setup -q %patch0 -p1 -b .lfs_overflow %patch1 -p1 -b .getopt %patch2 -p1 -b .man_pages %patch3 -p1 -b .format-security %build autoreconf -f -i libtoolize --copy --force %configure --enable-shared make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %makeinstall install -D -m 755 .libs/rdiff $RPM_BUILD_ROOT%{_bindir}/rdiff rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{la,a} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{_libdir}/librsync.so.1* %{_bindir}/rdiff %{_mandir}/man1/rdiff.1* %files devel %defattr(-,root,root) %{_libdir}/librsync.so %{_includedir}/* %{_mandir}/man3/librsync.3* %changelog * Fri Jul 04 2014 Toshiharu Kudoh 0.9.7-3 - rebuilt with current environment - added Patch1,2,3 from Fedora rawhide * Sat Apr 30 2011 Toshiharu Kudoh 0.9.7-2 - rebuilt with current environment - run libtoolize --copy --force * Mon Sep 29 2008 Shu KONNO 0.9.7-1vl5 - applied new versioning policy * Mon Jun 25 2007 Daisuke SUZUKI 0.9.7-0vl1 - initial build for Vine Linux * Mon May 07 2007 Robert Scheck 0.9.7-10 - rebuilt * Thu Dec 14 2006 Robert Scheck 0.9.7-9 - removed static library from librsync-devel (#213780) * Mon Oct 09 2006 Gavin Henry 0.9.7-8 - rebuilt * Tue Oct 03 2006 Robert Scheck 0.9.7-7 - rebuilt * Mon Sep 25 2006 Robert Scheck 0.9.7-6 - added an upstream patch to solve a lfs overflow (#207940) * Wed Sep 20 2006 Robert Scheck 0.9.7-5 - some spec file cleanup, added %%{?dist} and rebuild * Sun May 22 2005 Jeremy Katz - 0.9.7-4 - rebuild on all arches * Thu Apr 7 2005 Michael Schwendt - rebuilt * Sun Jan 23 2005 Michael Schwendt - 0:0.9.7-2 - Recreate autotools files with autoreconf to fix x86_64 build. * Wed Nov 10 2004 Adrian Reber - 0:0.9.7-0.fdr.1 - updated to 0.9.7 (#2248) - changed source URL to be downloadable with wget * Fri Aug 8 2003 Ben Escoto 0.9.6-0.fdr.3 - Build no longer requires GNU tools - Install shared library and rdiff executable by default * Sun Jul 20 2003 Ben Escoto 0.9.5.1-0.fdr.2 - Repackaged Laurent Papier's rpm.