[5743] | 1 | Name: perl-JSON |
---|
| 2 | Summary: Parse and convert to JSON (JavaScript Object Notation) |
---|
| 3 | Version: 2.53 |
---|
[5794] | 4 | Release: 2%{?_dist_release} |
---|
[5743] | 5 | License: GPL+ or Artistic |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-%{version}.tar.gz |
---|
| 8 | URL: http://search.cpan.org/dist/JSON/ |
---|
| 9 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 10 | BuildArch: noarch |
---|
| 11 | |
---|
| 12 | BuildRequires: perl(CGI) |
---|
| 13 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 14 | BuildRequires: perl(HTTP::Daemon) |
---|
| 15 | BuildRequires: perl(LWP::UserAgent) |
---|
| 16 | BuildRequires: perl(Scalar::Util) |
---|
| 17 | BuildRequires: perl(Test::More) |
---|
| 18 | BuildRequires: perl(Test::Pod) |
---|
| 19 | |
---|
| 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | Packager: shaolin |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | This module converts between JSON (JavaScript Object Notation) and Perl |
---|
| 26 | data structure into each other. For JSON, see http://www.crockford.com/JSON/. |
---|
| 27 | |
---|
| 28 | %prep |
---|
| 29 | %setup -q -n JSON-%{version} |
---|
| 30 | |
---|
| 31 | # make rpmlint happy... |
---|
| 32 | find . -type f -exec chmod -c -x {} + |
---|
| 33 | find t/ -type f -exec perl -pi -e 's|^#! perl|#!%{__perl}|' {} + |
---|
| 34 | sed -i 's/\r//' README t/* |
---|
| 35 | |
---|
| 36 | %if %{_dist_release} > "vl6" |
---|
| 37 | %{?perl_default_filter: |
---|
| 38 | %filter_from_provides /^perl(JSON::\(Backend::PP\|backportPP::Boolean\|Boolean\|PP\|PP::IncrParser\))/d |
---|
| 39 | %filter_from_requires /^perl(JSON::backportPP)$/d |
---|
| 40 | %perl_default_filter} |
---|
| 41 | %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(JSON::(Backend::PP|backportPP::Boolean|Boolean|PP|PP::IncrParser)\\) |
---|
| 42 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(JSON::backportPP\\) |
---|
| 43 | |
---|
| 44 | %{?perl_default_subpackage_tests} |
---|
| 45 | |
---|
| 46 | %else |
---|
| 47 | cat << \EOF > %{name}-prov |
---|
| 48 | #!/bin/sh |
---|
| 49 | %{__perl_provides} $* |\ |
---|
| 50 | sed -e '/perl(JSON::\(Backend::PP\|backportPP::Boolean\|Boolean\|PP\|PP::IncrParser\)/d' |
---|
| 51 | EOF |
---|
| 52 | |
---|
| 53 | %global __perl_provides %{_builddir}/JSON-%{version}/%{name}-prov |
---|
| 54 | chmod +x %{__perl_provides} |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | cat << \EOF > %{name}-req |
---|
| 58 | #!/bin/sh |
---|
| 59 | %{__perl_requires} $* |\ |
---|
| 60 | sed -e '/perl(JSON::backportPP)/d' |
---|
| 61 | EOF |
---|
| 62 | |
---|
| 63 | %global __perl_requires %{_builddir}/JSON-%{version}/%{name}-req |
---|
| 64 | chmod +x %{__perl_requires} |
---|
| 65 | %endif |
---|
| 66 | |
---|
| 67 | %build |
---|
[5794] | 68 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
[5743] | 69 | make %{?_smp_mflags} |
---|
| 70 | |
---|
| 71 | %install |
---|
| 72 | make pure_install DESTDIR=%{buildroot} |
---|
| 73 | |
---|
| 74 | find %{buildroot} -type f -name .packlist -exec rm -f {} + |
---|
| 75 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
| 76 | |
---|
| 77 | %{_fixperms} %{buildroot}/* |
---|
| 78 | |
---|
| 79 | %check |
---|
| 80 | make test |
---|
| 81 | |
---|
| 82 | %files |
---|
| 83 | %defattr(-,root,root,-) |
---|
| 84 | %doc Changes README |
---|
[5794] | 85 | %{perl_vendorlib}/* |
---|
[5743] | 86 | %{_mandir}/man3/* |
---|
| 87 | |
---|
| 88 | %changelog |
---|
[5794] | 89 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.53-2 |
---|
| 90 | - rebuild |
---|
| 91 | |
---|
[5743] | 92 | * Thu Feb 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.53-1 |
---|
| 93 | - initial build for Vine Linux |
---|
| 94 | |
---|
| 95 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.53-4 |
---|
| 96 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 97 | |
---|
| 98 | * Wed Jul 20 2011 Iain Arnell <iarnell@gmail.com> 2.53-3 |
---|
| 99 | - update filtering macros for rpm 4.9 |
---|
| 100 | |
---|
| 101 | * Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 2.53-2 |
---|
| 102 | - Perl mass rebuild |
---|
| 103 | |
---|
| 104 | * Sun May 22 2011 Paul Howarth <paul@city-fan.org> 2.53-1 |
---|
| 105 | - update to 2.53 |
---|
| 106 | - fixed to_json (CPAN RT#68359) |
---|
| 107 | - backport JSON::PP 2.27200 (fixed incr_parse decoding string more correctly |
---|
| 108 | - CPAN RT#68032) |
---|
| 109 | - made Makefile.PL skip an installing XS question when set $ENV{PERL_ONLY} or |
---|
| 110 | $ENV{NO_XS} (CPAN RT#66820) |
---|
| 111 | |
---|
| 112 | * Tue Mar 8 2011 Paul Howarth <paul@city-fan.org> 2.51-1 |
---|
| 113 | - update to 2.51 (#683052) |
---|
| 114 | - import JSON::PP 2.27105 as BackportPP |
---|
| 115 | - fix documentation (CPAN RT#64738) |
---|
| 116 | |
---|
| 117 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.50-2 |
---|
| 118 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 119 | |
---|
| 120 | * Thu Jan 27 2011 Paul Howarth <paul@city-fan.org> 2.50-1 |
---|
| 121 | - update to 2.50 (#665621) |
---|
| 122 | - JSON::PP split off into separate distribution and replaced with |
---|
| 123 | JSON::backportPP instead for internal use |
---|
| 124 | - BR: perl(Test::Pod) |
---|
| 125 | - drop t/ from %%doc as the tests are in the -tests subpackage |
---|
| 126 | - filter private module perl(JSON::backportPP) from requires |
---|
| 127 | - filter private module perl(JSON::backportPP::Boolean) from provides |
---|
| 128 | - filter private module perl(JSON::Backend::PP) from provides |
---|
| 129 | - filter private module perl(JSON::Boolean) from provides |
---|
| 130 | - filter private module perl(JSON::PP) from provides (really JSON::backportPP) |
---|
| 131 | - filter private module perl(JSON::PP::IncrParser) from provides |
---|
| 132 | |
---|
| 133 | * Sun Nov 21 2010 Iain Arnell <iarnell@gmail.com> 2.27-1 |
---|
| 134 | - update to latest upstream version |
---|
| 135 | - clean up spec for modern rpmbuild |
---|
| 136 | |
---|
| 137 | * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.17-2 |
---|
| 138 | - Mass rebuild with perl-5.12.0 |
---|
| 139 | |
---|
| 140 | * Sun Feb 28 2010 Chris Weyl <cweyl@alumni.drew.edu> 2.17-1 |
---|
| 141 | - update by Fedora::App::MaintainerTools 0.004 |
---|
| 142 | - PERL_INSTALL_ROOT => DESTDIR |
---|
| 143 | - dropped old BR on perl(HTTP::Request) |
---|
| 144 | - dropped old BR on perl(HTTP::Response) |
---|
| 145 | - dropped old requires on perl(HTTP::Daemon) |
---|
| 146 | - dropped old requires on perl(LWP::UserAgent) |
---|
| 147 | - dropped old requires on perl(Scalar::Util) |
---|
| 148 | |
---|
| 149 | * Wed Sep 02 2009 Chris Weyl <cweyl@alumni.drew.edu> 2.15-5 |
---|
| 150 | - adjust filtering so we don't drop the versioned perl(JSON:PP) prov |
---|
| 151 | |
---|
| 152 | * Tue Sep 01 2009 Chris Weyl <cweyl@alumni.drew.edu> 2.15-4 |
---|
| 153 | - bump |
---|
| 154 | |
---|
| 155 | * Mon Aug 31 2009 Chris Weyl <cweyl@alumni.drew.edu> 2.15-3 |
---|
| 156 | - update filtering |
---|
| 157 | |
---|
| 158 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.15-2 |
---|
| 159 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 160 | |
---|
| 161 | * Mon Jun 22 2009 Chris Weyl <cweyl@alumni.drew.edu> 2.15-1 |
---|
| 162 | - auto-update to 2.15 (by cpan-spec-update 0.01) |
---|
| 163 | |
---|
| 164 | * Sun Mar 01 2009 Chris Weyl <cweyl@alumni.drew.edu> 2.14-1 |
---|
| 165 | - update to 2.14 |
---|
| 166 | |
---|
| 167 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12-3 |
---|
| 168 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 169 | |
---|
| 170 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.12-2 |
---|
| 171 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 172 | |
---|
| 173 | * Sun Oct 12 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.12-1 |
---|
| 174 | - update to 2.12 |
---|
| 175 | |
---|
| 176 | * Wed Jun 25 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.11-1 |
---|
| 177 | - update to 2.11 |
---|
| 178 | |
---|
| 179 | * Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.09-1 |
---|
| 180 | - update to 2.09 |
---|
| 181 | |
---|
| 182 | * Sun Mar 09 2008 Chris Weyl <cweyl@alumni.drew.edu> 2.07-1 |
---|
| 183 | - update to 2.x series before F9 |
---|
| 184 | |
---|
| 185 | * Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.15-2 |
---|
| 186 | - rebuild for new perl |
---|
| 187 | |
---|
| 188 | * Mon Nov 26 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.15-1 |
---|
| 189 | - update to 1.15 |
---|
| 190 | |
---|
| 191 | * Sun May 13 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.14-1 |
---|
| 192 | - update to 1.14 |
---|
| 193 | |
---|
| 194 | * Wed May 09 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.13-1 |
---|
| 195 | - update to 1.13 |
---|
| 196 | |
---|
| 197 | * Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.12-1 |
---|
| 198 | - update to 1.12 |
---|
| 199 | - add t/ to %%doc |
---|
| 200 | |
---|
| 201 | * Wed Apr 25 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.11-2 |
---|
| 202 | - bump |
---|
| 203 | |
---|
| 204 | * Tue Apr 24 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.11-1 |
---|
| 205 | - update to 1.11 |
---|
| 206 | |
---|
| 207 | * Wed Apr 18 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.10-1 |
---|
| 208 | - Specfile autogenerated by cpanspec 1.69.1. |
---|