Name: perl-JSON-XS-VersionOneAndTwo Version: 0.31 Release: 1%{?dist} Summary: Support versions 1 and 2 of JSON::XS License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/JSON-XS-VersionOneAndTwo/ Source0: http://www.cpan.org/authors/id/L/LB/LBROCARD/JSON-XS-VersionOneAndTwo-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(JSON::XS) BuildRequires: perl(Test::More) Requires: perl(JSON::XS) Requires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description JSON::XS is by far the best JSON module on the CPAN. However, it changed its API at version 2.01. If you have to maintain code which may be run on systems with either version one or two then this is a bit of a pain. This module takes the pain away without sacrificing performance. %prep %setup -q -n JSON-XS-VersionOneAndTwo-%{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 README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sun Feb 19 2017 Dave Cross 0.31-1 - Specfile autogenerated by cpanspec 1.78.