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