packages: perl-MouseX-ConfigFromFile/perl-MouseX-ConfigFromFile.spec (NEW) ...
amateja
amateja at pld-linux.org
Thu Aug 27 10:33:31 CEST 2009
Author: amateja Date: Thu Aug 27 08:33:31 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/perl-MouseX-ConfigFromFile:
perl-MouseX-ConfigFromFile.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-MouseX-ConfigFromFile/perl-MouseX-ConfigFromFile.spec
diff -u /dev/null packages/perl-MouseX-ConfigFromFile/perl-MouseX-ConfigFromFile.spec:1.1
--- /dev/null Thu Aug 27 10:33:31 2009
+++ packages/perl-MouseX-ConfigFromFile/perl-MouseX-ConfigFromFile.spec Thu Aug 27 10:33:25 2009
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir MouseX
+%define pnam ConfigFromFile
+Summary: MouseX::ConfigFromFile - An abstract Mouse role for setting attributes from a configfile
+Summary(pl.UTF-8): MouseX::ConfigFromFile - abstrakcyjna rola Mouse do ustawiania atrybutów z pliku konfiguracyjnego
+Name: perl-MouseX-ConfigFromFile
+Version: 0.03
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/MouseX/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 1299c2e66efefc113b8b5ac0405a5c24
+URL: http://search.cpan.org/dist/MouseX-ConfigFromFile/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(MouseX::Types::Path::Class) >= 0.05
+BuildRequires: perl-Mouse
+BuildRequires: perl(Any::Moose) >= 0.05
+BuildRequires: perl(Test::UseAllModules)
+%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.
+
+%description -l pl.UTF-8
+MouseX::ConfigFromFile - abstrakcyjna rola Mouse 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 Changes README
+%{perl_vendorlib}/MouseX/*.pm
+%{_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/08/27 08:33:25 amateja
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list