perl-JSON-XS/perl-JSON-XS.spec

63 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

2020-03-06 16:46:18 +08:00
Name: perl-JSON-XS
Summary: JSON serializing/de-serializing, done correctly and fast
Epoch: 1
2021-01-29 14:17:27 +08:00
Version: 4.03
Release: 1
2020-03-06 16:46:18 +08:00
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
2021-01-29 14:17:27 +08:00
* Fri Jan 29 2021 yuanxin <yuanxin24@huawei.com> - 4.03-1
- upgrade version to 4.03
2020-03-06 16:46:18 +08:00
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.04-6
- Package init