[1353] | 1 | # Upstream has switched back to five-digit versions temporarily
|
---|
| 2 | %global rpm_version 2.97
|
---|
| 3 | %global temp_version_suffix 001
|
---|
| 4 |
|
---|
| 5 | Name: perl-JSON
|
---|
| 6 | Summary: Parse and convert to JSON (JavaScript Object Notation)
|
---|
| 7 | Version: %{rpm_version}%{?temp_version_suffix:.%{temp_version_suffix}}
|
---|
| 8 | Release: 1%{?dist}
|
---|
| 9 | License: GPL+ or Artistic
|
---|
| 10 |
|
---|
| 11 | Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/JSON-%{rpm_version}%{?temp_version_suffix}.tar.gz
|
---|
| 12 | URL: http://search.cpan.org/dist/JSON/
|
---|
| 13 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
---|
| 14 | BuildArch: noarch
|
---|
| 15 |
|
---|
| 16 | BuildRequires: perl-generators
|
---|
| 17 | #BuildRequires: perl-interpreter
|
---|
| 18 | BuildRequires: perl(base)
|
---|
| 19 | BuildRequires: perl(Carp)
|
---|
| 20 | BuildRequires: perl(constant)
|
---|
| 21 | BuildRequires: perl(Data::Dumper)
|
---|
| 22 | BuildRequires: perl(Encode)
|
---|
| 23 | BuildRequires: perl(Exporter)
|
---|
| 24 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
| 25 | BuildRequires: perl(File::Spec)
|
---|
| 26 | BuildRequires: perl(Math::BigFloat)
|
---|
| 27 | BuildRequires: perl(Math::BigInt)
|
---|
| 28 | BuildRequires: perl(lib)
|
---|
| 29 | BuildRequires: perl(Scalar::Util)
|
---|
| 30 | BuildRequires: perl(Test::More)
|
---|
| 31 | BuildRequires: perl(Test::Pod)
|
---|
| 32 | BuildRequires: 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
|
---|
| 39 | This module converts between JSON (JavaScript Object Notation) and Perl
|
---|
| 40 | data 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...
|
---|
| 46 | find . -type f -exec chmod -c -x {} +
|
---|
| 47 | #find t/ -type f -exec perl -pi -e 's|^#! perl|#!%{__perl}|' {} +
|
---|
| 48 | sed -i 's/\r//' README t/*
|
---|
| 49 |
|
---|
| 50 | %build
|
---|
| 51 | %{__perl} Makefile.PL INSTALLDIRS=vendor
|
---|
| 52 | make %{?_smp_mflags}
|
---|
| 53 | make manifypods
|
---|
| 54 |
|
---|
| 55 | %install
|
---|
| 56 | make pure_install DESTDIR=%{buildroot}
|
---|
| 57 | find %{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 |
|
---|