diff --git a/.cvsignore b/.cvsignore index e69de29..7317b75 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Devel-Declare-0.006000.tar.gz diff --git a/perl-Devel-Declare.spec b/perl-Devel-Declare.spec new file mode 100644 index 0000000..0d17974 --- /dev/null +++ b/perl-Devel-Declare.spec @@ -0,0 +1,63 @@ +Name: perl-Devel-Declare +Version: 0.006000 +Release: 1%{?dist} +Summary: Adding keywords to perl, in perl +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Devel-Declare/ +Source0: http://www.cpan.org/authors/id/F/FL/FLORA/Devel-Declare-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl >= 1:5.8.1 +# for test - not yet in fedora +# BuildRequires: perl(B::Compiling) +BuildRequires: perl(B::Hooks::EndOfScope) >= 0.05 +BuildRequires: perl(B::Hooks::OP::Check) >= 0.18 +BuildRequires: perl(ExtUtils::Depends) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Sub::Name) +BuildRequires: perl(Test::More) >= 0.88 +# necessary minimum versions not automatically detected +Requires: perl(B::Hooks::EndOfScope) >= 0.05 +Requires: perl(B::Hooks::OP::Check) >= 0.18 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +Devel::Declare can install subroutines called declarators which locally +take over Perl's parser, allowing the creation of new syntax. + +%prep +%setup -q -n Devel-Declare-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install DESTDIR=$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}/Devel* +%{_mandir}/man3/* + +%changelog +* Sat Jul 03 2010 Iain Arnell 0.006000-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..644b9f2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5daf4af74683f57e516ffc9efdc14eae Devel-Declare-0.006000.tar.gz