|
|
38adda3 |
Name: perl-BSON
|
|
|
dad7a47 |
Version: 1.4.0
|
|
|
dad7a47 |
Release: 1%{?dist}
|
|
|
38adda3 |
Summary: BSON serialization and deserialization
|
|
|
38adda3 |
License: ASL 2.0
|
|
|
38adda3 |
URL: http://search.cpan.org/dist/BSON/
|
|
|
38adda3 |
Source0: http://www.cpan.org/authors/id/M/MO/MONGODB/BSON-v%{version}.tar.gz
|
|
|
38adda3 |
BuildArch: noarch
|
|
|
38adda3 |
BuildRequires: findutils
|
|
|
38adda3 |
BuildRequires: make
|
|
|
38adda3 |
BuildRequires: perl
|
|
|
38adda3 |
BuildRequires: perl-generators
|
|
|
dad7a47 |
BuildRequires: perl(:VERSION) >= 5.10.1
|
|
|
dad7a47 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
38adda3 |
BuildRequires: perl(strict)
|
|
|
38adda3 |
BuildRequires: perl(warnings)
|
|
|
38adda3 |
# Run-time:
|
|
|
38adda3 |
BuildRequires: perl(B)
|
|
|
38adda3 |
BuildRequires: perl(base)
|
|
|
38adda3 |
BuildRequires: perl(boolean) >= 0.45
|
|
|
38adda3 |
BuildRequires: perl(Carp)
|
|
|
38adda3 |
BuildRequires: perl(Config)
|
|
|
38adda3 |
BuildRequires: perl(constant)
|
|
|
38adda3 |
BuildRequires: perl(DateTime)
|
|
|
38adda3 |
BuildRequires: perl(DateTime::Tiny)
|
|
|
38adda3 |
BuildRequires: perl(Digest::MD5)
|
|
|
38adda3 |
BuildRequires: perl(Exporter)
|
|
|
38adda3 |
BuildRequires: perl(if)
|
|
|
38adda3 |
# Mango::BSON::Time not yet packaged
|
|
|
38adda3 |
# Math::BigFloat not used because our perl has use64bitint=1
|
|
|
38adda3 |
BuildRequires: perl(Math::BigInt)
|
|
|
38adda3 |
BuildRequires: perl(MIME::Base64)
|
|
|
38adda3 |
BuildRequires: perl(Moo) >= 2.002004
|
|
|
38adda3 |
BuildRequires: perl(namespace::clean)
|
|
|
38adda3 |
BuildRequires: perl(overload)
|
|
|
38adda3 |
BuildRequires: perl(re)
|
|
|
38adda3 |
BuildRequires: perl(Scalar::Util)
|
|
|
38adda3 |
BuildRequires: perl(Sys::Hostname)
|
|
|
38adda3 |
BuildRequires: perl(threads::shared)
|
|
|
38adda3 |
BuildRequires: perl(Tie::IxHash)
|
|
|
38adda3 |
BuildRequires: perl(Time::HiRes)
|
|
|
38adda3 |
BuildRequires: perl(Time::Local)
|
|
|
38adda3 |
BuildRequires: perl(Time::Moment)
|
|
|
38adda3 |
BuildRequires: perl(version)
|
|
|
38adda3 |
# Tests:
|
|
|
38adda3 |
BuildRequires: perl(Data::Dumper)
|
|
|
38adda3 |
BuildRequires: perl(File::Spec)
|
|
|
38adda3 |
BuildRequires: perl(JSON::MaybeXS)
|
|
|
38adda3 |
BuildRequires: perl(lib)
|
|
|
38adda3 |
BuildRequires: perl(Path::Tiny) >= 0.054
|
|
|
38adda3 |
BuildRequires: perl(Test::Deep)
|
|
|
38adda3 |
BuildRequires: perl(Test::More) >= 0.96
|
|
|
38adda3 |
# threads not used
|
|
|
38adda3 |
BuildRequires: perl(utf8)
|
|
|
38adda3 |
# Optional tests:
|
|
|
38adda3 |
BuildRequires: perl(Math::Int64)
|
|
|
38adda3 |
%if !%{defined perl_bootstrap}
|
|
|
38adda3 |
# Build cycle: perl-MongoDB → perl-BSON
|
|
|
38adda3 |
BuildRequires: perl(MongoDB)
|
|
|
38adda3 |
BuildRequires: perl(MongoDB::BSON::_EncodedDoc)
|
|
|
38adda3 |
BuildRequires: perl(MongoDB::BSON::Binary)
|
|
|
38adda3 |
BuildRequires: perl(MongoDB::BSON::Regexp)
|
|
|
38adda3 |
BuildRequires: perl(MongoDB::Code)
|
|
|
38adda3 |
BuildRequires: perl(MongoDB::DBRef) >= 1.0.0
|
|
|
38adda3 |
BuildRequires: perl(MongoDB::OID)
|
|
|
38adda3 |
BuildRequires: perl(MongoDB::Timestamp)
|
|
|
38adda3 |
%endif
|
|
|
38adda3 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
38adda3 |
Requires: perl(DateTime)
|
|
|
38adda3 |
Requires: perl(DateTime::Tiny)
|
|
|
38adda3 |
# Keep Mango::BSON::Time optional. It's yet another MongoDB client
|
|
|
38adda3 |
# implementation and BSON calls it only as a handy convertor into Mango object.
|
|
|
38adda3 |
Suggests: perl(Mango::BSON::Time)
|
|
|
38adda3 |
Requires: perl(re)
|
|
|
38adda3 |
Requires: perl(Time::Local)
|
|
|
38adda3 |
Requires: perl(Time::Moment)
|
|
|
38adda3 |
|
|
|
38adda3 |
%description
|
|
|
38adda3 |
This Perl class implements a BSON encoder and decoder. It consumes
|
|
|
38adda3 |
documents (typically hash references) and emits BSON strings and vice
|
|
|
38adda3 |
versa in accordance with the BSON specification <http://bsonspec.org/>.
|
|
|
38adda3 |
|
|
|
38adda3 |
%prep
|
|
|
38adda3 |
%setup -q -n BSON-v%{version}
|
|
|
38adda3 |
|
|
|
38adda3 |
%build
|
|
|
dad7a47 |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
38adda3 |
make %{?_smp_mflags}
|
|
|
38adda3 |
|
|
|
38adda3 |
%install
|
|
|
38adda3 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
38adda3 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
38adda3 |
|
|
|
38adda3 |
%check
|
|
|
38adda3 |
make test
|
|
|
38adda3 |
|
|
|
38adda3 |
%files
|
|
|
38adda3 |
%license LICENSE
|
|
|
38adda3 |
# devel directory contains obsoleted or not yet valid documentation
|
|
|
38adda3 |
%doc Changes CONTRIBUTING.mkdn README
|
|
|
38adda3 |
%{perl_vendorlib}/*
|
|
|
38adda3 |
%{_mandir}/man3/*
|
|
|
38adda3 |
|
|
|
38adda3 |
%changelog
|
|
|
dad7a47 |
* Fri Mar 17 2017 Petr Pisar <ppisar@redhat.com> - 1.4.0-1
|
|
|
dad7a47 |
- 1.4.0 bump
|
|
|
dad7a47 |
|
|
|
ca5eda9 |
* Fri Feb 24 2017 Petr Pisar <ppisar@redhat.com> - 1.2.2-3
|
|
|
ca5eda9 |
- Fix constructing BSON::Time objects on 32-bit perl (bug #1401448)
|
|
|
ca5eda9 |
|
|
|
42ca267 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
|
|
|
42ca267 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
42ca267 |
|
|
|
38adda3 |
* Thu Dec 01 2016 Petr Pisar <ppisar@redhat.com> 1.2.2-1
|
|
|
38adda3 |
- Specfile autogenerated by cpanspec 1.78.
|