From a7d0855bbf4103b450e783a99dc5c3491d59890d Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Mon, 17 Nov 2008 03:32:43 +0000 Subject: [PATCH] initial commit --- .cvsignore | 1 + import.log | 1 + perl-MooseX-Types-Path-Class.spec | 93 +++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 96 insertions(+) create mode 100644 import.log create mode 100644 perl-MooseX-Types-Path-Class.spec diff --git a/.cvsignore b/.cvsignore index e69de29..4c4d7cf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +MooseX-Types-Path-Class-0.05.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..71bee04 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-MooseX-Types-Path-Class-0_05-2_fc9:HEAD:perl-MooseX-Types-Path-Class-0.05-2.fc9.src.rpm:1226892749 diff --git a/perl-MooseX-Types-Path-Class.spec b/perl-MooseX-Types-Path-Class.spec new file mode 100644 index 0000000..e234197 --- /dev/null +++ b/perl-MooseX-Types-Path-Class.spec @@ -0,0 +1,93 @@ +Name: perl-MooseX-Types-Path-Class +Version: 0.05 +Release: 2%{?dist} +# see Makefile.PL, README, lib/MooseX/Types/Path/Class.pm +License: GPL+ or Artistic +Group: Development/Libraries +Summary: A Path::Class type library for Moose +Source: http://search.cpan.org/CPAN/authors/id/T/TH/THEPLER/MooseX-Types-Path-Class-%{version}.tar.gz +Url: http://search.cpan.org/dist/MooseX-Types-Path-Class +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(MooseX::Getopt) >= 0.05 +BuildRequires: perl(MooseX::Types) >= 0.04 +BuildRequires: perl(Path::Class) >= 0.16 +# testing +BuildRequires: perl(Test::More) >= 0.62 +# optional tests +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) + +%description +MooseX::Types::Path::Class creates common Moose types, coercions and option +specifications useful for dealing with Path::Class objects as Moose attributes. + +Coercions (see Moose::Util::TypeConstraints) are made from both 'Str' and +'ArrayRef' to both Path::Class::Dir and Path::Class::File objects. If you +have MooseX::Getopt installed, the Getopt option type ("=s") will be added +for both Path::Class::Dir and Path::Class::File. + +%prep +%setup -q -n MooseX-Types-Path-Class-%{version} + +perl -pi -e 's|^#!perl|#!%{__perl}|' t/*.t + +# make sure doc/tests don't generate provides +# note we first filter out the bits in _docdir... +cat << \EOF > %{name}-prov +#!/bin/sh +%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` +EOF + +%define __perl_provides %{_builddir}/MooseX-Types-Path-Class-%{version}/%{name}-prov +chmod +x %{__perl_provides} + +cat << \EOF > %{name}-req +#!/bin/sh +%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` +EOF + +%define __perl_requires %{_builddir}/MooseX-Types-Path-Class-%{version}/%{name}-req +chmod +x %{__perl_requires} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README t/ +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + +%changelog +* Fri Nov 07 2008 Chris Weyl 0.05-2 +- filter _docdir prov/req's + +* Sat Nov 01 2008 Chris Weyl 0.05-1 +- update to 0.05 +- brush up for submission + +* Tue Oct 07 2008 Chris Weyl 0.04-1 +- initial RPM packaging +- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.1) + diff --git a/sources b/sources index e69de29..ff8e41d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +79a0d19fe8b4547b232605645c75aaad MooseX-Types-Path-Class-0.05.tar.gz