Blame casync.spec

2789b0e
%global commit b3337dd90b4725052d62d816f0aa433fd467a9d2
2789b0e
%{?commit:%global shortcommit %(c=%{commit}; echo ${c:0:7})}
a90464c
8ac090b
Name:           casync
cbf5eaa
Version:        2
2168f1f
Release:        13%{?commit:.git%{shortcommit}}%{?dist}
8ac090b
Summary:        Content Addressable Data Synchronizer
8ac090b
8ac090b
License:        LGPLv2+
8ac090b
URL:            https://github.com/systemd/casync
2789b0e
%if %{defined commit}
2789b0e
Source0:        https://github.com/keszybz/casync/archive/%{?commit}/casync-%{shortcommit}.tar.gz
a90464c
%else
8ac090b
Source0:        https://github.com/systemd/casync/archive/v%{version}/%{name}-%{version}.tar.gz
a90464c
%endif
8ac090b
960d998
Patch0001:      0001-Copy-FOREACH_STRING-fix-from-systemd.patch
960d998
8ac090b
BuildRequires:  meson
8ac090b
BuildRequires:  gcc
2789b0e
BuildRequires:  pkgconfig(libudev)
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
2789b0e
%autosetup -p1 %{?commit:-n %{name}-%{commit}}
8ac090b
8ac090b
%build
8ac090b
%meson
8ac090b
%meson_build
8ac090b
8ac090b
%check
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
2168f1f
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2-13.gitb3337dd
2168f1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2168f1f
eac16d8
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2-12.gitb3337dd
eac16d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
eac16d8
23bb9c6
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2-11.gitb3337dd
23bb9c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
23bb9c6
2789b0e
* Thu Feb 21 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2-10.gitb3337dd
2789b0e
- Update to snapshot version: the biggest feature addition are:
2789b0e
  * the gc verb
2789b0e
  * support for .caexclude files
2789b0e
  * support for quota project IDs
2789b0e
  Otherwise, this is mostly a lot of bugfixes.
2789b0e
- Fix compilation (#1676286)
2789b0e
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