forked from packages/perl-JSON-XS
60 lines
1.7 KiB
RPMSpec
60 lines
1.7 KiB
RPMSpec
Name: perl-JSON-XS
|
|
Summary: JSON serializing/de-serializing, done correctly and fast
|
|
Epoch: 1
|
|
Version: 3.04
|
|
Release: 6
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: https://metacpan.org/release/JSON-XS
|
|
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-%{version}.tar.gz
|
|
|
|
BuildRequires: coreutils gcc make perl-devel perl-generators perl-interpreter
|
|
BuildRequires: perl(Canary::Stability) perl(ExtUtils::MakeMaker) >= 6.76
|
|
BuildRequires: sed perl(common::sense) perl(Exporter) perl(Types::Serialiser)
|
|
BuildRequires: perl(XSLoader) perl(Getopt::Long) perl(Storable) perl(strict)
|
|
BuildRequires: perl(Data::Dumper) perl(Encode) perl(Test) perl(Test::More)
|
|
BuildRequires: perl(Tie::Array) perl(Tie::Hash) perl(utf8) perl(warnings)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%description
|
|
This module converts Perl data structures to JSON and vice versa. Its
|
|
primary goal is to be correct and its secondary goal is to be fast. To
|
|
reach the latter goal it was written in C.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n JSON-XS-%{version}
|
|
|
|
sed -i 's/\r//' t/*
|
|
perl -pi -e 's|^#!/opt/bin/perl|#!%{__perl}|' eg/*
|
|
chmod -c -x eg/*
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
%check
|
|
make test
|
|
|
|
%files
|
|
%doc Changes README eg/
|
|
%license COPYING
|
|
%{perl_vendorarch}/*
|
|
%exclude %dir %{perl_vendorarch}/auto
|
|
%{_bindir}/*
|
|
|
|
%files help
|
|
%{_mandir}/man[13]/*
|
|
|
|
%changelog
|
|
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.04-6
|
|
- Package init
|