@ -8,19 +8,18 @@
Name: perl-JSON-MaybeXS
Name: perl-JSON-MaybeXS
Summary: Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP
Summary: Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP
Version: 1.004000
Version: 1.004001
Release: 7 %{?dist}
Release: 1 %{?dist}
License: GPL+ or Artistic
License: GPL+ or Artistic
URL: https://metacpan.org/release/JSON-MaybeXS
URL: https://metacpan.org/release/JSON-MaybeXS
Source0: https://cpan.metacpan.org/modules/by-module/JSON/JSON-MaybeXS-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/JSON/JSON-MaybeXS-%{version}.tar.gz
BuildArch: noarch
BuildArch: noarch
# Module Build
# Module Build
BuildRequires: coreutils
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(lib)
BuildRequires: perl(lib)
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(Text::ParseWords)
# Dependencies of bundled ExtUtils::HasCompiler
# Dependencies of bundled ExtUtils::HasCompiler
@ -65,23 +64,33 @@ mutators, so we provide our own "new" method that supports that.
%setup -q -n JSON-MaybeXS-%{version}
%setup -q -n JSON-MaybeXS-%{version}
%build
%build
perl Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags }
%{make_build }
%install
%install
make pure_install DESTDIR=%{buildroot}
%{make_install}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
%{_fixperms} -c %{buildroot}
%check
%check
make test
make test
%files
%files
%license LICENSE
%doc Changes README
%doc Changes README
%{perl_vendorlib}/JSON/
%{perl_vendorlib}/JSON/
%{_mandir}/man3/JSON::MaybeXS.3*
%{_mandir}/man3/JSON::MaybeXS.3*
%changelog
%changelog
* Sat May 2 2020 Paul Howarth <paul@city-fan.org> - 1.004001-1
- Update to 1.004001
- Document when is_bool became available
- Now favouring Cpanel::JSON::XS over JSON::XS in more situations (the former
is always added to prereqs when a compiler is available, although JSON::XS
is still used at runtime if new enough and Cpanel::JSON::XS is not
installed); this makes boolean handling more predictable and consistent
- Package LICENSE file
- Use %%{make_build} and %%{make_install}
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.004000-7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.004000-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild