Building rsync with system zlib instead of
outdated zlib in rsync source code
Change-Id: I565ac1fd3842d990431ec4a8f39c929e78fb0db5
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5848
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 |
-Summary: Fast incremental file transfer. |
|
| 1 |
+Summary: Fast incremental file transfer. |
|
| 2 | 2 |
Name: rsync |
| 3 | 3 |
Version: 3.1.3 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
License: GPLv3+ |
| 6 | 6 |
URL: https://rsync.samba.org/ |
| 7 | 7 |
Source0: https://download.samba.org/pub/rsync/src/%{name}-%{version}.tar.gz
|
| ... | ... |
@@ -9,19 +9,21 @@ Source0: https://download.samba.org/pub/rsync/src/%{name}-%{version}.tar.
|
| 9 | 9 |
Group: Appication/Internet |
| 10 | 10 |
Vendor: VMware, Inc. |
| 11 | 11 |
Distribution: Photon |
| 12 |
+BuildRequires: zlib-devel |
|
| 12 | 13 |
BuildRequires: systemd |
| 14 |
+Requires: zlib |
|
| 13 | 15 |
Requires: systemd |
| 14 | 16 |
%description |
| 15 | 17 |
Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behavior and permit very flexible specification of the set of files to be copied. It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. Rsync is widely used for backups and mirroring and as an improved copy command for everyday use. |
| 16 | 18 |
%prep |
| 17 | 19 |
%setup -q |
| 18 | 20 |
%build |
| 19 |
-%configure --prefix=/usr |
|
| 21 |
+%configure --with-included-zlib=no |
|
| 20 | 22 |
make %{?_smp_mflags}
|
| 21 | 23 |
|
| 22 | 24 |
%install |
| 23 | 25 |
make DESTDIR=%{buildroot} install
|
| 24 |
-mkdir -p %{buildroot}/%{_sysconfdir}
|
|
| 26 |
+mkdir -p %{buildroot}/%{_sysconfdir}
|
|
| 25 | 27 |
touch %{buildroot}/%{_sysconfdir}/rsyncd.conf
|
| 26 | 28 |
|
| 27 | 29 |
mkdir -p %{buildroot}/%{_libdir}/systemd/system
|
| ... | ... |
@@ -54,6 +56,8 @@ make %{?_smp_mflags} check
|
| 54 | 54 |
%{_libdir}/systemd/system/rsyncd.service
|
| 55 | 55 |
%{_sysconfdir}/rsyncd.conf
|
| 56 | 56 |
%changelog |
| 57 |
+* Mon Oct 15 2018 Ankit Jain <ankitja@vmware.com> 3.1.3-2 |
|
| 58 |
+- Building rsync with system zlib instead of outdated zlib in rsync source |
|
| 57 | 59 |
* Tue May 01 2018 Xiaolin Li <xiaolinl@vmware.com> 3.1.3-1 |
| 58 | 60 |
- Updated to version 3.1.3, fix CVE-2018-5764 |
| 59 | 61 |
* Wed Dec 27 2017 Xiaolin Li <xiaolinl@vmware.com> 3.1.2-5 |