]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
perl-JSON: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 16 Feb 2023 16:26:30 +0000 (17:26 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Feb 2023 17:12:22 +0000 (17:12 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
perl-JSON/perl-JSON.nm [new file with mode: 0644]

diff --git a/perl-JSON/perl-JSON.nm b/perl-JSON/perl-JSON.nm
new file mode 100644 (file)
index 0000000..b673ab4
--- /dev/null
@@ -0,0 +1,48 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-JSON
+version    = 4.10
+release    = 1
+arch       = noarch
+thisapp    = JSON-%{version}
+
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/JSON/
+license    = GPL+ or Artistic
+summary    = JSON (JavaScript Object Notation) encoder/decoder.
+
+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.
+end
+
+source_dl  = https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/
+
+build
+       requires
+               perl(ExtUtils::MakeMaker)
+               perl(Test::More)
+       end
+
+       build
+               perl Makefile.PL INSTALLDIRS=perl
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               #make test
+       end
+end
+
+packages
+       package %{name}
+               filter_requires = (JSON::backportPP)
+       end
+end