]> git.pld-linux.org Git - packages/librsync.git/blob - librsync.spec
- enable building shared library,
[packages/librsync.git] / librsync.spec
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 BuildRequires:  autoconf
11 BuildRequires:  automake
12 BuildRequires:  gettext
13 BuildRequires:  libtool
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 librsync implements the "rsync" algorithm, which allows remote
18 differencing of binary files. librsync computes a delta relative to a
19 file's checksum, so the two files need not both be present to generate
20 a delta.
21
22 This library was previously known as libhsync up to version 0.9.0.
23
24 The current version of this package does not implement the rsync
25 network protocol and uses a delta format slightly more efficient than
26 and incompatible with rsync 2.4.6.
27
28 %package devel
29 Summary:        Headers and development libraries for librsync
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}
32
33 %description devel
34 librsync implements the "rsync" algorithm, which allows remote
35 differencing of binary files. librsync computes a delta relative to a
36 file's checksum, so the two files need not both be present to generate
37 a delta.
38
39 This library was previously known as libhsync up to version 0.9.0.
40
41 The current version of this package does not implement the rsync
42 network protocol and uses a delta format slightly more efficient than
43 and incompatible with rsync 2.4.6.
44
45 This package contains header files necessary for developing programs
46 based on librsync.
47
48 %package static
49 Summary:        Static librsync library
50 Summary(pl):    Statyczna biblioteka librsync
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}
53
54 %description static
55 Static librsync library.
56
57 %description static -l pl
58 Statyczna biblioteka librsync.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63
64 %build
65 rm -f missing
66 libtoolize --copy --force
67 gettextize --copy --force
68 aclocal
69 autoconf
70 automake -a -c -f
71 %configure \
72         --enable-shared
73
74 %{__make} CFLAGS="%{rpmcflags}"
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80          DESTDIR=$RPM_BUILD_ROOT
81
82 gzip -9nf AUTHORS NEWS README THANKS TODO
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %doc *.gz
93 %attr(755,root,root) %{_bindir}/rdiff
94 %attr(755,root,root) %{_libdir}/lib*.so.*.*
95 %{_mandir}/man1/rdiff.1*
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/lib*.so
100 %attr(755,root,root) %{_libdir}/lib*.la
101 %{_includedir}/*
102 %{_mandir}/man3/*
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/lib*.a
This page took 0.032796 seconds and 3 git commands to generate.