diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f087b42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/JSON-4.10.tar.gz b/JSON-4.10.tar.gz new file mode 100644 index 0000000..ed6cdd0 --- /dev/null +++ b/JSON-4.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df8b5143d9a7de99c47b55f1a170bd1f69f711935c186a6dc0ab56dd05758e35 +size 94342 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8a19b65 --- /dev/null +++ b/Makefile @@ -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) diff --git a/README.md b/README.md index 775a46b..897129b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ -# perl-JSON +# perl-JSON (JSON) -3rd Party (Maintained by Koozali) git repo for perl-JSON smeserver \ No newline at end of file +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. diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..80affab --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme11 diff --git a/perl-JSON.spec b/perl-JSON.spec new file mode 100644 index 0000000..8ea623d --- /dev/null +++ b/perl-JSON.spec @@ -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.