3 %bcond_without tests # do not perform "make test"
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
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
20 BuildRequires: perl-Moose >= 0.55_04
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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_".
31 If you define an attribute with a leading underscore, then the set
32 method will start with "_set_".
34 If you explicitly set a "reader" or "writer" name when creating an
35 attribute, then that attribute's naming scheme is left unchanged.
37 The name "semi-affordance" comes from David Wheeler's Class::Meta
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.
46 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
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