55# involve modifications to the back-end packages, but it also makes for
66# consistent results as we're always using the same, most-tested
77# back-end.
8- Summary: Use Cpanel::JSON ::XS with a fallback to JSON ::XS and JSON ::PP
9- Name: perl-JSON -MaybeXS
10- Version: 1.004003
11- Release: 5%{?dist }
12- License: GPL+ OR Artistic
8+
139Vendor: Microsoft Corporation
1410Distribution: Azure Linux
15- URL: https://metacpan.org/release/JSON -MaybeXS
16- Source0: https://cpan.metacpan.org/modules/by-module/JSON /JSON -MaybeXS-%{version }.tar.gz
17-
18- BuildArch: noarch
19-
11+ Name: perl-JSON -MaybeXS
12+ Summary: Use Cpanel::JSON ::XS with a fallback to JSON ::XS and JSON ::PP
13+ Version: 1.004008
14+ Release: 3%{?dist }
15+ License: GPL-1.0-or-later OR Artistic-1.0 -Perl
16+ URL: https://metacpan.org/release/JSON -MaybeXS
17+ Source0: https://cpan.metacpan.org/modules/by-module/JSON /JSON -MaybeXS-%{version }.tar.gz
18+ BuildArch: noarch
2019# Module Build
21- BuildRequires: coreutils
22- BuildRequires: make
23- BuildRequires: perl-generators
24- BuildRequires: perl-interpreter
25- BuildRequires: perl(Carp)
20+ BuildRequires: coreutils
21+ BuildRequires: make
22+ BuildRequires: perl-generators
23+ BuildRequires: perl-interpreter
24+ BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
25+ BuildRequires: perl(lib)
26+ BuildRequires: perl(Text::ParseWords)
2627# Dependencies of bundled ExtUtils::HasCompiler
27- BuildRequires: perl(Config)
28- BuildRequires: perl(Cpanel::JSON ::XS) >= 2.3310
29- BuildRequires: perl(DynaLoader)
30- BuildRequires: perl(Exporter)
31- BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
32- BuildRequires: perl(ExtUtils::Mksymlists)
33- BuildRequires: perl(File::Basename)
34- BuildRequires: perl(File::Spec::Functions)
35- BuildRequires: perl(File::Temp)
36- BuildRequires: perl(Scalar::Util)
37- BuildRequires: perl(Text::ParseWords)
28+ BuildRequires: perl(Config)
29+ BuildRequires: perl(DynaLoader)
30+ BuildRequires: perl(ExtUtils::Mksymlists)
31+ BuildRequires: perl(File::Basename)
32+ BuildRequires: perl(File::Spec::Functions)
33+ BuildRequires: perl(File::Temp)
3834# Module Runtime
39- BuildRequires: perl(base)
40- BuildRequires: perl(lib)
41- BuildRequires: perl(strict)
42- BuildRequires: perl(warnings)
43-
44- %if 0%{?with_check }
45- BuildRequires: perl(JSON ::PP) >= 2.27300
46- BuildRequires: perl(JSON ::XS) >= 3.0
47- BuildRequires: perl(Test::More) >= 0.88
48- BuildRequires: perl(Test::Needs) >= 0.002006
49- BuildRequires: perl(if)
50- %endif
51-
52- # Runtime
53- Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
54- Requires: perl(Cpanel::JSON ::XS) >= 2.3310
35+ BuildRequires: perl(base)
36+ BuildRequires: perl(Carp)
37+ BuildRequires: perl(constant)
38+
39+ BuildRequires: perl(Cpanel::JSON ::XS) >= 2.3310
40+
41+ BuildRequires: perl(Exporter)
42+ BuildRequires: perl(if)
43+ BuildRequires: perl(Scalar::Util)
44+ BuildRequires: perl(strict)
45+ BuildRequires: perl(warnings)
46+ # Test Suite
47+ BuildRequires: perl(JSON ::PP) >= 2.27300
48+ BuildRequires: perl(JSON ::XS) >= 3.0
49+ BuildRequires: perl(Test::More) >= 0.88
50+ BuildRequires: perl(Test::Needs) >= 0.002006
51+ # Dependencies
52+
53+ Requires: perl(Cpanel::JSON ::XS) >= 2.3310
5554
5655%description
5756This module first checks to see if either Cpanel::JSON ::XS or JSON ::XS
@@ -72,10 +71,10 @@ mutators, so we provide our own "new" method that supports that.
7271
7372%build
7473perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
75- %make_build
74+ %{ make_build }
7675
7776%install
78- %make_install
77+ %{ make_install }
7978%{_fixperms } -c %{buildroot }
8079
8180%check
@@ -88,9 +87,54 @@ make test
8887%{_mandir }/man3/JSON ::MaybeXS.3*
8988
9089%changelog
91- * Wed Jan 26 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.004003-5
92- - Initial CBL-Mariner import from Fedora 36 (license: MIT).
93- - License verified.
90+ * Tue May 06 2025 Durga Jagadeesh Palli <v-dpalli@microsoft.com> - 1.004008-3
91+ - Initial Azure Linux import from Fedora 41 (license: MIT)
92+ - License verified
93+
94+ * Tue Aug 13 2024 Paul Howarth <paul@city-fan.org> - 1.004008-2
95+ - Fix runtime dependency on Cpanel::JSON::XS 4.38 (rhbz#2304277)
96+
97+ * Sun Aug 11 2024 Paul Howarth <paul@city-fan.org> - 1.004008-1
98+ - Update to 1.004008
99+ - Improved boolean testing
100+
101+ * Sun Aug 4 2024 Paul Howarth <paul@city-fan.org> - 1.004007-1
102+ - Update to 1.004007
103+ - is_bool() now recognizes core booleans (perl 5.36+); note that JSON::PP
104+ 4.11 and Cpanel::JSON::XS 4.38 are required to properly encode them
105+
106+ * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.004005-5
107+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
108+
109+ * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.004005-4
110+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
111+
112+ * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.004005-3
113+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
114+
115+ * Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.004005-2
116+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
117+
118+ * Sun Apr 30 2023 Paul Howarth <paul@city-fan.org> - 1.004005-1
119+ - Update to 1.004005
120+ - to_json and from_json are now documented (GH#2)
121+
122+ * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.004004-2
123+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
124+
125+ * Tue Sep 20 2022 Paul Howarth <paul@city-fan.org> - 1.004004-1
126+ - Update to 1.004004
127+ - Slight speed optimization for is_bool()
128+ - Use SPDX-format license tag
129+
130+ * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.004003-7
131+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
132+
133+ * Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.004003-6
134+ - Perl 5.36 rebuild
135+
136+ * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.004003-5
137+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
94138
95139* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.004003-4
96140- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0 commit comments