Name: perl-JSON-MaybeXS Version: 1.003008 Release: 1%{?dist} Summary: Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/JSON-MaybeXS/ Source0: http://www.cpan.org/authors/id/E/ET/ETHER/JSON-MaybeXS-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 0:5.006 BuildRequires: perl(Carp) BuildRequires: perl(Cpanel::JSON::XS) >= 2.3310 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(JSON::PP) >= 2.27300 BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) >= 0.88 Requires: perl(Carp) Requires: perl(Cpanel::JSON::XS) >= 2.3310 Requires: perl(JSON::PP) >= 2.27300 Requires: perl(Scalar::Util) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module first checks to see if either Cpanel::JSON::XS or JSON::XS is already loaded, in which case it uses that module. Otherwise it tries to load Cpanel::JSON::XS, then JSON::XS, then JSON::PP in order, and either uses the first module it finds or throws an error. %prep %setup -q -n JSON-MaybeXS-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes META.json README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sat Feb 04 2017 Dave Cross 1.003008-1 - Specfile autogenerated by cpanspec 1.78.