Browse code

rsync: Building rsync with system zlib

Building rsync with system zlib instead of
zlib in rsync source code

Change-Id: I142d68c907c351bd1b9a340f42ef343928f71657
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5849
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

Ankit Jain authored on 2018/10/04 02:27:59
Showing 1 changed files
... ...
@@ -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
... ...
@@ -51,6 +53,8 @@ EOF
51 51
 %{_libdir}/systemd/system/rsyncd.service
52 52
 %{_sysconfdir}/rsyncd.conf
53 53
 %changelog
54
+*   Mon Oct 15 2018 Ankit Jain <ankitja@vmware.com> 3.1.3-2
55
+-   Building rsync with system zlib instead of zlib in rsync source
54 56
 *   Tue May 01 2018 Xiaolin Li <xiaolinl@vmware.com> 3.1.3-1
55 57
 -   Updated to version 3.1.3, fix CVE-2018-5764
56 58
 *   Wed Dec 27 2017 Xiaolin Li <xiaolinl@vmware.com> 3.1.2-4