[perl-MongoDB] initial commit

ksyz ksyz at fedoraproject.org
Wed Feb 16 11:57:59 UTC 2011


commit 1d0e8be0892083b4395c0dd244bfe40cb70fd8e2
Author: Michal Ingeli <mi at v3.sk>
Date:   Wed Feb 16 12:57:55 2011 +0100

    initial commit

 .gitignore        |    1 +
 perl-MongoDB.spec |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1028ad3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MongoDB-0.41.tar.gz
diff --git a/perl-MongoDB.spec b/perl-MongoDB.spec
new file mode 100644
index 0000000..9c9681c
--- /dev/null
+++ b/perl-MongoDB.spec
@@ -0,0 +1,71 @@
+%{?perl_default_filter}
+
+Name:           perl-MongoDB
+Version:        0.41
+Release:        3%{?dist}
+Summary:        Database driver
+License:        ASL 2.0 
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/MongoDB/
+Source0:        http://www.cpan.org/authors/id/K/KR/KRISTINA/MongoDB-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  perl >= 1:5.8.7
+BuildRequires:  perl(Any::Moose)
+BuildRequires:  perl(boolean)
+BuildRequires:  perl(Class::Method::Modifiers)
+BuildRequires:  perl(Data::Types)
+BuildRequires:  perl(DateTime)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Slurp)
+BuildRequires:  perl(JSON)
+BuildRequires:  perl(Test::Exception)
+BuildRequires:  perl(Tie::IxHash)
+BuildRequires:  perl(Try::Tiny)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+The perl database access module for MongoDB.
+
+%prep
+%setup -q -n MongoDB-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/MongoDB*
+%{_mandir}/man3/*
+
+%changelog
+* Sat Jan 22 2011 Michal Ingeli <mi at v3.sk> 0.41-3
+- Conditionalize %perl_default_filter
+- Added Try::Tiny, required for test phase
+
+* Sat Jan 22 2011 Michal Ingeli <mi at v3.sk> 0.41-2
+- Removed redundant requires
+
+* Wed Jan 19 2011 Michal Ingeli <mi at v3.sk> 0.41-1
+- Provides filtering
+- Fixed license
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..53ceb3a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1ca1cc4e6d5f49cc7a523764e1674f1a  MongoDB-0.41.tar.gz


More information about the scm-commits mailing list