Blame casync.spec

cbf5eaa
#global gitcommit cc63fcd2b23def5ca6b824cdaf7ba6deda3d23de
a90464c
%{?gitcommit:%global gitcommitshort %(c=%{gitcommit}; echo ${c:0:7})}
a90464c
8ac090b
Name:           casync
cbf5eaa
Version:        2
4c7a55c
Release:        9%{?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}
cbf5eaa
Source0:        https://github.com/keszybz/casync/archive/%{?gitcommit}/casync-%{shortcommit}.tar.gz
a90464c
%else
8ac090b
Source0:        https://github.com/systemd/casync/archive/v%{version}/%{name}-%{version}.tar.gz
a90464c
%endif
cbf5eaa
Patch0001:      0001-Fix-segv-in-ca_remote_forget_chunk.patch
bd8fca8
Patch0002:      0001-Fix-seed-chunker-discriminator-not-set-78.patch
9f65a5f
Patch0003:      0001-build-check-for-renameat2-copy_file_range-with-_GNU_.patch
8ac090b
8ac090b
BuildRequires:  meson
8ac090b
BuildRequires:  gcc
8ac090b
BuildRequires:  pkgconfig(liblzma) >= 5.1.0
cbf5eaa
BuildRequires:  pkgconfig(libzstd)
cbf5eaa
BuildRequires:  pkgconfig(zlib)
8ac090b
BuildRequires:  pkgconfig(libcurl) >= 7.32.0
8ac090b
BuildRequires:  pkgconfig(fuse) >= 2.6
cbf5eaa
BuildRequires:  pkgconfig(libssl)
90d8a88
BuildRequires:  pkgconfig(libselinux)
8ac090b
BuildRequires:  libacl-devel
cbf5eaa
# for rpm macros
cbf5eaa
BuildRequires:  systemd
8ac090b
# for tests
8ac090b
BuildRequires:  rsync
cbf5eaa
# for the man page
cbf5eaa
BuildRequires:  python3-sphinx
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
cbf5eaa
%_prefix/lib/casync/protocols/casync-sftp
cbf5eaa
%_mandir/man1/casync.1*
cbf5eaa
%_udevrulesdir/75-casync.rules
8ac090b
8ac090b
%changelog
4c7a55c
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2-9
4c7a55c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4c7a55c
c30bdaf
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2-8
c30bdaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c30bdaf
9f65a5f
* Mon Jul 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2-7
9f65a5f
- Fix FTBFS by running proper checks
9f65a5f
ea54770
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2-6
ea54770
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ea54770
cdc9c71
* Wed Jan 17 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2-5
cdc9c71
- Rebuild for openssl 1.1
cdc9c71
bd8fca8
* Fri Sep 01 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2-4
bd8fca8
- Backport fix for setting chunk-size
bd8fca8
eeeade8
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2-3
eeeade8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
eeeade8
1efe1bb
* Sun Jul 30 2017 Florian Weimer <fweimer@redhat.com> - 2-2
1efe1bb
- Rebuild with binutils fix for ppc64le (#1475636)
1efe1bb
cbf5eaa
* Wed Jul 26 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2-1
cbf5eaa
- Update to latest version
cbf5eaa
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