perl-JSON-XS-vl.spec 4.8 KB

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