Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated various Perl modules
- Loading branch information
Showing
5 changed files
with
235 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
specs/perl-Class-Method-Modifiers/perl-Class-Method-Modifiers.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters