Change-Id: Ia05cca3cee402cbb2e4536892e6a1c4a93ce59fe
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2821
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
... | ... |
@@ -1,25 +1,26 @@ |
1 |
-Summary: NFS client utils |
|
2 |
-Name: nfs-utils |
|
3 |
-Version: 2.1.1 |
|
4 |
-Release: 1%{?dist} |
|
5 |
-License: GPLv2+ |
|
6 |
-URL: http://sourceforge.net/projects/nfs |
|
7 |
-Group: Applications/Nfs-utils-client |
|
8 |
-Source0: http://downloads.sourceforge.net/nfs/%{name}-%{version}.tar.bz2 |
|
9 |
-%define sha1 nfs-utils=8f86ffef3bfc954f3ef9aee805b35cdca3802b14 |
|
10 |
-Source1: nfs-client.service |
|
11 |
-Source2: nfs-client.target |
|
12 |
-Source3: rpc-statd.service |
|
13 |
-Source4: rpc-statd-notify.service |
|
14 |
-Source5: nfs-utils.defaults |
|
15 |
-Vendor: VMware, Inc. |
|
1 |
+Summary: NFS client utils |
|
2 |
+Name: nfs-utils |
|
3 |
+Version: 2.1.1 |
|
4 |
+Release: 2%{?dist} |
|
5 |
+License: GPLv2+ |
|
6 |
+URL: http://sourceforge.net/projects/nfs |
|
7 |
+Group: Applications/Nfs-utils-client |
|
8 |
+Source0: http://downloads.sourceforge.net/nfs/%{name}-%{version}.tar.bz2 |
|
9 |
+%define sha1 nfs-utils=8f86ffef3bfc954f3ef9aee805b35cdca3802b14 |
|
10 |
+Source1: nfs-client.service |
|
11 |
+Source2: nfs-client.target |
|
12 |
+Source3: rpc-statd.service |
|
13 |
+Source4: rpc-statd-notify.service |
|
14 |
+Source5: nfs-utils.defaults |
|
15 |
+Vendor: VMware, Inc. |
|
16 | 16 |
Distribution: Photon |
17 | 17 |
BuildRequires: krb5 |
18 | 18 |
BuildRequires: libtirpc-devel |
19 |
-Requires: python2-libs |
|
20 |
-Requires: libtirpc |
|
21 |
-Requires: rpcbind |
|
22 |
-Requires: shadow |
|
19 |
+BuildRequires: python3-devel |
|
20 |
+Requires: libtirpc |
|
21 |
+Requires: rpcbind |
|
22 |
+Requires: shadow |
|
23 |
+Requires: python3-libs |
|
23 | 24 |
|
24 | 25 |
%description |
25 | 26 |
The nfs-utils package contains simple nfs client service |
... | ... |
@@ -28,6 +29,7 @@ The nfs-utils package contains simple nfs client service |
28 | 28 |
%setup -q -n %{name}-%{version} |
29 | 29 |
#not prevent statd to start |
30 | 30 |
sed -i "/daemon_init/s:\!::" utils/statd/statd.c |
31 |
+find . -iname "*.py" | xargs -I file sed -i '1s/python/python3/g' file |
|
31 | 32 |
|
32 | 33 |
%build |
33 | 34 |
./configure --prefix=%{_prefix} \ |
... | ... |
@@ -69,6 +71,8 @@ install -m644 systemd/nfs-mountd.service %{buildroot}/lib/systemd/system/ |
69 | 69 |
/lib/systemd/system/* |
70 | 70 |
|
71 | 71 |
%changelog |
72 |
+* Tue May 23 2017 Xiaolin Li <xiaolinl@vmware.com> 2.1.1-2 |
|
73 |
+- Build with python3. |
|
72 | 74 |
* Sat Apr 15 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.1.1-1 |
73 | 75 |
- Update to 2.1.1 |
74 | 76 |
* Fri Dec 16 2016 Nick Shi <nshi@vmware.com> 1.3.3-6 |