librsync/librsync.spec

Name: librsync
Summary: Library that implements the rsync remote-delta algorithm
Version: 0.9.7
Release: 2
License: LGPL
Group: System Environment/Libraries
URL: http://librsync.sourceforge.net/
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.

CentOS 7 x86_64

The build could not start because the following file is missing: librsync-0.9.7.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: librsync-0.9.7.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Martin Pool <mbp$sourcefrog,net>
# Upstream: <librsync-devel$lists,sf,net>

Summary: Library that implements the rsync remote-delta algorithm
Name: librsync
Version: 0.9.7
Release: 2%{?dist}
License: LGPL
Group: System Environment/Libraries
URL: http://librsync.sourceforge.net/

Source: http://dl.sf.net/librsync/librsync-%{version}.tar.gz
Patch0: librsync-0.9.7-largefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

Obsoletes: libhsync <= %{version}
Provides: rdiff = %{version}-%{release}
Obsoletes: rdiff <= %{version}-%{release}

## FIXME: configure checks for gcc-c++ but doesn't seem to use it
BuildRequires: gcc-c++

%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: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup
%patch0 -p0

%build
%configure \
%ifnarch %{ix86}
	--with-pic
%endif

%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"
%{__install} -Dp -m0755 rdiff %{buildroot}%{_bindir}/rdiff

%clean
%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-, root, root, 0755)
%doc AUTHORS COPYING NEWS README
%doc %{_mandir}/man1/rdiff.1*
%{_bindir}/rdiff
#%{_libdir}/*.so.*

%files devel
%defattr(-, root, root, 0755)
%doc %{_mandir}/man3/librsync.3*
%{_includedir}/*.h
%{_libdir}/librsync.a
%exclude %{_libdir}/librsync.la

%changelog
* Mon Dec 18 2006 Dag Wieers <dag@wieers.com> - 0.9.7-2
- Added largefile support patch.

* Sun Sep 11 2005 Dag Wieers <dag@wieers.com> - 0.9.7-1
- Updated to release 0.9.7.

* Mon Aug 02 2004 Dag Wieers <dag@wieers.com> - 0.9.6-3
- Added -fPIC for x86_64.

* Wed May 05 2004 Dag Wieers <dag@wieers.com> - 0.9.6-1
- Cosmetic changes.

* Wed May 05 2004 Wim Vandersmissen <wim@bofh.be> - 0.9.6-0
- Initial package.