]> git.pld-linux.org Git - packages/perl-MooseX-Object-Pluggable.git/blob - perl-MooseX-Object-Pluggable.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-MooseX-Object-Pluggable.git] / perl-MooseX-Object-Pluggable.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    MooseX
6 %define         pnam    Object-Pluggable
7 Summary:        MooseX::Object::Pluggable - Make your classes pluggable
8 Name:           perl-MooseX-Object-Pluggable
9 Version:        0.0011
10 Release:        2
11 License:        GPL v1+ or Artistic
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/MooseX/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5:  ce3b5ffc6d05bdd77102488a85e401d1
15 URL:            http://search.cpan.org/dist/MooseX-Object-Pluggable/
16 BuildRequires:  perl-devel >= 1:5.8.0
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 %if %{with tests}
19 BuildRequires:  perl-Moose >= 0.35
20 %endif
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This module is meant to be loaded as a role from Moose-based classes
26 it will add five methods and four attributes to assist you with the
27 loading and handling of plugins and extensions for plugins. I
28 understand that this may pollute your namespace, however I took great
29 care in using the least ambiguous names possible.
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Makefile.PL \
36         INSTALLDIRS=vendor
37 %{__make}
38
39 %{?with_tests:%{__make} test}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 %{__make} pure_install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc Changes README
53 %dir %{perl_vendorlib}/MooseX/Object
54 %{perl_vendorlib}/MooseX/Object/*.pm
55 %{_mandir}/man3/*
This page took 0.078293 seconds and 4 git commands to generate.