ba7aad
Name:		perl-JSON-PP
ba7aad
Version:	2.27202
b35d4d
Release:	2%{?dist}
ba7aad
Summary:	JSON::XS compatible pure-Perl module
ba7aad
License:	GPL+ or Artistic
ba7aad
Group:		Development/Libraries
ba7aad
URL:		http://search.cpan.org/dist/JSON-PP/
ba7aad
Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-PP-%{version}.tar.gz
ba7aad
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
ba7aad
BuildArch:	noarch
ba7aad
BuildRequires:	perl(base)
ba7aad
BuildRequires:	perl(Carp)
ba7aad
BuildRequires:	perl(constant)
ba7aad
BuildRequires:	perl(Data::Dumper)
ba7aad
BuildRequires:	perl(Encode)
ba7aad
BuildRequires:	perl(Exporter)
ba7aad
BuildRequires:	perl(ExtUtils::MakeMaker)
ba7aad
BuildRequires:	perl(lib)
ba7aad
BuildRequires:	perl(Math::BigFloat)
ba7aad
BuildRequires:	perl(Math::BigInt)
ba7aad
BuildRequires:	perl(Test::More)
ba7aad
BuildRequires:	perl(Tie::IxHash)
ba7aad
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
ba7aad
Requires:	perl(Data::Dumper)
ba7aad
Conflicts:	perl-JSON < 2.50
ba7aad
ba7aad
%description
ba7aad
JSON::XS is the fastest and most proper JSON module on CPAN. It is written by
ba7aad
Marc Lehmann in C, so must be compiled and installed in the used environment.
ba7aad
ba7aad
JSON::PP is a pure-Perl module and is compatible with JSON::XS.
ba7aad
ba7aad
%prep
ba7aad
%setup -q -n JSON-PP-%{version}
ba7aad
ba7aad
%build
ba7aad
perl Makefile.PL INSTALLDIRS=vendor
ba7aad
make %{?_smp_mflags}
ba7aad
ba7aad
%install
ba7aad
rm -rf %{buildroot}
ba7aad
make pure_install DESTDIR=%{buildroot}
ba7aad
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
ba7aad
%{_fixperms} %{buildroot}
ba7aad
ba7aad
%check
ba7aad
make test
ba7aad
ba7aad
%clean
ba7aad
rm -rf %{buildroot}
ba7aad
ba7aad
%files
ba7aad
%doc Changes README
ba7aad
%{_bindir}/json_pp
ba7aad
%{perl_vendorlib}/JSON/
ba7aad
%{_mandir}/man1/json_pp.1*
ba7aad
%{_mandir}/man3/JSON::PP.3pm*
ba7aad
%{_mandir}/man3/JSON::PP::Boolean.3pm*
ba7aad
ba7aad
%changelog
b35d4d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.27202-2
b35d4d
- Mass rebuild 2013-12-27
b35d4d
ba7aad
* Wed Mar 13 2013 Paul Howarth <paul@city-fan.org> - 2.27202-1
ba7aad
- Update to 2.27202
ba7aad
  - Fix test failures due to hash iterator randomization in perl 5.17.6 onwards
ba7aad
    (CPAN RT#83421)
ba7aad
ba7aad
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27200-243
ba7aad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ba7aad
ba7aad
* Mon Nov 19 2012 Petr Šabata <contyk@redhat.com> - 2.27200-242
ba7aad
- Correct the URL
ba7aad
- Add a few missing buildtime dependencies
ba7aad
- Drop Getopt::Long dep; json_pp isn't tested
ba7aad
ba7aad
* Tue Aug 28 2012 Paul Howarth <paul@city-fan.org> - 2.27200-241
ba7aad
- BR: perl(base), perl(constant) and perl(lib)
ba7aad
- Install to vendor directories
ba7aad
- Drop %%defattr, redundant since rpm 4.4
ba7aad
- Don't need to remove empty directories from the buildroot
ba7aad
ba7aad
* Fri Aug 17 2012 Petr Pisar <ppisar@redhat.com> - 2.27200-240
ba7aad
- Increase release to replace perl sub-package (bug #848961)
ba7aad
ba7aad
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27200-6
ba7aad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ba7aad
ba7aad
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.27200-5
ba7aad
- Perl 5.16 rebuild
ba7aad
ba7aad
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 2.27200-4
ba7aad
- Depend of Data::Dumper
ba7aad
ba7aad
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 2.27200-3
ba7aad
- Add buildreqs for perl core modules, which might be dual-lived
ba7aad
ba7aad
* Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.27200-2
ba7aad
- Perl mass rebuild
ba7aad
ba7aad
* Sun May 22 2011 Paul Howarth <paul@city-fan.org> - 2.27200-1
ba7aad
- Update to 2.27200
ba7aad
  - Fixed incr_parse decoding string more correctly (CPAN RT#68032)
ba7aad
ba7aad
* Tue Mar  8 2011 Paul Howarth <paul@city-fan.org> - 2.27105-1
ba7aad
- Update to 2.27105
ba7aad
  - Removed t/900_pod.t from package because of author test
ba7aad
- Drop buildreq perl(Test::Pod), no longer needed
ba7aad
ba7aad
* Tue Feb  8 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27104-4
ba7aad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ba7aad
ba7aad
* Thu Jan 27 2011 Paul Howarth <paul@city-fan.org> - 2.27104-3
ba7aad
- Conflict with perl-JSON < 2.50 (#672764)
ba7aad
ba7aad
* Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 2.27104-2
ba7aad
- Sanitize for Fedora submission
ba7aad
ba7aad
* Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 2.27104-1
ba7aad
- Initial RPM version