]>
Commit | Line | Data |
---|---|---|
4aa83a90 | 1 | Summary: Rsync libraries |
2 | Name: librsync | |
3 | Version: 0.9.5 | |
4 | Release: 1 | |
5 | License: LGPL | |
6 | Group: Libraries | |
7 | Source0: http://ftp1.sourceforge.net/rproxy/%{name}-%{version}.tar.gz | |
8 | URL: http://www.sf.net/projects/rproxy | |
9 | Patch0: %{name}-am.patch | |
10 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
11 | ||
12 | %description | |
13 | librsync implements the "rsync" algorithm, which allows remote | |
14 | differencing of binary files. librsync computes a delta relative to a | |
15 | file's checksum, so the two files need not both be present to generate | |
16 | a delta. | |
17 | ||
18 | This library was previously known as libhsync up to version 0.9.0. | |
19 | ||
20 | The current version of this package does not implement the rsync | |
21 | network protocol and uses a delta format slightly more efficient than | |
22 | and incompatible with rsync 2.4.6. | |
23 | ||
24 | %package devel | |
25 | Summary: Headers and development libraries for librsync | |
26 | Group: Development/Libraries | |
27 | Requires: %{name} = %{version} | |
28 | ||
29 | %description devel | |
30 | librsync implements the "rsync" algorithm, which allows remote | |
31 | differencing of binary files. librsync computes a delta relative to a | |
32 | file's checksum, so the two files need not both be present to generate | |
33 | a delta. | |
34 | ||
35 | This library was previously known as libhsync up to version 0.9.0. | |
36 | ||
37 | The current version of this package does not implement the rsync | |
38 | network protocol and uses a delta format slightly more efficient than | |
39 | and incompatible with rsync 2.4.6. | |
40 | ||
41 | This package contains header files necessary for developing programs | |
42 | based on librsync. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
46 | %patch0 -p1 | |
47 | ||
48 | %build | |
49 | rm -f missing | |
50 | libtoolize --copy --force | |
51 | gettextize --copy --force | |
52 | aclocal | |
53 | autoconf | |
54 | automake -a -c | |
55 | ||
56 | %configure \ | |
57 | --prefix=%{_prefix} \ | |
58 | --mandir=%{_mandir}/ | |
59 | ||
60 | %{__make} CFLAGS="%{rpmcflags}" | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | %{__make} DESTDIR=$RPM_BUILD_ROOT install | |
65 | gzip -9nf AUTHORS COPYING NEWS README | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post -p /sbin/ldconfig | |
71 | ||
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %attr(755,root,root) %{_bindir}/rdiff | |
77 | %{_mandir}/man1/rdiff.1.gz | |
78 | %doc *.gz | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %{_includedir}/* | |
83 | %{_libdir}/librsync.* | |
84 | %{_mandir}/man3/librsync.3.gz |