1 | %define real_name Class-Accessor-Fast-Contained |
---|
2 | |
---|
3 | Summary: Fast accessors with data containment |
---|
4 | Name: perl-Class-Accessor-Fast-Contained |
---|
5 | Version: 1.01 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL+ |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/dist/Class-Accessor-Fast-Contained/ |
---|
10 | Source0: http://www.cpan.org/modules/by-module/Class/Class-Accessor-Fast-Contained-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
12 | BuildArch: noarch |
---|
13 | BuildRequires: perl |
---|
14 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
15 | BuildRequires: perl(Test::More) |
---|
16 | BuildRequires: perl(Test::Pod) |
---|
17 | BuildRequires: perl(Test::Pod::Coverage) |
---|
18 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
19 | Requires: perl(Class::Accessor) |
---|
20 | |
---|
21 | %description |
---|
22 | Fast accessors with data containment. |
---|
23 | |
---|
24 | %prep |
---|
25 | %setup -q -n %{real_name}-%{version} |
---|
26 | |
---|
27 | %build |
---|
28 | perl Makefile.PL INSTALLDIRS="vendor" |
---|
29 | make %{?_smp_mflags} |
---|
30 | |
---|
31 | %install |
---|
32 | rm -rf %{buildroot} |
---|
33 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
34 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
35 | find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
36 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
37 | find examples/ -type f -exec %{__chmod} a-x {} \; |
---|
38 | |
---|
39 | %clean |
---|
40 | rm -rf %{buildroot} |
---|
41 | |
---|
42 | %files |
---|
43 | %defattr(-, root, root, -) |
---|
44 | %doc Changes INSTALL MANIFEST META.yml README examples/ |
---|
45 | %{_mandir}/man3/* |
---|
46 | %{perl_vendorlib}/* |
---|
47 | |
---|
48 | %changelog |
---|
49 | * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.01-1 |
---|
50 | - initial build for Vine Linux |
---|