- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-MooseX-Emulate-Class-Accessor-Fast.git] / perl-MooseX-Emulate-Class-Accessor-Fast.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    MooseX
6 %define pnam    Emulate-Class-Accessor-Fast
7 Summary:        MooseX::Emulate::Class::Accessor::Fast - Emulate Class::Accessor::Fast behavior using Moose attributes
8 Summary(pl.UTF-8):      MooseX::Emulate::Class::Accessor::Fast - Emuluje zachowanie Class::Accessor::Fast przy użyciu atrybutów Moose
9 Name:           perl-MooseX-Emulate-Class-Accessor-Fast
10 Version:        0.00903
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/MooseX/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  edb0d626207e7db61154b5cc65112638
17 URL:            http://search.cpan.org/dist/MooseX-Emulate-Class-Accessor-Fast/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-ExtUtils-MakeMaker >= 6.42
22 BuildRequires:  perl-Moose >= 0.92
23 BuildRequires:  perl-Test-Exception
24 BuildRequires:  perl-namespace-clean
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 This module attempts to emulate the behavior of Class::Accessor::Fast
31 as accurately as possible using the Moose attribute system. The public
32 API of Class::Accessor::Fast is wholly supported, but the private
33 methods are not. If you are only using the public methods (as you
34 should) migration should be a matter of switching your use base line
35 to a with line.
36
37 %description -l pl.UTF-8
38 Moduł ten próbuje naśladować zachowanie Class::Accessor::Fast tak
39 dokładnie jak to możliwe przy użyciu systemu atrybutu Moose. Publiczny
40 interfejs API do Class::Accessor::Fast jest obsługiwana w całości, ale
41 metody nie są prywatne. Jeśli używane są tylko metody publiczne
42 migracji powinna być sprawna.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} pure_install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Changes README
66 %dir %{perl_vendorlib}/MooseX/Adopt
67 %dir %{perl_vendorlib}/MooseX/Adopt/Class
68 %dir %{perl_vendorlib}/MooseX/Adopt/Class/Accessor
69 %{perl_vendorlib}/MooseX/Adopt/Class/Accessor/Fast.pm
70 %dir %{perl_vendorlib}/MooseX/Emulate
71 %dir %{perl_vendorlib}/MooseX/Emulate/Class
72 %dir %{perl_vendorlib}/MooseX/Emulate/Class/Accessor
73 %{perl_vendorlib}/MooseX/Emulate/Class/Accessor/*.pm
74 %{perl_vendorlib}/MooseX/Emulate/Class/Accessor/Fast
75 %{_mandir}/man3/*
This page took 0.130084 seconds and 4 git commands to generate.