]> git.pld-linux.org Git - SPECS.git/blob - perl-Object-Declare.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Object-Declare.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Object
6 %define pnam    Declare
7 Summary:        Object::Declare - Declarative object constructor
8 Summary(pl.UTF-8):      Object::Declare - deklaratywny konstruktor obiektów
9 Name:           perl-Object-Declare
10 Version:        0.22
11 Release:        1
12 License:        MIT
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
19 %if %{with tests}
20 BuildRequires:  perl-Sub-Override
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This module exports one function, declare, for building named
27 objects with a declarative syntax, similar to how Jifty::DBI::Schema
28 defines its columns.
29
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.
33
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.
38
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.
42
43 %prep
44 %setup -q -n %{pdir}-%{pnam}-%{version}
45
46 %build
47 %{__perl} Makefile.PL \
48         INSTALLDIRS=vendor
49 %{__make}
50
51 %{?with_tests:%{__make} test}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc Changes README
65 %{perl_vendorlib}/Object/*.pm
66 %{_mandir}/man3/*
This page took 0.711869 seconds and 3 git commands to generate.