commit 806f3dee85f47517a9c4e472ea705e90e8de1239 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Fri Jul 26 14:09:14 2013 +0200 Import .gitignore | 1 + perl-MooseX-Types-DateTime-MoreCoercions.spec | 60 +++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..7055df4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MooseX-Types-DateTime-MoreCoercions-0.11.tar.gz diff --git a/perl-MooseX-Types-DateTime-MoreCoercions.spec b/perl-MooseX-Types-DateTime-MoreCoercions.spec new file mode 100644 index 0000000..ca44019 --- /dev/null +++ b/perl-MooseX-Types-DateTime-MoreCoercions.spec @@ -0,0 +1,60 @@ +Name: perl-MooseX-Types-DateTime-MoreCoercions +Version: 0.11 +Release: 1%{?dist} +Summary: Extensions to MooseX::Types::DateTime +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/MooseX-Types-DateTime-MoreCoercions/ +Source0: http://www.cpan.org/authors/id/I/IL/ILMARI/MooseX-Types-DateTime-MoreCoercions-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(inc::Module::Install) +# Run-time: +BuildRequires: perl(DateTime) >= 0.4302 +BuildRequires: perl(DateTime::Duration) >= 0.4302 +BuildRequires: perl(DateTimeX::Easy) >= 0.085 +BuildRequires: perl(Moose) >= 0.41 +BuildRequires: perl(MooseX::Types) >= 0.04 +BuildRequires: perl(MooseX::Types::DateTime) >= 0.07 +BuildRequires: perl(MooseX::Types::Moose) >= 0.04 +BuildRequires: perl(namespace::clean) >= 0.08 +BuildRequires: perl(Time::Duration::Parse) >= 0.06 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Tests: +BuildRequires: perl(ok) >= 0.02 +BuildRequires: perl(Test::Exception) >= 0.27 +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This module builds on MooseX::Types::DateTime to add additional custom +types and coercions. Since it builds on an existing type, all coercions +and constraints are inherited. + +%prep +%setup -q -n MooseX-Types-DateTime-MoreCoercions-%{version} +# Remove bundled modules +rm -rf inc/* +sed -i -e '/^inc\//d' MANIFEST + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Jul 04 2013 Petr Pisar <ppisar@xxxxxxxxxx> 0.11-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..e371fde 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3e44c704976382c74d1f7bd6a7673c25 MooseX-Types-DateTime-MoreCoercions-0.11.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel