perl-MongoDB/perl-MongoDB.spec

Name: perl-MongoDB
Summary: Perl driver for MongoDB, a document-oriented database
Version: 0.45
Release: 1
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/~kristina/MongoDB-0.45/
Description: This is the Perl driver for MongoDB, a document-oriented database.

CentOS 7 x86_64

The build could not start because the following file is missing: MongoDB-0.45.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: MongoDB-0.45.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dfateyev
# Upstream: Kristina Chodorov <kristina$10gen,com>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name MongoDB

Summary: Perl driver for MongoDB, a document-oriented database
Name: perl-%{real_name}
Version: 0.45
Release: 1%{?dist}
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/~kristina/%{real_name}-%{version}/

Source0: http://search.cpan.org/CPAN/authors/id/K/KR/KRISTINA/%{real_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl >= 5.8.7
Requires: perl(Any::Moose)
Requires: perl(Class::Method::Modifiers)
Requires: perl(DateTime)
Requires: perl(Digest::MD5)
Requires: perl(Tie::IxHash)
Requires: perl(XSLoader)
Requires: perl(boolean)

### remove autoreq Perl dependencies
%filter_from_requires /^perl.*/d
%filter_setup

%description
This is the Perl driver for MongoDB, a document-oriented database.

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install
find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
find %{buildroot} -type f -name *.bs -exec %{__rm} -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%doc Changes README
%{perl_vendorarch}/MongoDB/
%{perl_vendorarch}/MongoDB.pm
%{perl_vendorarch}/auto/MongoDB/
%{_mandir}/man3/*.3*

%changelog
* Sat Apr 28 2012 Denis Fateyev <denis@fateyev.com> - 0.45-1
- Initial package.