]> git.pld-linux.org Git - packages/perl-MooseX-Traits-Pluggable.git/blob - perl-MooseX-Traits-Pluggable.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-MooseX-Traits-Pluggable.git] / perl-MooseX-Traits-Pluggable.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    MooseX
6 %define pnam    Traits-Pluggable
7 Summary:        MooseX::Traits::Pluggable - an extension to MooseX::Traits
8 Summary(pl.UTF-8):      MooseX::Traits::Pluggable - rozszerzenie dla MooseX::Traits
9 Name:           perl-MooseX-Traits-Pluggable
10 Version:        0.10
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:  7d7af140b575c7b1e32044e2876f6401
17 URL:            http://search.cpan.org/dist/MooseX-Traits-Pluggable/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Class-MOP >= 0.84
22 BuildRequires:  perl-List-MoreUtils
23 BuildRequires:  perl-Moose
24 BuildRequires:  perl-Test-Exception
25 BuildRequires:  perl-namespace-autoclean
26 %endif
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 See MooseX::Traits for usage information.
32
33 Adds support for class precedence search for traits and some extra
34 attributes, described below.
35
36 # %description -l pl.UTF-8
37 # TODO
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} pure_install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc Changes README
61 %dir %{perl_vendorlib}/MooseX/Traits
62 %{perl_vendorlib}/MooseX/Traits/*.pm
63 %{_mandir}/man3/*
This page took 0.051483 seconds and 4 git commands to generate.