Blob Blame History Raw
%global gitcommit 2434f4cfdeef46d4fddd0b8100bcf947543931e8
%{?gitcommit:%global gitcommitshort %(c=%{gitcommit}; echo ${c:0:7})}

Name:           casync
Version:        1
Release:        3%{?gitcommit:.git%{gitcommitshort}}%{?dist}
Summary:        Content Addressable Data Synchronizer

License:        LGPLv2+
%if %{defined gitcommit}

BuildRequires:  meson
BuildRequires:  gcc
BuildRequires:  pkgconfig(liblzma) >= 5.1.0
BuildRequires:  pkgconfig(libcurl) >= 7.32.0
BuildRequires:  pkgconfig(fuse) >= 2.6
BuildRequires:  libgcrypt-devel
BuildRequires:  libacl-devel
# for tests
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.

%if %{defined gitcommit}
%autosetup -n %{name}-%{gitcommit} -p1
%autosetup -p1


# Some tests currently fail, but are being worked-on upstream.
%meson_test || :


%license LICENSE.LGPL2.1
%doc TODO
%dir %_prefix/lib/casync
%dir %_prefix/lib/casync/protocols

* Tue Jun 20 2017 Zbigniew Jędrzejewski-Szmek <> - 1-1
- Initial packaging