|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: perl-MooseX-Getopt
|
|
|
|
|
Version: 0.05
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.13
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Moose role for processing command line options
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
@ -10,11 +10,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
|
BuildRequires: perl(Moose) >= 0.19
|
|
|
|
|
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)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.62
|
|
|
|
|
BuildRequires: perl(Test::Exception) >= 0.21
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
|
|
|
|
@ -30,19 +32,21 @@ objects using parameters passed in from the command line.
|
|
|
|
|
%setup -q -n MooseX-Getopt-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
|
./Build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
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
|
|
|
|
|
./Build test
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
@ -54,6 +58,10 @@ rm -rf %{buildroot}
|
|
|
|
|
%{_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
|
|
|
|
|
|
|
|
|
|