|
|
fa32ad0 |
%global gitcommit cc63fcd2b23def5ca6b824cdaf7ba6deda3d23de
|
|
|
a90464c |
%{?gitcommit:%global gitcommitshort %(c=%{gitcommit}; echo ${c:0:7})}
|
|
|
a90464c |
|
|
|
8ac090b |
Name: casync
|
|
|
8ac090b |
Version: 1
|
|
|
425241e |
Release: 5%{?gitcommit:.git%{gitcommitshort}}%{?dist}
|
|
|
8ac090b |
Summary: Content Addressable Data Synchronizer
|
|
|
8ac090b |
|
|
|
8ac090b |
License: LGPLv2+
|
|
|
8ac090b |
URL: https://github.com/systemd/casync
|
|
|
a90464c |
%if %{defined gitcommit}
|
|
|
fa32ad0 |
Source0: https://github.com/keszybz/casync/archive/%{?gitcommit}.tar.gz#/%{name}-%{gitcommitshort}.tar.gz
|
|
|
a90464c |
%else
|
|
|
8ac090b |
Source0: https://github.com/systemd/casync/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
a90464c |
%endif
|
|
|
8ac090b |
|
|
|
8ac090b |
BuildRequires: meson
|
|
|
8ac090b |
BuildRequires: gcc
|
|
|
8ac090b |
BuildRequires: pkgconfig(liblzma) >= 5.1.0
|
|
|
8ac090b |
BuildRequires: pkgconfig(libcurl) >= 7.32.0
|
|
|
8ac090b |
BuildRequires: pkgconfig(fuse) >= 2.6
|
|
|
8ac090b |
BuildRequires: libgcrypt-devel
|
|
|
8ac090b |
BuildRequires: libacl-devel
|
|
|
8ac090b |
# for tests
|
|
|
8ac090b |
BuildRequires: rsync
|
|
|
8ac090b |
|
|
|
8ac090b |
%description
|
|
|
8ac090b |
casync provides a way to efficiently transfer files which change over
|
|
|
8ac090b |
time over the internet. It will split a given set into a git-inspired
|
|
|
8ac090b |
content-addressable set of smaller compressed chunks, which can then
|
|
|
8ac090b |
be conveniently transferred using HTTP. On the receiving side those
|
|
|
8ac090b |
chunks will be uncompressed and merged together to recreate the
|
|
|
8ac090b |
original data. When the original data is modified, only the new chunks
|
|
|
8ac090b |
have to be transferred during an update.
|
|
|
8ac090b |
|
|
|
8ac090b |
%prep
|
|
|
a90464c |
%if %{defined gitcommit}
|
|
|
a90464c |
%autosetup -n %{name}-%{gitcommit} -p1
|
|
|
a90464c |
%else
|
|
|
8ac090b |
%autosetup -p1
|
|
|
a90464c |
%endif
|
|
|
8ac090b |
|
|
|
8ac090b |
%build
|
|
|
8ac090b |
%meson
|
|
|
8ac090b |
%meson_build
|
|
|
8ac090b |
|
|
|
8ac090b |
%check
|
|
|
fabde88 |
export LC_CTYPE=C.utf8
|
|
|
fa32ad0 |
%meson_test
|
|
|
8ac090b |
|
|
|
8ac090b |
%install
|
|
|
8ac090b |
%meson_install
|
|
|
8ac090b |
|
|
|
8ac090b |
%files
|
|
|
8ac090b |
%license LICENSE.LGPL2.1
|
|
|
8ac090b |
%doc README.md TODO
|
|
|
8ac090b |
%_bindir/casync
|
|
|
8ac090b |
%dir %_prefix/lib/casync
|
|
|
8ac090b |
%dir %_prefix/lib/casync/protocols
|
|
|
8ac090b |
%_prefix/lib/casync/protocols/casync-ftp
|
|
|
8ac090b |
%_prefix/lib/casync/protocols/casync-http
|
|
|
8ac090b |
%_prefix/lib/casync/protocols/casync-https
|
|
|
8ac090b |
|
|
|
8ac090b |
%changelog
|
|
|
425241e |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1-5.gitcc63fcd
|
|
|
425241e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
425241e |
|
|
|
fa32ad0 |
* Fri Jun 23 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1-4.git
|
|
|
fa32ad0 |
- Pull in fixes for failures on non-amd64 arches
|
|
|
fa32ad0 |
|
|
|
8ac090b |
* Tue Jun 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1-1
|
|
|
8ac090b |
- Initial packaging
|