]> git.pld-linux.org Git - packages/perl-Class-Mix.git/blob - perl-Class-Mix.spec
- up to 0.006
[packages/perl-Class-Mix.git] / perl-Class-Mix.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Class
6 %define         pnam    Mix
7 %include        /usr/lib/rpm/macros.perl
8 Summary:        Class::Mix - dynamic class mixing
9 Name:           perl-Class-Mix
10 Version:        0.006
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/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  14f9d08abf878afc1592f3861cf98be4
17 URL:            http://search.cpan.org/dist/Class-Mix/
18 BuildRequires:  perl-Params-Classify
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 The mix_class function provided by this module dynamically generates
26 `anonymous' classes with specified inheritance.
27
28 %prep
29 %setup -q -n %{pdir}-%{pnam}-%{version}
30
31 %build
32 %{__perl} Build.PL \
33         --destdir=$RPM_BUILD_ROOT \
34         --installdirs=vendor
35 ./Build
36
37 %{?with_tests:./Build test}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 ./Build install
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %{perl_vendorlib}/Class/Mix.pm
50 %{_mandir}/man3/*
This page took 0.045818 seconds and 3 git commands to generate.