Author: amateja                      Date: Thu Aug 27 08:42:46 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

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

---- Diffs:

================================================================
Index: packages/perl-MooseX-ConfigFromFile/perl-MooseX-ConfigFromFile.spec
diff -u /dev/null 
packages/perl-MooseX-ConfigFromFile/perl-MooseX-ConfigFromFile.spec:1.1
--- /dev/null   Thu Aug 27 10:42:46 2009
+++ packages/perl-MooseX-ConfigFromFile/perl-MooseX-ConfigFromFile.spec Thu Aug 
27 10:42:41 2009
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    MooseX
+%define        pnam    ConfigFromFile
+Summary:       MooseX::ConfigFromFile - An abstract Moose role for setting 
attributes from a configfile
+Summary(pl.UTF-8):     MooseX::ConfigFromFile - Abstrakcyjna rola Moose do 
ustawiania atrybutów z pliku konfiguracyjnego
+Name:          perl-MooseX-ConfigFromFile
+Version:       0.02
+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: 823a370058ef4b900341334b7fd06c51
+# generic URL, check or change before uncommenting
+#URL:          http://search.cpan.org/dist/MooseX-ConfigFromFile/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(MooseX::Types::Path::Class) >= 0.04
+BuildRequires: perl-Moose >= 0.35
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is an abstract role which provides an alternate constructor for creating 
+objects using parameters passed in from a configuration file.  The
+actual implementation of reading the configuration file is left to
+concrete subroles.
+
+It declares an attribute configfile and a class method new_with_config,
+and requires that concrete roles derived from it implement the class method
+get_config_from_file.
+
+Attributes specified directly as arguments to new_with_config supercede those
+in the configfile.
+
+MooseX::Getopt knows about this abstract role, and will use it if available
+to load attributes from the file specified by the commandline flag --configfile
+during its normal new_with_options.
+
+%description -l pl.UTF-8
+MooseX::ConfigFromFile - Abstrakcyjna rola Moose do ustawiania atrybutów z 
pliku konfiguracyjnego
+
+%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} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%{perl_vendorlib}/MooseX/*.pm
+%{_mandir}/man3/*
+
+%define        date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/08/27 08:42:41  amateja
+- initial
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to