source: spec/trunk/SPECS/perl-JSON.spec

Last change on this file was 1353, checked in by tellie, 8 years ago

spec: perl-JSON: Release version 2.97.001-1.

File size: 2.2 KB
Line 
1# Upstream has switched back to five-digit versions temporarily
2%global rpm_version 2.97
3%global temp_version_suffix 001
4
5Name: perl-JSON
6Summary: Parse and convert to JSON (JavaScript Object Notation)
7Version: %{rpm_version}%{?temp_version_suffix:.%{temp_version_suffix}}
8Release: 1%{?dist}
9License: GPL+ or Artistic
10
11Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/JSON-%{rpm_version}%{?temp_version_suffix}.tar.gz
12URL: http://search.cpan.org/dist/JSON/
13Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
14BuildArch: noarch
15
16BuildRequires: perl-generators
17#BuildRequires: perl-interpreter
18BuildRequires: perl(base)
19BuildRequires: perl(Carp)
20BuildRequires: perl(constant)
21BuildRequires: perl(Data::Dumper)
22BuildRequires: perl(Encode)
23BuildRequires: perl(Exporter)
24BuildRequires: perl(ExtUtils::MakeMaker)
25BuildRequires: perl(File::Spec)
26BuildRequires: perl(Math::BigFloat)
27BuildRequires: perl(Math::BigInt)
28BuildRequires: perl(lib)
29BuildRequires: perl(Scalar::Util)
30BuildRequires: perl(Test::More)
31BuildRequires: perl(Test::Pod)
32BuildRequires: perl(Tie::IxHash)
33
34%{?perl_default_filter}
35%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(JSON::(Backend::PP|backportPP::Boolean|Boolean|PP|PP::IncrParser)\\)
36%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(JSON::(backportPP|backportPP::Boolean)\\)
37
38%description
39This module converts between JSON (JavaScript Object Notation) and Perl
40data structure into each other. For JSON, see http://www.crockford.com/JSON/.
41
42%prep
43%setup -q -n JSON-%{rpm_version}%{?temp_version_suffix}
44
45# make rpmlint happy...
46find . -type f -exec chmod -c -x {} +
47#find t/ -type f -exec perl -pi -e 's|^#! perl|#!%{__perl}|' {} +
48sed -i 's/\r//' README t/*
49
50%build
51%{__perl} Makefile.PL INSTALLDIRS=vendor
52make %{?_smp_mflags}
53make manifypods
54
55%install
56make pure_install DESTDIR=%{buildroot}
57find %{buildroot} -type f -name .packlist -delete
58%{_fixperms} -c %{buildroot}
59
60%check
61#make test
62
63%files
64%doc Changes README
65%{perl_vendorlib}/*
66%{_mandir}/man3/*.3*
67
68%changelog
69* Sun Mar 11 2018 Elbert Pol <elbert.pol@gmail.com> - 2.97.001-1
70- initial rpm for OS2
71
Note: See TracBrowser for help on using the repository browser.