Skip to content

Commit

Permalink
updated various Perl modules
Browse files Browse the repository at this point in the history
updated various Perl modules
  • Loading branch information
dfateyev committed Apr 28, 2012
1 parent 2a8337b commit a51e2b8
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 8 deletions.
14 changes: 10 additions & 4 deletions specs/perl-Any-Moose/perl-Any-Moose.spec
Expand Up @@ -13,7 +13,7 @@

Summary: use Moose or Mouse modules
Name: perl-Any-Moose
Version: 0.17
Version: 0.18
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
Expand All @@ -25,7 +25,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
BuildRequires: perl(Mouse) >= 0.40
BuildRequires: perl >= 5.006_002
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(Mouse) >= 0.40
Requires: perl >= 5.006_002

Expand All @@ -34,7 +34,10 @@ Requires: perl >= 5.006_002


%description
use Moose or Mouse modules.
Any::Moose is a Perl module that intelligently loads either Moose or
Mouse, which provide nearly identical interfaces to the same modern
object system. This module takes advantage of the fact that anything
that works with Mouse should also work with Moose.

%prep
%setup -n %{real_name}-%{version}
Expand All @@ -49,6 +52,7 @@ use Moose or Mouse modules.

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'

%clean
%{__rm} -rf %{buildroot}
Expand All @@ -58,10 +62,12 @@ find %{buildroot} -name .packlist -exec %{__rm} {} \;
%doc Changes LICENSE MANIFEST META.yml README
%doc %{_mandir}/man3/Any::Moose.3pm*
%dir %{perl_vendorlib}/Any/
#%{perl_vendorlib}/Any/Moose/
%{perl_vendorlib}/Any/Moose.pm

%changelog
* Sat Apr 28 2012 Denis Fateyev <denis@fateyev.com> -0.18-1
- updated to 0.18

* Mon Dec 05 2011 David Hrbáč <david@hrbac.cz> - 0.17-1
- new upstream release

Expand Down
62 changes: 62 additions & 0 deletions specs/perl-Class-Method-Modifiers/perl-Class-Method-Modifiers.spec
@@ -0,0 +1,62 @@
# $Id$
# Authority: dfateyev
# Upstream: Shawn M Moore <sartak$gmail,com>

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

%define real_name Class-Method-Modifiers

Summary: Provides Moose-like method modifiers
Name: perl-%{real_name}
Version: 1.09
Release: 1%{?dist}
License: GPL or Artistic
Group: Development/Libraries
URL: http://github.com/sartak/Class-Method-Modifiers/tree

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

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl

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

%description
Class::Method::Modifiers provides three modifiers: before, around, and
after. In short, Class::Method::Modifiers solves the problem of making
sure you call $self->SUPER::foo(@_), and provides a cleaner interface
for it.

%prep
%setup -n %{real_name}-%{version}
echo "Generic README file for %{real_name}" > README

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

%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__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_vendorlib}/Class/Method/Modifiers.pm
%{_mandir}/man3/*.3*

%changelog
* Sat Apr 28 2012 Denis Fateyev <denis@fateyev.com> - 1.09-1
- Initial package.
66 changes: 66 additions & 0 deletions specs/perl-MongoDB/perl-MongoDB.spec
@@ -0,0 +1,66 @@
# $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.
83 changes: 83 additions & 0 deletions specs/perl-MongoDBx-Class/perl-MongoDBx-Class.spec
@@ -0,0 +1,83 @@
# $Id$
# Authority: dfateyev
# Upstream: Ido Perlmuter <ido$ido50,net>

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

%define real_name MongoDBx-Class

Summary: flexible object relational mapper (ORM) for MongoDB databases
Name: perl-%{real_name}
Version: 0.91
Release: 1%{?dist}
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/~idoperel/%{real_name}-%{version}/

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

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl
Requires: perl(Moose)
Requires: perl(Carp)
Requires: perl(DateTime::Format::W3CDTF)
Requires: perl(Module::Load)
Requires: perl(Module::Pluggable)
Requires: perl(MongoDB) >= 0.40
Requires: perl(MongoDB::Collection)
Requires: perl(MongoDB::Connection)
Requires: perl(MongoDB::Cursor)
Requires: perl(MongoDB::Database)
Requires: perl(Moose::Exporter)
Requires: perl(Moose::Role)
Requires: perl(Moose::Util::TypeConstraints)
Requires: perl(Try::Tiny)
Requires: perl(namespace::autoclean)

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

%description
MongoDBx::Class is a flexible object relational mapper (ORM) for MongoDB
databases. Given a schema-like collection of document classes,
MongoDBx::Class expands MongoDB objects (hash-refs in Perl) from the
database into objects of those document classes, and collapses such
objects back to the database.

MongoDBx::Class takes advantage of the fact that Perl's MongoDB driver
is Moose-based to extend and tweak the driver's behavior, instead of
wrapping it. This means MongoDBx::Class does not define its own syntax,
so you simply use it exactly as you would the MongoDB driver directly.
That said, MongoDBx::Class adds some sugar that enhances and simplifies
the syntax unobtrusively (either use it or don't).

%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 d -depth -exec rmdir {} 2>/dev/null ';'

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

%files
%defattr(-,root,root,0755)
%doc Changes README
%{perl_vendorlib}/MongoDBx/
%{_mandir}/man3/*.3*

%changelog
* Sat Apr 28 2012 Denis Fateyev <denis@fateyev.com> - 0.91-1
- Initial package.
18 changes: 14 additions & 4 deletions specs/perl-boolean/perl-boolean.spec
Expand Up @@ -8,8 +8,8 @@
%define real_name boolean

Summary: Boolean support for Perl
Name: perl-boolean
Version: 0.20
Name: perl-%{real_name}
Version: 0.28
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
Expand All @@ -20,10 +20,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl >= 5.005003
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl >= 5.005003

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

%description
Boolean support for Perl.
Most programming languages have a native "Boolean" data type. Perl does
not. This module provides basic Boolean support, by defining two
special objects: "true" and "false".

%prep
%setup -n %{real_name}-%{version}
Expand All @@ -38,6 +45,7 @@ Boolean support for Perl.

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'

%clean
%{__rm} -rf %{buildroot}
Expand All @@ -46,9 +54,11 @@ find %{buildroot} -name .packlist -exec %{__rm} {} \;
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README
%doc %{_mandir}/man3/boolean.3pm*
#%{perl_vendorlib}/boolean/
%{perl_vendorlib}/boolean.pm

%changelog
* Sat Apr 28 2012 Denis Fateyev <denis@fateyev.com> - 0.28-1
- Update to version 0.28

* Fri Dec 11 2009 Christoph Maser <cmr@financial.com> - 0.20-1
- Initial package. (using DAR)

0 comments on commit a51e2b8

Please sign in to comment.