rpms/perl-MooseX-App-Cmd/F-10 import.log, NONE, 1.1 perl-MooseX-App-Cmd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Chris Weyl cweyl at fedoraproject.org
Sat Dec 6 22:22:17 UTC 2008


Author: cweyl

Update of /cvs/extras/rpms/perl-MooseX-App-Cmd/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16945/F-10

Modified Files:
	.cvsignore sources 
Added Files:
	import.log perl-MooseX-App-Cmd.spec 
Log Message:
initial import


--- NEW FILE import.log ---
perl-MooseX-App-Cmd-0_04-2_fc9:F-10:perl-MooseX-App-Cmd-0.04-2.fc9.src.rpm:1228602093


--- NEW FILE perl-MooseX-App-Cmd.spec ---

Name:       perl-MooseX-App-Cmd 
Version:    0.04 
Release:    2%{?dist}
# see lib/MooseX/App/Cmd.pm
License:    GPL+ or Artistic 
Group:      Development/Libraries
Summary:    Mashes up MooseX::Getopt and App::Cmd 
Source:     http://search.cpan.org/CPAN/authors/id/D/DM/DMAKI/MooseX-App-Cmd-%{version}.tar.gz 
Url:        http://search.cpan.org/dist/MooseX-App-Cmd
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(App::Cmd)
BuildRequires: perl(Getopt::Long::Descriptive)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Getopt) >= 0.09
BuildRequires: perl(MooseX::ConfigFromFile)
# testing
BuildRequires: perl(YAML)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::use::ok)

# we don't pick up Moose keywords automagically yet
Requires: perl(App::Cmd)
Requires: perl(App::Cmd::Command)
Requires: perl(MooseX::Getopt) >= 0.09
Requires: perl(MooseX::ConfigFromFile)

%description
This module marries App::Cmd with MooseX::Getopt.

Use it like the App::Cmd manpage advises (especially see the
App::Cmd::Tutorial manpage), swapping App::Cmd::Command for 
MooseX::App::Cmd::Command.

Then you can write your commands as Moose classes, with the
MooseX::Getopt defining the options for you instead of 'opt_spec'
returning a Getopt::Long::Descriptive spec.

%prep
%setup -q -n MooseX-App-Cmd-%{version}

perl -pi -e 's|^#!perl|#!/usr/bin/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-App-Cmd-%{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-App-Cmd-%{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 t/
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*

%changelog
* Wed Nov 05 2008 Chris Weyl <cweyl at alumni.drew.edu> 0.04-2
- I swear I fixed those "manpage" references...

* Wed Nov 05 2008 Chris Weyl <cweyl at alumni.drew.edu> 0.04-1
- update for submission

* Mon Oct 27 2008 Chris Weyl <cweyl at alumni.drew.edu> 0.04-0.1
- initial RPM packaging
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-MooseX-App-Cmd/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Dec 2008 21:24:50 -0000	1.1
+++ .cvsignore	6 Dec 2008 22:21:47 -0000	1.2
@@ -0,0 +1 @@
+MooseX-App-Cmd-0.04.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-MooseX-App-Cmd/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Dec 2008 21:24:50 -0000	1.1
+++ sources	6 Dec 2008 22:21:47 -0000	1.2
@@ -0,0 +1 @@
+b397bbe8cdc2d81fefbbfc0647ea7852  MooseX-App-Cmd-0.04.tar.gz




More information about the Fedora-perl-devel-list mailing list