[packages/perl-Cpanel-JSON-XS] Initial

arekm arekm at pld-linux.org
Wed Apr 1 23:48:51 CEST 2026


commit 43adc9608e95fc23cd59d6ff51490b112f0e0555
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Apr 1 23:48:36 2026 +0200

    Initial

 perl-Cpanel-JSON-XS.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
---
diff --git a/perl-Cpanel-JSON-XS.spec b/perl-Cpanel-JSON-XS.spec
new file mode 100644
index 0000000..512dda5
--- /dev/null
+++ b/perl-Cpanel-JSON-XS.spec
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+
+%define	pdir	Cpanel
+%define	pnam	JSON-XS
+Summary:	Cpanel::JSON::XS - cPanel fork of JSON::XS, fast and correct serializing
+Summary(pl.UTF-8):	Cpanel::JSON::XS - fork cPanel modulu JSON::XS, szybka i poprawna serializacja
+Name:		perl-Cpanel-JSON-XS
+Version:	4.40
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	https://www.cpan.org/modules/by-authors/id/R/RU/RURBAN/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	cc1af777e25e61d134568fb22ef9efe9
+URL:		https://metacpan.org/release/Cpanel-JSON-XS
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Encode
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module converts Perl data structures to JSON and vice versa. Its
+primary goal is to be correct and its secondary goal is to be fast.
+This is the cPanel fork of JSON::XS with additional fixes and
+enhancements.
+
+%description -l pl.UTF-8
+Ten modul konwertuje struktury danych Perla do formatu JSON i
+odwrotnie. Jego podstawowym celem jest poprawne dzialanie, a drugim -
+szybkosc. Jest to fork cPanel modulu JSON::XS z dodatkowymi poprawkami
+i ulepszeniami.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%attr(755,root,root) %{_bindir}/cpanel_json_xs
+%dir %{perl_vendorarch}/Cpanel
+%dir %{perl_vendorarch}/Cpanel/JSON
+%{perl_vendorarch}/Cpanel/JSON/XS
+%{perl_vendorarch}/Cpanel/JSON/XS.pm
+%dir %{perl_vendorarch}/auto/Cpanel
+%dir %{perl_vendorarch}/auto/Cpanel/JSON
+%dir %{perl_vendorarch}/auto/Cpanel/JSON/XS
+%{perl_vendorarch}/auto/Cpanel/JSON/XS/*.so
+%{_mandir}/man1/cpanel_json_xs.1p*
+%{_mandir}/man3/Cpanel::JSON::XS.3pm*
+%{_mandir}/man3/Cpanel::JSON::XS::Boolean.3pm*
+%{_mandir}/man3/Cpanel::JSON::XS::Type.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Cpanel-JSON-XS.git/commitdiff/43adc9608e95fc23cd59d6ff51490b112f0e0555



More information about the pld-cvs-commit mailing list