.gear/librsync.spec | 152 +++++++++++++++++++++++++++++++++++++++++++++++++ .gear/rules | 3 + .gear/tags/list | 1 + .gear/upstream/remotes | 3 + 4 files changed, 159 insertions(+) diff --git a/.gear/librsync.spec b/.gear/librsync.spec new file mode 100644 index 0000000..4e84b2d --- /dev/null +++ b/.gear/librsync.spec @@ -0,0 +1,152 @@ +%define _unpackaged_files_terminate_build 1 + +%def_with check +%def_with doc + +Name: librsync +Version: 2.3.4 +Release: alt1 + +Summary: remote delta-compression library +License: LGPL-2.1 +Group: System/Libraries + +#https://github.com/librsync/librsync +Url: https://librsync.github.io/ +Source: %name-%version.tar +Patch0: %name-%version-alt.patch + +BuildRequires: cmake +BuildRequires: zlib-devel +BuildRequires: bzlib-devel +BuildRequires: libb2-devel +BuildRequires: libpopt-devel + +%if_with check +BuildRequires: ctest +%endif + +%if_with doc +BuildRequires: doxygen +BuildRequires: graphviz +%endif + +%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 position in the other file +which have the same checksum are likely to be identical, and whatever +remains is the difference. + +This algorithm transfers the differences between two files without needing +both files on the same system. + +librsync is for building other programs that transfer files as efficiently +as rsync. You can use librsync in a program you write to do backups, +distribute binary patches to programs, or sync directories to a server or +between peers. + +This tree also produces the rdiff command that exposes the key operations +of librsync: generating file signatures, generating the delta from a +signature to a new file, and applying the delta to regenerate the new file +given the old file. + +librsync was originally written for the rproxy experiment in +delta-compression for HTTP. librsync is used by: Dropbox, rdiff-backup, +Duplicity, and others. (If you would like to be listed here, let me know.) + +%package devel +Summary: Headers and development libraries for librsync +Group: Development/C +Requires: %name = %EVR + +%description devel +The librsync-devel package contains header files and library necessary for +developing programs based on librsync. + +%if_with doc +%package doc +Summary: Documentation for librsync +Group: Development/Documentation +BuildArch: noarch + +%description doc +This package contains the API documentation for developing applications that +use librsync. +%endif + +%prep +%setup +%patch0 -p1 + +%build +%cmake -DENABLE_TRACE=1 +%cmake_build +%if_with doc +%cmake_build --target doc +%endif + +%install +%cmakeinstall_std + +%check +%cmake_build --target check + +%files +%doc AUTHORS README.md NEWS.md COPYING +%_bindir/* +%_libdir/*.so.* +%_man1dir/* + +%files devel +%_libdir/*.so +%_includedir/* +%_man3dir/* + +%if_with doc +%files doc +%doc %_cmake__builddir/html +%endif + +%changelog +* Mon Mar 27 2023 Egor Ignatov 2.3.4-alt1 +- New version 2.3.4. + +* Wed Apr 20 2022 Egor Ignatov 2.3.2-alt2 +- enable trace (closes: #42493) + +* Tue Jan 11 2022 Egor Ignatov 2.3.2-alt1 +- update to 2.3.2 (closes: #41679) +- gear: change package build scheme + + merge with upstream git + + build from release tag + +* Mon Apr 20 2020 Michael Shigorin 0.9.7-alt5 +- fix build with lcc (and clang: upstream issue #41) + +* Fri Feb 15 2019 Ivan A. Melnikov 0.9.7-alt4 +- synced with Debian librsync-0.9.7-10. +- %%check added. + +* Fri Dec 09 2011 Dmitry V. Levin 0.9.7-alt3 +- Synced with Debian librsync-0.9.7-8. + +* Thu Nov 25 2010 Igor Vlasenko 0.9.7-alt2.qa1 +- rebuild using girar-nmu to require/provide setversion + by request of mithraen@ + +* Wed Nov 18 2009 Vitaly Lipatov 0.9.7-alt2 +- cleanup spec + +* Tue Jul 01 2008 Vitaly Lipatov 0.9.7-alt1 +- cleanup spec, update spec +- add patches from Debian (fixes transfer from 32bit to 64bit host) + +* Mon Nov 28 2005 Vitaly Lipatov 0.9.7-alt0.1 +- initial build for ALT Linux Sisyphus diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..f39c6c5 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +spec: .gear/librsync.spec +tar: v@version@:. +diff: v@version@:. . name=@name@-@version@-alt.patch diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..18f2520 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +e364852674780e43d578e4239128ff7014190ed3 v2.3.4 diff --git a/.gear/upstream/remotes b/.gear/upstream/remotes new file mode 100644 index 0000000..4cf07d2 --- /dev/null +++ b/.gear/upstream/remotes @@ -0,0 +1,3 @@ +[remote "upstream"] + url = https://github.com/librsync/librsync + fetch = +refs/heads/*:refs/remotes/upstream/*