]> git.pld-linux.org Git - packages/perl-Class-Accessor-Chained.git/blame - perl-Class-Accessor-Chained.spec
use generic url
[packages/perl-Class-Accessor-Chained.git] / perl-Class-Accessor-Chained.spec
CommitLineData
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 8Summary: Class::Accessor::Chained - make chained accessors
b1083a55 9Summary(pl.UTF-8): Class::Accessor::Chained - tworzenie łańcuchowych metod accessor
17f734ad
AG
10Name: perl-Class-Accessor-Chained
11Version: 0.01
09a85618 12Release: 2
17f734ad
AG
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17# Source0-md5: 9825a1f30a70e55e61bb5660b2bd7365
97735afe 18URL: http://search.cpan.org/dist/Class-Accessor-Chained/
17f734ad
AG
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
53da0334 22BuildRequires: perl-Class-Accessor
17f734ad
AG
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28A chained accessor is one that always returns the object when called
29with parameters (to set), and the value of the field when called with
30no arguments.
31
32This module subclasses Class::Accessor in order to provide the same
33mk_accessors interface.
34
95ff39fa
JR
35%description -l pl.UTF-8
36Łańcuchowa metoda accessor to taka, która zawsze zwraca obiekt przy
37wywołaniu z parametrami (do ustawienia), a wartość pola przy wywołaniu
38bez parametrów.
53da0334 39
95ff39fa 40Ten moduł jest podklasą Class::Accessor dla zapewnienia tego samego
53da0334 41interfejsu 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
54rm -rf $RPM_BUILD_ROOT
55
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
59%clean
60rm -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/*
This page took 0.094315 seconds and 4 git commands to generate.