]> git.pld-linux.org Git - SPECS.git/blob - perl-MooseX-SemiAffordanceAccessor.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-MooseX-SemiAffordanceAccessor.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    MooseX
6 %define pnam    SemiAffordanceAccessor
7 Summary:        MooseX::SemiAffordanceAccessor - Name your accessors foo() and set_foo()
8 Summary(pl.UTF-8):      MooseX::SemiAffordanceAccessor - nazywa metody dostępowe foo() i set_foo()
9 Name:           perl-MooseX-SemiAffordanceAccessor
10 Version:        0.09
11 Release:        1
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/MooseX/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  36411224d28a62f83b33e19e5f683039
16 URL:            http://search.cpan.org/dist/MooseX-SemiAffordanceAccessor/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-Moose >= 0.55_04
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This module does not provide any methods. Simply loading it changes
27 the default naming policy for the loading class so that accessors are
28 separated into get and set methods. The get methods have the same name
29 as the accessor, while set methods are prefixed with "set_".
30
31 If you define an attribute with a leading underscore, then the set
32 method will start with "_set_".
33
34 If you explicitly set a "reader" or "writer" name when creating an
35 attribute, then that attribute's naming scheme is left unchanged.
36
37 The name "semi-affordance" comes from David Wheeler's Class::Meta
38 module.
39
40 %description -l pl.UTF-8
41 Moduł ten nie dostarcza żanych metod. Załadowanie go zmienia domyślną
42 politykę nazywania dla ładowanych klas, tak że metody dostępowe są
43 rozdzielone na metody get i set.
44
45 %prep
46 %setup -q -n %{pdir}-%{pnam}-%{version}
47
48 %build
49 %{__perl} Makefile.PL \
50         INSTALLDIRS=vendor
51 %{__make}
52
53 %{?with_tests:%{__make} test}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc Changes README
67 %{perl_vendorlib}/MooseX/*.pm
68 %dir %{perl_vendorlib}/MooseX/SemiAffordanceAccessor/
69 %dir %{perl_vendorlib}/MooseX/SemiAffordanceAccessor/Role
70 %{perl_vendorlib}/MooseX/SemiAffordanceAccessor/Role/Attribute.pm
71 %{_mandir}/man3/*
This page took 0.918091 seconds and 3 git commands to generate.