packages: perl-MooseX-Getopt/perl-MooseX-Getopt.spec (NEW) - initial

amateja amateja at pld-linux.org
Tue Jun 23 08:21:33 CEST 2009


Author: amateja                      Date: Tue Jun 23 06:21:33 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/perl-MooseX-Getopt:
   perl-MooseX-Getopt.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-MooseX-Getopt/perl-MooseX-Getopt.spec
diff -u /dev/null packages/perl-MooseX-Getopt/perl-MooseX-Getopt.spec:1.1
--- /dev/null	Tue Jun 23 08:21:33 2009
+++ packages/perl-MooseX-Getopt/perl-MooseX-Getopt.spec	Tue Jun 23 08:21:28 2009
@@ -0,0 +1,88 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	MooseX
+%define	pnam	Getopt
+Summary:	MooseX::Getopt - A Moose role for processing command line options
+Summary(pl.UTF-8):	MooseX::Getopt - narzędzie Moose do przetwarzania opcji z linii komend
+Name:		perl-MooseX-Getopt
+Version:	0.18
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/MooseX/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	10dff3c6b5c5dfb3f1dafed05229437c
+URL:		http://search.cpan.org/dist/MooseX-Getopt/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Getopt::Long::Descriptive)
+BuildRequires:	perl-Moose >= 0.56
+BuildRequires:	perl-Test-Exception >= 0.21
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a role which provides an alternate constructor for creating
+objects using parameters passed in from the command line.
+
+This module attempts to DWIM as much as possible with the command line
+params by introspecting your class's attributes. It will use the name
+of your attribute as the command line option, and if there is a type
+constraint defined, it will configure Getopt::Long to handle the
+option accordingly.
+
+You can use the trait MooseX::Getopt::Meta::Attribute::Trait or the
+attribute metaclass MooseX::Getopt::Meta::Attribute to get non-default
+commandline option names and aliases.
+
+You can use the trait MooseX::Getopt::Meta::Attribute::Trait::NoGetopt
+or the attribute metaclass MooseX::Getopt::Meta::Attribute::NoGetopt
+to have MooseX::Getopt ignore your attribute in the commandline
+options.
+
+%description -l pl.UTF-8
+Jest to narzędzie które dostarcza alternatywny konstruktor do
+tworzenia objektówkorzystających z parametrów przekazanych z linii
+poleceń.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%{perl_vendorlib}/MooseX/*.pm
+%{perl_vendorlib}/MooseX/Getopt
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/06/23 06:21:28  amateja
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list