Blame SPECS/perl-JSON-PP.spec

3456cc
%{?scl:%scl_package perl-JSON-PP}
3456cc
3456cc
# Need to provide five digit version numbers until 3.x,
3456cc
# so that BR: perl(JSON::PP) >= 2.27200 etc. will still work
3456cc
%global our_version 2.97
3456cc
%global five_digit_version %(LC_ALL=C; printf '%.5f' '%{our_version}')
3456cc
3456cc
Name:		%{?scl_prefix}perl-JSON-PP
3456cc
Epoch:		1
3456cc
Version:	%{our_version}
3456cc
Release:	3%{?dist}
3456cc
Summary:	JSON::XS compatible pure-Perl module
3456cc
License:	GPL+ or Artistic
3456cc
URL:		http://search.cpan.org/dist/JSON-PP/
3456cc
Source0:	http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/JSON-PP-%{five_digit_version}.tar.gz
3456cc
BuildArch:	noarch
3456cc
# Module Build
3456cc
BuildRequires:	coreutils
3456cc
BuildRequires:	findutils
3456cc
BuildRequires:	make
3456cc
BuildRequires:	%{?scl_prefix}perl-generators
3456cc
BuildRequires:	%{?scl_prefix}perl-interpreter
3456cc
BuildRequires:	%{?scl_prefix}perl(ExtUtils::MakeMaker)
3456cc
BuildRequires:	%{?scl_prefix}perl(lib)
3456cc
# Module Runtime
3456cc
BuildRequires:	%{?scl_prefix}perl(bytes)
3456cc
BuildRequires:	%{?scl_prefix}perl(Carp)
3456cc
BuildRequires:	%{?scl_prefix}perl(constant)
3456cc
BuildRequires:	%{?scl_prefix}perl(Encode)
3456cc
BuildRequires:	%{?scl_prefix}perl(Exporter)
3456cc
BuildRequires:	%{?scl_prefix}perl(Math::BigFloat)
3456cc
BuildRequires:	%{?scl_prefix}perl(Math::BigInt)
3456cc
BuildRequires:	%{?scl_prefix}perl(overload)
3456cc
BuildRequires:	%{?scl_prefix}perl(Scalar::Util) >= 1.08
3456cc
BuildRequires:	%{?scl_prefix}perl(strict)
3456cc
BuildRequires:	%{?scl_prefix}perl(utf8)
3456cc
BuildRequires:	%{?scl_prefix}perl(warnings)
3456cc
# Script Runtime
3456cc
BuildRequires:	%{?scl_prefix}perl(Data::Dumper)
3456cc
BuildRequires:	%{?scl_prefix}perl(Getopt::Long)
3456cc
# Test Suite
3456cc
BuildRequires:	%{?scl_prefix}perl(Test::More)
3456cc
BuildRequires:	%{?scl_prefix}perl(Tie::Array)
3456cc
BuildRequires:	%{?scl_prefix}perl(Tie::Hash)
3456cc
# Optional tests
3456cc
%if !%{defined perl_bootstrap}
3456cc
# Disable non-core dependencies when bootstraping a core module
3456cc
BuildRequires:	%{?scl_prefix}perl(Tie::IxHash)
3456cc
%endif
3456cc
# Runtime
3456cc
Requires:	%{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
3456cc
Requires:	%{?scl_prefix}perl(Data::Dumper)
3456cc
Requires:	%{?scl_prefix}perl(Encode)
3456cc
Requires:	%{?scl_prefix}perl(Math::BigFloat)
3456cc
Requires:	%{?scl_prefix}perl(Math::BigInt)
3456cc
Requires:	%{?scl_prefix}perl(Scalar::Util) >= 1.08
3456cc
Requires:	%{?scl_prefix}perl(utf8)
3456cc
Conflicts:	%{?scl_prefix}perl-JSON < 2.50
3456cc
3456cc
# Provide the five-digit version of the module
3456cc
%if "%{our_version}" != "%{five_digit_version}"
3456cc
Provides:	%{?scl_prefix}perl(JSON::PP) = %{five_digit_version}
3456cc
%global __provides_exclude ^%{?scl_prefix}perl\\(JSON::PP\\)
3456cc
%endif
3456cc
3456cc
%description
3456cc
JSON::XS is the fastest and most proper JSON module on CPAN. It is written by
3456cc
Marc Lehmann in C, so must be compiled and installed in the used environment.
3456cc
3456cc
JSON::PP is a pure-Perl module and is compatible with JSON::XS.
3456cc
3456cc
%prep
3456cc
%setup -q -n JSON-PP-%{five_digit_version}
3456cc
3456cc
%build
3456cc
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'}
3456cc
3456cc
%install
3456cc
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=%{buildroot}%{?scl:'}
3456cc
find %{buildroot} -type f -name .packlist -delete
3456cc
%{_fixperms} -c %{buildroot}
3456cc
3456cc
%check
3456cc
%{?scl:scl enable %{scl} '}make test%{?scl:'}
3456cc
3456cc
%files
3456cc
%doc Changes README
3456cc
%{_bindir}/json_pp
3456cc
%{perl_vendorlib}/JSON/
3456cc
%{_mandir}/man1/json_pp.1*
3456cc
%{_mandir}/man3/JSON::PP.3*
3456cc
%{_mandir}/man3/JSON::PP::Boolean.3*
3456cc
3456cc
%changelog
3456cc
* Tue Dec 19 2017 Petr Pisar <ppisar@redhat.com> - 1:2.97-3
3456cc
- Rebuild without bootstrap
3456cc
3456cc
* Mon Dec 18 2017 Petr Pisar <ppisar@redhat.com> - 1:2.97-2
3456cc
- SCL
3456cc
3456cc
* Tue Nov 21 2017 Paul Howarth <paul@city-fan.org> - 1:2.97-1
3456cc
- Update to 2.97
3456cc
  - Fix is_bool to use blessed() instead of ref()
3456cc
  - Use 5 digit minor version number for a while to avoid confusion (GH#33)
3456cc
- Stick to 2 digit minor version downstream as we already bumped epoch
3456cc
3456cc
* Mon Nov 20 2017 Paul Howarth <paul@city-fan.org> - 1:2.96-1
3456cc
- Update to 2.96
3456cc
  - json_pp now prints an encoded json string (CPAN RT#123653)
3456cc
  - Fix is_bool to use ->isa("JSON::PP::Boolean"), instead of
3456cc
    UNIVERSAL::isa("JSON::PP::Boolean") (GH#34)
3456cc
  - Avoid use of newer Test::More features (CPAN RT#122421)
3456cc
3456cc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.94-4
3456cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3456cc
3456cc
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.94-3
3456cc
- Perl 5.26 re-rebuild of bootstrapped packages
3456cc
3456cc
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.94-2
3456cc
- Perl 5.26 rebuild
3456cc
3456cc
* Mon May 29 2017 Paul Howarth <paul@city-fan.org> - 2.94000-1
3456cc
- Update to 2.94
3456cc
  - Fix a test to support perl 5.6
3456cc
3456cc
* Wed May 17 2017 Paul Howarth <paul@city-fan.org> - 2.93000-1
3456cc
- Update to 2.93
3456cc
  - Changed the number detection logic (experimental)
3456cc
  - Correct 0 handling (GH#23)
3456cc
  - Removed base.pm dependency (GH#5)
3456cc
  - Fixed wrong character offset (CPAN RT#116998)
3456cc
  - Address VAX issues (CPAN RT#118469)
3456cc
  - Various documentation fixes
3456cc
  - Remove . in @INC in json_pp (GH#25, CVE-2016-1238)
3456cc
  - Removed $VAR1 from json_pp output (GH#11)
3456cc
  - Fixed an issue to ignore trailing 0 (GH#29)
3456cc
  - Added Scalar::Util dependency for Perl 5.8+ (CPAN RT#84347)
3456cc
  - Fixed issues spotted by Nicolas Seriot's JSON Test Suite including
3456cc
    experimental UTF-16/32 support and backward incompatible change of
3456cc
    C style comment handling (now disabled by default) (GH#28)
3456cc
  - Moved the guts of JSON::PP::Boolean into lib/JSON/PP/Boolean.pm and gave
3456cc
    it a proper version
3456cc
  - Refactored incremental parser to let it handle incomplete JSON text
3456cc
    properly
3456cc
  - Imported and tweaked tests from JSON.pm
3456cc
  - Minor code clean up
3456cc
  - Fixed not to fail tests under Perl 5.25.* (CPAN RT#119114)
3456cc
  - Reworked documentation, based on the one for JSON::XS
3456cc
  - Let json_pp utility show the version of JSON::PP
3456cc
  - Fix loading order of B module (GH#31)
3456cc
  - Fixed isa tests for bignum
3456cc
- This release by ISHIGAKI → update source URL
3456cc
- Use five-digit version number for rpm to maintain upgrade path
3456cc
- Drop EL-5 support
3456cc
  - Drop BuildRoot: and Group: tags
3456cc
  - Drop explicit buildroot cleaning in %%install section
3456cc
  - Drop explicit %%clean section
3456cc
3456cc
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.27400-5
3456cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3456cc
3456cc
* Tue Aug 02 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.27400-4
3456cc
- Avoid loading optional modules from default . (CVE-2016-1238)
3456cc
3456cc
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.27400-3
3456cc
- Perl 5.24 re-rebuild of bootstrapped packages
3456cc
3456cc
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.27400-2
3456cc
- Perl 5.24 rebuild
3456cc
3456cc
* Mon Apr 25 2016 Paul Howarth <paul@city-fan.org> - 2.27400-1
3456cc
- Update to 2.27400
3456cc
  - Applied and merged long term neglected patches and pull requests
3456cc
  - Modified Makefile.PL to set UNINST=1 if needed on old perls
3456cc
  - Decode decimals to Perl's internal NV type
3456cc
- Simplify find command using -delete
3456cc
3456cc
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.27300-348
3456cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3456cc
3456cc
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27300-347
3456cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3456cc
3456cc
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.27300-346
3456cc
- Perl 5.22 re-rebuild of bootstrapped packages
3456cc
3456cc
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.27300-345
3456cc
- Increase release to favour standalone package
3456cc
3456cc
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.27300-3
3456cc
- Perl 5.22 rebuild
3456cc
3456cc
* Thu Dec 11 2014 Petr Pisar <ppisar@redhat.com> - 2.27300-2
3456cc
- Disable non-core dependencies when bootstraping a core module
3456cc
3456cc
* Wed Oct  8 2014 Paul Howarth <paul@city-fan.org> - 2.27300-1
3456cc
- Update to 2.27300
3456cc
  - Fixed a problem about substr in perl 5.8.6 and below
3456cc
- Classify buildreqs by usage
3456cc
3456cc
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.27203-310
3456cc
- Increase release to favour standalone package
3456cc
3456cc
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.27203-3
3456cc
- Perl 5.20 rebuild
3456cc
3456cc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27203-2
3456cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3456cc
3456cc
* Fri Oct 18 2013 Paul Howarth <paul@city-fan.org> - 2.27203-1
3456cc
- Update to 2.27203
3456cc
  - Fixed return/or in _incr_parse (CPAN RT#86948)
3456cc
- Specify all dependencies
3456cc
3456cc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27202-291
3456cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3456cc
3456cc
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 2.27202-290
3456cc
- Increase release to favour standalone package
3456cc
3456cc
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.27202-2
3456cc
- Perl 5.18 rebuild
3456cc
3456cc
* Wed Mar 13 2013 Paul Howarth <paul@city-fan.org> - 2.27202-1
3456cc
- Update to 2.27202
3456cc
  - Fix test failures due to hash iterator randomization in perl 5.17.6 onwards
3456cc
    (CPAN RT#83421)
3456cc
3456cc
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27200-243
3456cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3456cc
3456cc
* Mon Nov 19 2012 Petr Šabata <contyk@redhat.com> - 2.27200-242
3456cc
- Correct the URL
3456cc
- Add a few missing buildtime dependencies
3456cc
- Drop Getopt::Long dep; json_pp isn't tested
3456cc
3456cc
* Tue Aug 28 2012 Paul Howarth <paul@city-fan.org> - 2.27200-241
3456cc
- BR: perl(base), perl(constant) and perl(lib)
3456cc
- Install to vendor directories
3456cc
- Drop %%defattr, redundant since rpm 4.4
3456cc
- Don't need to remove empty directories from the buildroot
3456cc
3456cc
* Fri Aug 17 2012 Petr Pisar <ppisar@redhat.com> - 2.27200-240
3456cc
- Increase release to replace perl sub-package (bug #848961)
3456cc
3456cc
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27200-6
3456cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3456cc
3456cc
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.27200-5
3456cc
- Perl 5.16 rebuild
3456cc
3456cc
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 2.27200-4
3456cc
- Depend of Data::Dumper
3456cc
3456cc
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 2.27200-3
3456cc
- Add buildreqs for perl core modules, which might be dual-lived
3456cc
3456cc
* Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.27200-2
3456cc
- Perl mass rebuild
3456cc
3456cc
* Sun May 22 2011 Paul Howarth <paul@city-fan.org> - 2.27200-1
3456cc
- Update to 2.27200
3456cc
  - Fixed incr_parse decoding string more correctly (CPAN RT#68032)
3456cc
3456cc
* Tue Mar  8 2011 Paul Howarth <paul@city-fan.org> - 2.27105-1
3456cc
- Update to 2.27105
3456cc
  - Removed t/900_pod.t from package because of author test
3456cc
- Drop buildreq perl(Test::Pod), no longer needed
3456cc
3456cc
* Tue Feb  8 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27104-4
3456cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3456cc
3456cc
* Thu Jan 27 2011 Paul Howarth <paul@city-fan.org> - 2.27104-3
3456cc
- Conflict with perl-JSON < 2.50 (#672764)
3456cc
3456cc
* Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 2.27104-2
3456cc
- Sanitize for Fedora submission
3456cc
3456cc
* Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 2.27104-1
3456cc
- Initial RPM version