%global _hardened_build 1 Name: rsync Version: 3.2.3 Release: 4%{?dist} URL: http://rsync.samba.org/ Summary: A program for synchronizing files over a network Source0: https://download.samba.org/pub/rsync/src/rsync-%{version}%{?prerelease}.tar.gz Source1: https://download.samba.org/pub/rsync/src/rsync-patches-%{version}%{?prerelease}.tar.gz Source2: rsyncd.socket Source3: rsyncd.service Source4: rsyncd.conf Source5: rsyncd.sysconfig Source6: rsyncd@.service BuildRequires: gcc gcc-c++ BuildRequires: libacl-devel, libattr-devel, autoconf, popt-devel, systemd BuildRequires: lz4-devel openssl-devel libzstd-devel #Added virtual provide for zlib due to https://fedoraproject.org/wiki/Bundled_Libraries?rd=Packaging:Bundled_Libraries Provides: bundled(zlib) = 1.2.8 License: GPLv3+ #Added temporarily until new rebase Patch0: rsync-3.2.2-ssl-verify-hostname.patch #Added due to rhbz#1873975 - default-acls test fail on s390x due to libacl Patch1: rsync-3.2.2-runtests.patch Patch2: rsync-3.2.3-lchmod.patch %description Rsync uses a reliable algorithm to bring remote and host files into sync very quickly. Rsync is fast because it just sends the differences in the files over the network instead of sending the complete files. Rsync is often used as a very powerful mirroring process or just as a more capable replacement for the rcp command. A technical report which describes the rsync algorithm is included in this package. %package daemon Summary: Service for anonymous access to rsync BuildArch: noarch Requires: %{name} = %{version}-%{release} %{?systemd_requires} %description daemon Rsync can be used to offer read only access to anonymous clients. This package provides the anonymous rsync service. %prep # TAG: for pre versions use %setup -q %setup -q -b 1 #Enable --copy-devices parameter patch -p1 -i patches/copy-devices.diff %patch0 -p1 -b .verify-hostname %patch1 -p1 -b .runtests %patch2 -p1 -b .lchmod %build %configure \ %ifarch x86_64 --enable-asm \ --disable-simd \ %endif --enable-largefile \ --enable-ipv6 \ --enable-locale \ --enable-openssl \ --enable-zstd \ --enable-xxhash \ --enable-lz4 \ --enable-iconv-open \ --enable-iconv \ --enable-acl-support \ --enable-xattr-support %{make_build} %install rm -rf $RPM_BUILD_ROOT %{make_install} INSTALLCMD='install -p' INSTALLMAN='install -p' install -D -m644 %{SOURCE3} $RPM_BUILD_ROOT/%{_unitdir}/rsyncd.service install -D -m644 %{SOURCE2} $RPM_BUILD_ROOT/%{_unitdir}/rsyncd.socket install -D -m644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/rsyncd.conf install -D -m644 %{SOURCE5} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/rsyncd install -D -m644 %{SOURCE6} $RPM_BUILD_ROOT/%{_unitdir}/rsyncd@.service %check make check chmod -x support/* %files %{!?_licensedir:%global license %%doc} %license COPYING %doc support/ tech_report.tex %{_bindir}/%{name} %{_bindir}/%{name}-ssl %{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}-ssl.1* %{_mandir}/man5/rsyncd.conf.5* %config(noreplace) %{_sysconfdir}/rsyncd.conf %files daemon %config(noreplace) %{_sysconfdir}/sysconfig/rsyncd %{_unitdir}/rsyncd.socket %{_unitdir}/rsyncd.service %{_unitdir}/rsyncd@.service %post daemon %systemd_post rsyncd.service %preun daemon %systemd_preun rsyncd.service %postun daemon %systemd_postun_with_restart rsyncd.service %changelog