ALT repositories
Last updated at Fri, 24 Jul 2020 14:09:54 +0000 | SRPMs: 23857
en ru
SRPMs in branches
hide window
  • 2.0.101.git8595b4d-alt1.1
Group :: Networking/File transfer
Source RPM: casync
Raw spec file

Name: casync
Version: 2.0.219.gita8f6c84
Release: alt1

Summary: Content Addressable Data Synchronizer

Group: Networking/File transfer
License: LGPLv2+

Source: %name-%version.tar
# git://

Patch: %name-%version-%release.patch

%def_enable fuse
%def_enable selinux
%def_enable udev
%def_enable man

%define meson_subst_bool() %{expand:%%{?_enable_%{1}:-D%{1}=true}%%{?_disable_%{1}:-D%{1}=false}}

BuildRequires: meson >= 0.42.0
BuildRequires: gcc
BuildRequires: pkgconfig(liblzma) >= 5.1.0
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libcurl) >= 7.32.0
BuildRequires: pkgconfig(libssl)
BuildRequires: libacl-devel
%{?_enable_fuse:BuildRequires: pkgconfig(fuse) >= 2.6}
%{?_enable_selinux:BuildRequires: pkgconfig(libselinux)}
%{?_enable_udev:BuildRequires: pkgconfig(libudev)}
%{?_enable_man:BuildRequires: python3-module-sphinx}
%{?_enable_man:BuildRequires: python3-module-sphinx-sphinx-build-symlink}
# for tests

%{?_enable_fuse:BuildRequires: fuse}
BuildRequires: rsync

casync provides a way to efficiently transfer files which change over
time over the internet. It will split a given set into a git-inspired
content-addressable set of smaller compressed chunks, which can then
be conveniently transferred using HTTP. On the receiving side those
chunks will be uncompressed and merged together to recreate the
original data. When the original data is modified, only the new chunks
have to be transferred during an update.

%patch -p1

%meson \
--wrap-mode=nodownload \
%{meson_subst_bool fuse} \
%{meson_subst_bool selinux} \
%{meson_subst_bool udev} \
%{meson_subst_bool man} \


#export LC_ALL=en_US.UTF-8

export LC_CTYPE=en_US.UTF-8

# Meson-related macros in ALT are broken!

# (ok, they just make little sense for the purpose of packaging)

# Some of them are actually ninja-build macros and should belong to that package.

# Really. They already do.

# XXX: test 05 (nbd) fails in hasher (same reason?)

#meson_test \

meson test -C %_target_platform \
%ifndef __BTE \ \ \ \ \ \
test-cachunk \
test-cachunker \
test-cachunker-histogram \
test-cadigest \
test-caencoder \
test-camakebst \
test-caorigin \
test-casync \
test-cautil \
test-util \


%dir %_libexecdir/casync
%dir %_libexecdir/casync/protocols

* Tue Nov 12 2019 Arseny Maslennikov <arseny at> 2.0.219.gita8f6c84-alt1
- 2-101-git8595b4d -> 2-219-gita8f6c84.
- Included upstream-provided bash completion.

* Wed Aug 29 2018 Grigory Ustinov <grenka at> 2.0.101.git8595b4d-alt1.1
- NMU: Rebuild with new openssl 1.1.0.

* Tue Feb 20 2018 Arseny Maslennikov <arseny at> 2.0.101.git8595b4d-alt1
- 2-25-git6daefa8 -> 2-101-git8595b4d.
- Built with libudev to leverage new functionality.
- Included upstream NEWS in the package.

* Sat Oct 07 2017 Arseny Maslennikov <arseny at> 2.0.25.git6daefa8-alt1
- Initial build for ALT Sisyphus.

The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.