]>
Commit | Line | Data |
---|---|---|
17f734ad AG |
1 | # |
2 | # Conditional build: | |
35837a21 | 3 | %bcond_without tests # do not perform "make test" |
97735afe | 4 | |
17f734ad AG |
5 | %define pdir Class |
6 | %define pnam Accessor-Chained | |
97735afe | 7 | %include /usr/lib/rpm/macros.perl |
17f734ad | 8 | Summary: Class::Accessor::Chained - make chained accessors |
b1083a55 | 9 | Summary(pl.UTF-8): Class::Accessor::Chained - tworzenie łańcuchowych metod accessor |
17f734ad AG |
10 | Name: perl-Class-Accessor-Chained |
11 | Version: 0.01 | |
09a85618 | 12 | Release: 2 |
17f734ad AG |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 9825a1f30a70e55e61bb5660b2bd7365 | |
97735afe | 18 | URL: http://search.cpan.org/dist/Class-Accessor-Chained/ |
17f734ad AG |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
53da0334 | 22 | BuildRequires: perl-Class-Accessor |
17f734ad AG |
23 | %endif |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | A chained accessor is one that always returns the object when called | |
29 | with parameters (to set), and the value of the field when called with | |
30 | no arguments. | |
31 | ||
32 | This module subclasses Class::Accessor in order to provide the same | |
33 | mk_accessors interface. | |
34 | ||
95ff39fa JR |
35 | %description -l pl.UTF-8 |
36 | Łańcuchowa metoda accessor to taka, która zawsze zwraca obiekt przy | |
37 | wywołaniu z parametrami (do ustawienia), a wartość pola przy wywołaniu | |
38 | bez parametrów. | |
53da0334 | 39 | |
95ff39fa | 40 | Ten moduł jest podklasą Class::Accessor dla zapewnienia tego samego |
53da0334 | 41 | interfejsu mk_accessors. |
17f734ad AG |
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}/Class/Accessor/*.pm | |
66 | %{perl_vendorlib}/Class/Accessor/Chained | |
67 | %{_mandir}/man3/* |