68 lines
2.1 KiB
RPMSpec
68 lines
2.1 KiB
RPMSpec
Name: perl-JSON
|
|
Version: 4.10
|
|
Release: 2%{?dist}
|
|
Summary: JSON (JavaScript Object Notation) encoder/decoder
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/JSON/
|
|
Source0: http://www.cpan.org/authors/id/I/IS/ISHIGAKI/JSON-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
BuildRequires: perl(inc::Module::Install)
|
|
BuildRequires: perl(JSON::XS) >= 2.34
|
|
BuildRequires: perl(Test::More)
|
|
Requires: perl(JSON::XS) >= 2.34
|
|
Requires: perl(Test::More)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
# not detected by perl prov
|
|
Provides: perl(JSON::backportPP::Boolean)
|
|
|
|
%description
|
|
This module is a thin wrapper for JSON::XS-compatible modules with a few
|
|
additional features. All the backend modules convert a Perl data structure
|
|
to a JSON text and vice versa. This module uses JSON::XS by default, and
|
|
when JSON::XS is not available, falls back on JSON::PP, which is in the
|
|
Perl core since 5.14. If JSON::PP is not available either, this module
|
|
then falls back on JSON::backportPP (which is actually JSON::PP in a
|
|
different .pm file) bundled in the same distribution as this module. You
|
|
can also explicitly specify to use Cpanel::JSON::XS, a fork of JSON::XS by
|
|
Reini Urban.
|
|
|
|
%prep
|
|
%setup -q -n JSON-%{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
|
|
* Tue Jan 21 2025 Jean-Philippe Pialasse <jpp@koozali.org> 4.10-2.sme
|
|
- provides JSON::backportPP::Boolean
|
|
|
|
* Tue Jan 21 2025 Koozali 4.10-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|