forked from librsync/librsync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
librsync.spec
80 lines (64 loc) · 2.14 KB
/
librsync.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Summary: Rsync libraries
Name: librsync
Version: 0.9.7
Release: 1
License: LGPL
Group: System Environment/Libraries
Source: http://prdownloads.sourceforge.net/librsync/librsync-%{version}.tar.gz
URL: http://www.sourceforge.net/projects/librsync
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libtool
BuildRequires: autoconf
BuildRequires: automake
%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}
%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
# The next line is only needed if there are any non-upstream patches. In
# this distribution there are none.
#%patch
%build
./autogen.sh
./configure --prefix=/usr --mandir=/usr/share/man/
make CFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING NEWS README
%{_bindir}/rdiff
%{_mandir}/man3/librsync.3.gz
%{_mandir}/man1/rdiff.1.gz
%files devel
%defattr(-,root,root)
%{_prefix}/include/*
%{_libdir}/librsync.a
%{_libdir}/librsync.la
%changelog