rsync/rsync.spec

118 lines
3.1 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:16:28 -04:00
Name: rsync
2021-01-22 10:44:22 +08:00
Version: 3.2.3
Release: 4
2019-09-30 11:16:28 -04:00
Summary: Fast incremental file transfer utility
License: GPLv3+
URL: http://rsync.samba.org/
Source0: https://download.samba.org/pub/rsync/src/rsync-%{version}%{?prerelease}.tar.gz
Source1: https://download.samba.org/pub/rsync/src/rsync-patches-%{version}.tar.gz
Source2: rsyncd.socket
Source3: rsyncd.service
Source4: rsyncd.conf
Source5: rsyncd.sysconfig
Source6: rsyncd@.service
BuildRequires: git gcc systemd libacl-devel libattr-devel autoconf popt-devel
2020-07-28 18:45:42 +08:00
BuildRequires: lz4-devel openssl-devel libzstd-devel
2019-09-30 11:16:28 -04:00
Provides: bundled(zlib) = 1.2.8 rsync-daemon
Obsoletes: rsync-daemon
%{?systemd_requires}
2021-01-22 10:44:22 +08:00
Patch1: backport-Work-around-glibc-lchmod-issue-a-better-way.patch
2021-06-18 15:03:14 +08:00
Patch2: backport-CVE-2020-14387-rsync-ssl-Verify-the-hostname-in-the-certificate-whe.patch
2022-08-18 18:53:58 +08:00
Patch3: backport-CVE-2022-37434.patch
Patch4: backport-A-fix-for-the-zlib-fix.patch
Patch5: backport-CVE-2022-29154.patch
2021-01-22 10:44:22 +08:00
2019-09-30 11:16:28 -04:00
%description
Rsync is an open source utility that provides fast incremental file transfer.
It uses the "rsync algorithm" which provides a very fast method for bringing
remote files into sync. It does this by sending just the differences in the
files across the link, without requiring that both sets of files are present
at one of the ends of the link beforehand.
%package_help
%prep
%autosetup -b 1 -n %{name}-%{version} -p1
patch -p1 -i patches/copy-devices.diff
%build
2021-01-22 10:44:22 +08:00
%configure --disable-xxhash
2019-09-30 11:16:28 -04:00
%make_build
2020-07-28 18:45:42 +08:00
%check
make check
chmod -x support/*
2019-09-30 11:16:28 -04:00
%install
%make_install
install -D -m644 %{SOURCE2} %{buildroot}/%{_unitdir}/rsyncd.socket
install -D -m644 %{SOURCE3} %{buildroot}/%{_unitdir}/rsyncd.service
install -D -m644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/rsyncd.conf
install -D -m644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/sysconfig/rsyncd
install -D -m644 %{SOURCE6} %{buildroot}/%{_unitdir}/rsyncd@.service
%pre
%preun
%systemd_preun rsyncd.service
%post
%systemd_post rsyncd.service
%postun
%systemd_postun_with_restart rsyncd.service
%files
%defattr(-,root,root)
2020-07-28 18:45:42 +08:00
%doc tech_report.tex
2019-09-30 11:16:28 -04:00
%doc support/*
%license COPYING
%config(noreplace) %{_sysconfdir}/*.conf
%config(noreplace) %{_sysconfdir}/sysconfig/rsyncd
%{_unitdir}/rsyncd*
2020-07-28 18:45:42 +08:00
%{_bindir}/rsync*
2019-09-30 11:16:28 -04:00
%{_bindir}/rsync
%files help
%{_mandir}/man1/%{name}.1*
2020-07-28 18:45:42 +08:00
%{_mandir}/man1/%{name}-ssl.1*
2019-09-30 11:16:28 -04:00
%{_mandir}/man5/rsyncd.conf.5*
%changelog
* Fri Aug 26 2022 panxiaohe <panxh.life@foxmail.com> - 3.2.3-4
- fix CVE-2022-29154
2022-08-18 18:53:58 +08:00
* Thu Aug 18 2022 fuanan <fuanan3@h-partners.com> - 3.2.3-3
- Fix CVE-2022-37434
2021-06-18 15:03:14 +08:00
* Fri Jun 18 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 3.2.3-2
2022-08-18 18:53:58 +08:00
- Type:CVE
- CVE:CVE-2020-14387
2021-06-18 15:03:14 +08:00
- SUG:NA
- DESC:Fix CVE-2020-14387
2021-01-22 10:44:22 +08:00
* Fri Jan 22 2021 yixiangzhike <zhangxingliang3@huawei.com> - 3.2.3-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update to 3.2.3
2020-07-28 18:45:42 +08:00
* Tue Jul 28 2020 Liquor <lirui130@huawei.com> - 3.2.1-1
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:update to 3.2.1
2019-09-30 11:16:28 -04:00
* Fri Sep 27 2019 chengquan<chengquan3@huawei.com> - 3.1.3-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix spec rule in openeuler
* Mon Sep 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1.3-5
- Package init