Make the makecheck run to execute successfully by fixing the module dependency issues.
Change-Id: Idd75be8607cbc68b9dfe676170f48a5e7c57ca9c
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6266
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: IPv4 and IPv6 validation methods |
2 | 2 |
Name: perl-Data-Validate-IP |
3 | 3 |
Version: 0.27 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: GPL+ or Artistic |
6 | 6 |
Group: Development/Libraries |
7 | 7 |
URL: https://metacpan.org/release/Data-Validate-IP |
... | ... |
@@ -12,6 +12,7 @@ Distribution: Photon |
12 | 12 |
BuildArch: noarch |
13 | 13 |
BuildRequires: perl |
14 | 14 |
Requires: perl |
15 |
+BuildRequires: perl-NetAddr-IP |
|
15 | 16 |
Requires: perl-NetAddr-IP |
16 | 17 |
|
17 | 18 |
%description |
... | ... |
@@ -33,6 +34,10 @@ make install DESTDIR=%{buildroot} |
33 | 33 |
find %{buildroot} -name 'perllocal.pod' -delete |
34 | 34 |
|
35 | 35 |
%check |
36 |
+# Install the required perl module - Test::Requires |
|
37 |
+export PERL_MM_USE_DEFAULT=1 |
|
38 |
+echo "yes" | cpan -a |
|
39 |
+cpan -i Test::Requires |
|
36 | 40 |
make test |
37 | 41 |
|
38 | 42 |
%files |
... | ... |
@@ -40,5 +45,7 @@ make test |
40 | 40 |
%{_mandir}/man3/* |
41 | 41 |
|
42 | 42 |
%changelog |
43 |
+* Mon Dec 03 2018 Dweep Advani <dadvani@vmware.com> 0.27-2 |
|
44 |
+- Fixing the makecheck tests |
|
43 | 45 |
* Thu Sep 27 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 0.27-1 |
44 | 46 |
- Initial version. |