perl-JSON-XS-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. Name: perl-JSON-XS
  2. Summary: JSON serialising/deserialising, done correctly and fast
  3. Epoch: 1
  4. Version: 2.32
  5. Release: 1%{?_dist_release}
  6. License: GPL+ or Artistic
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/JSON-XS/
  9. Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-%{version}.tar.gz
  10. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  11. BuildRequires: perl(common::sense)
  12. BuildRequires: perl(ExtUtils::MakeMaker)
  13. BuildRequires: perl(Test::More)
  14. Requires: perl(common::sense)
  15. %{?perl_default_filter}
  16. %{?perl_default_subpackage_tests}
  17. %description
  18. This module converts Perl data structures to JSON and vice versa. Its
  19. primary goal is to be correct and its secondary goal is to be fast. To
  20. reach the latter goal it was written in C.
  21. %prep
  22. %setup -q -n JSON-XS-%{version}
  23. sed -i 's/\r//' t/*
  24. perl -pi -e 's|^#!/opt/bin/perl|#!%{__perl}|' eg/*
  25. chmod -c -x eg/*
  26. %build
  27. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  28. make %{?_smp_mflags}
  29. %install
  30. rm -rf %{buildroot}
  31. make pure_install DESTDIR=%{buildroot}
  32. find %{buildroot} -type f -name .packlist -exec rm -f {} +
  33. find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
  34. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  35. %{_fixperms} %{buildroot}/*
  36. %check
  37. make test
  38. %clean
  39. rm -rf %{buildroot}
  40. %files
  41. %doc Changes COPYING README eg/
  42. %{perl_vendorarch}/*
  43. %exclude %dir %{perl_vendorarch}/auto
  44. %{_bindir}/*
  45. %{_mandir}/man[13]/*
  46. %changelog
  47. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1:2.32-1
  48. - initial build for Vine Linux
  49. * Thu Jan 12 2012 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> - 1:2.32-1
  50. - Update to 2.32
  51. - Clean up spec file
  52. * Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:2.30-3
  53. - Perl mass rebuild
  54. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.30-2
  55. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  56. * Mon Oct 11 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1:2.30-1
  57. - update
  58. * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:2.27-2
  59. - Mass rebuild with perl-5.12.0
  60. * Sat Feb 27 2010 Chris Weyl <cweyl@alumni.drew.edu> 1:2.27-1
  61. - update by Fedora::App::MaintainerTools 0.004
  62. - PERL_INSTALL_ROOT => DESTDIR
  63. - added a new br on perl(common::sense) (version 0)
  64. - added a new req on perl(common::sense) (version 0)
  65. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1:2.24-3
  66. - rebuild against perl 5.10.1
  67. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.24-2
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  69. * Tue Jun 02 2009 Chris Weyl <cweyl@alumni.drew.edu> 2.24-1
  70. - auto-update to 2.24 (by cpan-spec-update 0.01)
  71. * Thu Mar 26 2009 Chris Weyl <cweyl@alumni.drew.edu> - 2.2311-4
  72. - Stripping bad provides of private Perl extension libs
  73. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2311-3
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  75. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2311-2
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  77. * Sun Feb 22 2009 Chris Weyl <cweyl@alumni.drew.edu> 2.2311-1
  78. - update to 2.2311
  79. * Sun Sep 07 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.2222-1
  80. - update to the increasingly silly version of 2.2222
  81. - update files to include bin
  82. * Wed Jun 25 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.21-1
  83. - update to 2.21
  84. * Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.2-1
  85. - update to 2.2
  86. * Sun Mar 09 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.01-1
  87. - update to 2.x series before F9
  88. * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.52-3
  89. Rebuild for new perl
  90. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.52-2
  91. - Autorebuild for GCC 4.3
  92. * Wed Oct 17 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.52-1
  93. - update to 1.52
  94. - license tag update: GPL -> GPL+
  95. * Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.43-2
  96. - bump
  97. * Thu Aug 09 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.43-1
  98. - update to 1.43
  99. * Fri Jun 01 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.22-1
  100. - update to 1.22
  101. * Mon May 14 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.21-3
  102. - bump
  103. * Mon May 14 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.21-2
  104. - add eg/ to doc
  105. * Sun May 13 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.21-1
  106. - Specfile autogenerated by cpanspec 1.71.