3 %bcond_without tests # do not perform "make test"
7 Summary: Object::Declare - Declarative object constructor
8 Summary(pl.UTF-8): Object::Declare - deklaratywny konstruktor obiektów
9 Name: perl-Object-Declare
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Object/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 9607cd7b485bd7e01c3286f1dd8df187
16 URL: http://search.cpan.org/dist/Object-Declare/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Sub-Override
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module exports one function, declare, for building named
27 objects with a declarative syntax, similar to how Jifty::DBI::Schema
30 In list context, declare returns a list of name/object pairs in the
31 order of declaration (allowing duplicates), suitable for putting into
32 a hash. In scalar context, declare returns a hash reference.
34 %description -l pl.UTF-8
35 Ten moduł eksportuje jedną funkcję: declare, służącą do tworzenia
36 nazwanych obiektów o składni deklaratywnej, podobnie do tego jak
37 Jifty::DBI::Schema definiuje swoje kolumny.
39 W kontekście listy declare zwraca listę par nazwa-obiekt w kolejności
40 deklaracji (zezwalając na duplikaty), nadającą się do umieszczenia w
41 haszu. W kontekście skalarnym zwraca referencję do hasza.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/Object/*.pm