3 %bcond_without tests # do not perform "make test"
6 %define pnam Accessor-Chained
7 Summary: Class::Accessor::Chained - make chained accessors
8 Summary(pl.UTF-8): Class::Accessor::Chained - tworzenie łańcuchowych metod accessor
9 Name: perl-Class-Accessor-Chained
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 9825a1f30a70e55e61bb5660b2bd7365
17 URL: http://search.cpan.org/dist/Class-Accessor-Chained/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Class-Accessor
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 A chained accessor is one that always returns the object when called
28 with parameters (to set), and the value of the field when called with
31 This module subclasses Class::Accessor in order to provide the same
32 mk_accessors interface.
34 %description -l pl.UTF-8
35 Łańcuchowa metoda accessor to taka, która zawsze zwraca obiekt przy
36 wywołaniu z parametrami (do ustawienia), a wartość pola przy wywołaniu
39 Ten moduł jest podklasą Class::Accessor dla zapewnienia tego samego
40 interfejsu mk_accessors.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/Class/Accessor/*.pm
65 %{perl_vendorlib}/Class/Accessor/Chained