diff --git a/librsync-2.3.0.tar.gz b/librsync-2.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..34450ec68b72acc740aea928b62a6d7a4bd9a82c Binary files /dev/null and b/librsync-2.3.0.tar.gz differ diff --git a/librsync.spec b/librsync.spec new file mode 100644 index 0000000000000000000000000000000000000000..9e44775a10c69a710fc1891efa22fee08808be24 --- /dev/null +++ b/librsync.spec @@ -0,0 +1,74 @@ +Summary: Rsync remote-delta algorithm library +Name: librsync +Version: 2.3.0 +Release: 1%{?dist} +License: LGPLv2+ +URL: https://librsync.github.io/ +Source: https://github.com/%{name}/%{name}/archive/v%{version}/librsync-%{version}.tar.gz +BuildRequires: cmake, gcc, popt-devel + +%description +librsync is a library for calculating and applying network deltas, with an +interface designed to ease integration into diverse network applications. + +librsync encapsulates the core algorithms of the rsync protocol, which help +with efficient calculation of the differences between two files. The rsync +algorithm is different from most differencing algorithms because it does not +require the presence of the two files to calculate the delta. Instead, it +requires a set of checksums of each block of one file, which together form a +signature for that file. Blocks at any in the other file which have the same +checksum are likely to be identical, and whatever remains is the difference. + +%package devel +Summary: Headers and development libraries for librsync +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The librsync-devel package contains header files and library necessary for +developing programs based on librsync. + +%package doc +Summary: Documentation files for %{name} +BuildArch: noarch +BuildRequires: doxygen + +%description doc +librsync is a library for calculating and applying network deltas, with an +interface designed to ease integration into diverse network applications. +This package contains the API documentation for developing applications that +use librsync. + +%prep +%setup -q + +%build +%cmake . +%make_build +%make_build doc + +%install +%make_install + +%check +make check + +%ldconfig_scriptlets + +%files +%license COPYING +%doc AUTHORS NEWS.md README.md +%{_libdir}/%{name}.so.* +%{_bindir}/rdiff +%{_mandir}/man1/rdiff.1* + +%files devel +%{_libdir}/%{name}.so +%{_includedir}/%{name}* +%{_mandir}/man3/%{name}.3* + +%files doc +%doc html + +%changelog +* Tue Dec 23 2021  haomimi - 2.3.0-1   +- package init