Change-Id: I637c68975dac5b48928c97a26da5b3ccc9638993
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2597
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Robert Qi <qij@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,44 @@ |
| 0 |
+Summary: Canary to check perl compatibility for Schmorp's modules |
|
| 1 |
+Name: perl-Canary-Stability |
|
| 2 |
+Version: 2012 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: GPL+ or Artistic |
|
| 5 |
+Group: Development/Libraries |
|
| 6 |
+URL: http://search.cpan.org/dist/Canary-Stability/ |
|
| 7 |
+Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Canary-Stability-%{version}.tar.gz
|
|
| 8 |
+%define sha1 Canary-Stability=9d3c5476081da9200ef59cacafea55bd011b6d8a |
|
| 9 |
+Vendor: VMware, Inc. |
|
| 10 |
+Distribution: Photon |
|
| 11 |
+BuildArch: noarch |
|
| 12 |
+BuildRequires: perl |
|
| 13 |
+Requires: perl |
|
| 14 |
+ |
|
| 15 |
+%description |
|
| 16 |
+This module is used by Schmorp's modules during configuration stage to test |
|
| 17 |
+the installed perl for compatibility with his modules. |
|
| 18 |
+ |
|
| 19 |
+%prep |
|
| 20 |
+%setup -q -n Canary-Stability-%{version}
|
|
| 21 |
+ |
|
| 22 |
+%build |
|
| 23 |
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 |
|
| 24 |
+make %{?_smp_mflags}
|
|
| 25 |
+ |
|
| 26 |
+%install |
|
| 27 |
+rm -rf %{buildroot}
|
|
| 28 |
+make pure_install DESTDIR=%{buildroot}
|
|
| 29 |
+%{_fixperms} %{buildroot}/*
|
|
| 30 |
+ |
|
| 31 |
+%check |
|
| 32 |
+make test |
|
| 33 |
+ |
|
| 34 |
+%clean |
|
| 35 |
+rm -rf %{buildroot}
|
|
| 36 |
+ |
|
| 37 |
+%files |
|
| 38 |
+%{perl_vendorlib}/*
|
|
| 39 |
+%{_mandir}/man3/*
|
|
| 40 |
+ |
|
| 41 |
+%changelog |
|
| 42 |
+* Wed Apr 05 2017 Robert Qi <qij@vmware.com> 2012-1 |
|
| 43 |
+- Initial version. |
| ... | ... |
@@ -2,20 +2,23 @@ |
| 2 | 2 |
Summary: JSON serializing/deserializing, done correctly and fast |
| 3 | 3 |
Name: perl-JSON-XS |
| 4 | 4 |
Epoch: 1 |
| 5 |
-Version: 3.01 |
|
| 6 |
-Release: 2%{?dist}
|
|
| 5 |
+Version: 3.03 |
|
| 6 |
+Release: 1%{?dist}
|
|
| 7 | 7 |
License: GPL+ or Artistic |
| 8 | 8 |
Group: Development/Libraries |
| 9 | 9 |
URL: http://search.cpan.org/dist/JSON-XS/ |
| 10 | 10 |
Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-%{version}.tar.gz
|
| 11 |
-%define sha1 JSON-XS=725f67ef1de914a6fdaf99d751aea3018cee492b |
|
| 11 |
+%define sha1 JSON-XS=7d9d8e7c5bec04d60af28faca1f36c90c9d11da9 |
|
| 12 | 12 |
Vendor: VMware, Inc. |
| 13 | 13 |
Distribution: Photon |
| 14 | 14 |
BuildRequires: perl |
| 15 |
-BuildRequires: perl-Types-Serialiser |
|
| 16 |
-BuildRequires: perl-common-sense |
|
| 17 |
-Requires: perl-Types-Serialiser |
|
| 18 |
-Requires: perl-common-sense |
|
| 15 |
+BuildRequires: perl-Canary-Stability |
|
| 16 |
+BuildRequires: perl-Types-Serialiser |
|
| 17 |
+BuildRequires: perl-common-sense |
|
| 18 |
+Requires: perl |
|
| 19 |
+Requires: perl-Canary-Stability |
|
| 20 |
+Requires: perl-Types-Serialiser |
|
| 21 |
+Requires: perl-common-sense |
|
| 19 | 22 |
|
| 20 | 23 |
%description |
| 21 | 24 |
This module converts Perl data structures to JSON and vice versa. Its |
| ... | ... |
@@ -30,16 +33,12 @@ perl -pi -e 's|^#!/opt/bin/perl|#!%{__perl}|' eg/*
|
| 30 | 30 |
chmod -c -x eg/* |
| 31 | 31 |
|
| 32 | 32 |
%build |
| 33 |
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
| 33 |
+export PERL_CANARY_STABILITY_NOPROMPT=1 |
|
| 34 |
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
|
|
| 34 | 35 |
make %{?_smp_mflags}
|
| 35 | 36 |
|
| 36 | 37 |
%install |
| 37 | 38 |
make pure_install DESTDIR=%{buildroot}
|
| 38 |
- |
|
| 39 |
-find %{buildroot} -type f -name .packlist -exec rm -f {} +
|
|
| 40 |
-find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
|
|
| 41 |
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
| 42 |
- |
|
| 43 | 39 |
%{_fixperms} %{buildroot}/*
|
| 44 | 40 |
|
| 45 | 41 |
%check |
| ... | ... |
@@ -52,6 +51,8 @@ make test |
| 52 | 52 |
%{_mandir}/man[13]/*
|
| 53 | 53 |
|
| 54 | 54 |
%changelog |
| 55 |
+* Wed Apr 05 2017 Robert Qi <qij@vmware.com> 3.03-1 |
|
| 56 |
+- Add build requires for perl-Canary-Stability, and pass NO_PACKLIST to Makefile.PL. |
|
| 55 | 57 |
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.01-2 |
| 56 | 58 |
- GA - Bump release of all rpms |
| 57 | 59 |
* Fri Apr 3 2015 Divya Thaluru <dthaluru@vmware.com> 3.01-1 |