You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-MooseX-Getopt/perl-MooseX-Getopt.spec

80 lines
2.2 KiB

Name: perl-MooseX-Getopt
Version: 0.13
Release: 1%{?dist}
Summary: Moose role for processing command line options
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/MooseX-Getopt/
Source0: http://www.cpan.org/authors/id/S/ST/STEVAN/MooseX-Getopt-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Getopt::Long::Descriptive)
BuildRequires: perl(Getopt::Long) >= 2.37
BuildRequires: perl(Moose) >= 0.43
# tests...
BuildRequires: perl(Test::More) >= 0.62
BuildRequires: perl(Test::Exception) >= 0.21
BuildRequires: perl(Scalar::Util)
# optional tests
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
%description
This is a Moose role which provides an alternate constructor for creating
objects using parameters passed in from the command line.
%prep
%setup -q -n MooseX-Getopt-%{version}
%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} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ChangeLog README t/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Sat Jun 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.13-1
- update to 0.13
- switch to Module::Install invocations, rather than Module::Build
* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-2
- rebuild for new perl
* Fri Aug 10 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.05-1
- update to 0.05
- license tag: GPL -> GPL+
* Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.03-2
- bump
* Thu May 03 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1
- update to 0.03
* Fri Apr 20 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.02-1
- Specfile autogenerated by cpanspec 1.69.1.