Blame perl-BSON.spec

38adda3
Name:           perl-BSON
38adda3
Version:        1.2.2
38adda3
Release:        1%{?dist}
38adda3
Summary:        BSON serialization and deserialization
38adda3
License:        ASL 2.0
38adda3
Group:          Development/Libraries
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
38adda3
BuildRequires:  perl(:VERSION) >= 5.8.1
38adda3
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.17
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
38adda3
perl Makefile.PL INSTALLDIRS=vendor
38adda3
make %{?_smp_mflags}
38adda3
38adda3
%install
38adda3
make pure_install DESTDIR=$RPM_BUILD_ROOT
38adda3
find $RPM_BUILD_ROOT -type f -name .packlist -delete
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
38adda3
* Thu Dec 01 2016 Petr Pisar <ppisar@redhat.com> 1.2.2-1
38adda3
- Specfile autogenerated by cpanspec 1.78.