3 %bcond_without static_libs # static library
6 Summary(pl.UTF-8): Biblioteka rsync
12 #Source0Download: https://github.com/librsync/librsync/releases
14 #Source0: https://github.com/librsync/librsync/archive/v%{version}/%{name}-%{version}.tar.gz
15 Source0: https://github.com/librsync/librsync/archive/v%{version}.tar.gz
16 # Source0-md5: 71d227be94f6fbfc7b6d0fce3ce81861
17 URL: https://librsync.sourceforge.net/
18 BuildRequires: cmake >= 3.6
19 BuildRequires: popt-devel
20 BuildRequires: rpmbuild(macros) >= 1.605
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 librsync implements the "rsync" algorithm, which allows remote
25 differencing of binary files. librsync computes a delta relative to a
26 file's checksum, so the two files need not both be present to generate
29 This library was previously known as libhsync up to version 0.9.0.
31 The current version of this package does not implement the rsync
32 network protocol and uses a delta format slightly more efficient than
33 and incompatible with rsync 2.4.6.
35 %description -l pl.UTF-8
36 librsync jest implementacją algorytmu rsync, pozwalającego na zdalne
37 porównywanie plików binarnych. librsync liczy różnice sum kontrolnych
38 plików, więc nie wymaga obecności obu plików do sprawdzenia różnic.
40 Ta biblioteka była wcześniej znana jako libhsync, do wersji 0.9.0
43 Ta wersja nie ma implementacji sieciowego protokołu rsync i używa
44 formatu delt nieco wydajniejszego i niekompatybilnego z rsyncem w
48 Summary: Headers for librsync
49 Summary(pl.UTF-8): Pliki nagłówkowe librsync
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
54 This package contains header files necessary for developing programs
57 %description devel -l pl.UTF-8
58 Ten pakiet zawiera pliki nagłówkowe potrzebne do budowania programów
62 Summary: Static librsync library
63 Summary(pl.UTF-8): Statyczna biblioteka librsync
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}-%{release}
68 Static librsync library.
70 %description static -l pl.UTF-8
71 Statyczna biblioteka librsync.
77 %if %{with static_libs}
78 install -d build-static
82 -DBUILD_SHARED_LIBS=OFF
95 rm -rf $RPM_BUILD_ROOT
97 %if %{with static_libs}
98 %{__make} -C build-static install \
99 DESTDIR=$RPM_BUILD_ROOT
102 %{__make} -C build install \
103 DESTDIR=$RPM_BUILD_ROOT
106 rm -rf $RPM_BUILD_ROOT
108 %post -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
112 %defattr(644,root,root,755)
113 %doc AUTHORS CONTRIBUTING.md NEWS.md README.md THANKS TODO.md
114 %attr(755,root,root) %{_bindir}/rdiff
115 %attr(755,root,root) %{_libdir}/librsync.so.*.*
116 %attr(755,root,root) %ghost %{_libdir}/librsync.so.2
117 %{_mandir}/man1/rdiff.1*
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/librsync.so
122 %{_includedir}/librsync.h
123 %{_includedir}/librsync_export.h
124 %{_mandir}/man3/librsync.3*
126 %if %{with static_libs}
128 %defattr(644,root,root,755)
129 %{_libdir}/librsync.a