perl-JSON-PP-vl.spec 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Name: perl-JSON-PP
  2. Version: 2.27200
  3. Release: 2%{?_dist_release}
  4. Summary: JSON::XS compatible pure-Perl module
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/CPAN-Meta-YAML/
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-PP-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
  10. BuildArch: noarch
  11. BuildRequires: perl(B)
  12. BuildRequires: perl(Carp)
  13. BuildRequires: perl(Exporter)
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. BuildRequires: perl(Getopt::Long)
  16. BuildRequires: perl(Test::More)
  17. BuildRequires: perl(Tie::IxHash)
  18. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  19. Conflicts: perl-JSON < 2.50
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: shaolin
  23. %description
  24. JSON::XS is the fastest and most proper JSON module on CPAN. It is written by
  25. Marc Lehmann in C, so must be compiled and installed in the used environment.
  26. JSON::PP is a pure-Perl module and is compatible with JSON::XS.
  27. %prep
  28. %setup -q -n JSON-PP-%{version}
  29. %build
  30. perl Makefile.PL INSTALLDIRS=perl
  31. make %{?_smp_mflags}
  32. %install
  33. rm -rf %{buildroot}
  34. make pure_install DESTDIR=%{buildroot}
  35. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  36. find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
  37. %{_fixperms} %{buildroot}
  38. %check
  39. make test
  40. %clean
  41. rm -rf %{buildroot}
  42. %files
  43. %defattr(-,root,root,-)
  44. %doc Changes README
  45. %{_bindir}/json_pp
  46. %{perl_privlib}/JSON/
  47. %{_mandir}/man1/json_pp.1*
  48. %{_mandir}/man3/JSON::PP.3pm*
  49. %{_mandir}/man3/JSON::PP::Boolean.3pm*
  50. %changelog
  51. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.27200-2
  52. - rebuild
  53. * Tue Feb 21 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.27200-1
  54. - initial package for Vine Linux
  55. * Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 2.27200-3
  56. - Add buildreqs for perl core modules, which might be dual-lived
  57. * Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.27200-2
  58. - Perl mass rebuild
  59. * Sun May 22 2011 Paul Howarth <paul@city-fan.org> - 2.27200-1
  60. - Update to 2.27200
  61. - Fixed incr_parse decoding string more correctly (CPAN RT#68032)
  62. * Tue Mar 8 2011 Paul Howarth <paul@city-fan.org> - 2.27105-1
  63. - Update to 2.27105
  64. - Removed t/900_pod.t from package because of author test
  65. - Drop buildreq perl(Test::Pod), no longer needed
  66. * Tue Feb 8 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27104-4
  67. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  68. * Thu Jan 27 2011 Paul Howarth <paul@city-fan.org> - 2.27104-3
  69. - Conflict with perl-JSON < 2.50 (#672764)
  70. * Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 2.27104-2
  71. - Sanitize for Fedora submission
  72. * Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 2.27104-1
  73. - Initial RPM version