initial create of smeserver perl JSON on Tue Jan 21 20:26:14 AEDT 2025

This commit is contained in:
Trevor Batley 2025-01-21 20:26:14 +11:00
parent 5fcc24a399
commit 8c3845f656
7 changed files with 112 additions and 2 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.tar.gz filter=lfs diff=lfs merge=lfs -text

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.rpm
*.log
*spec-20*

BIN
JSON-4.10.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
# Makefile for source rpm: perl-JSON
# $Id: Makefile,v 1.1 2016/02/04 12:24:52 vip-ire Exp $
NAME := perl-JSON
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1,3 +1,22 @@
# perl-JSON
# <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> perl-JSON (JSON)
3rd Party (Maintained by Koozali) git repo for perl-JSON smeserver
SMEServer Koozali local git repo for perl-JSON
## Documentation
https://metacpan.org/pod/JSON
## Bugs
CPAN bug report are [here](https://rt.cpan.org/Public/Dist/Display.html?Name=JSON)
Show list of Koozali outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=perl-JSON&product=SME%20Server%2011.X&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED)
## 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.

1
contriborbase Normal file
View File

@ -0,0 +1 @@
sme11

62
perl-JSON.spec Normal file
View File

@ -0,0 +1,62 @@
Name: perl-JSON
Version: 4.10
Release: 1%{?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))
%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 Koozali 4.10-1
- Specfile autogenerated by cpanspec 1.78.