1 | %define real_name Data-Phrasebook-Loader-YAML |
---|
2 | |
---|
3 | Summary: Absract your phrases with YAML |
---|
4 | Name: perl-%{real_name} |
---|
5 | Version: 0.09 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL+ |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/dist/Data-Phrasebook-Loader-YAML/ |
---|
10 | Source0: http://www.cpan.org/modules/by-module/Data/Data-Phrasebook-Loader-YAML-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
12 | |
---|
13 | BuildArch: noarch |
---|
14 | BuildRequires: perl |
---|
15 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
16 | BuildRequires: perl(Data::Phrasebook) >= 0.18 |
---|
17 | BuildRequires: perl(Test::More) >= 0.47 |
---|
18 | BuildRequires: perl(YAML) >= 0.35 |
---|
19 | |
---|
20 | %description |
---|
21 | Absract your phrases with YAML. |
---|
22 | |
---|
23 | %prep |
---|
24 | %setup -q -n %{real_name}-%{version} |
---|
25 | |
---|
26 | %build |
---|
27 | CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
28 | make %{?_smp_mflags} OPTIMIZE="%{optflags}" |
---|
29 | |
---|
30 | %install |
---|
31 | rm -rf %{buildroot} |
---|
32 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
33 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
34 | find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
35 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
36 | chmod -R u+w %{buildroot}/* |
---|
37 | |
---|
38 | %clean |
---|
39 | rm -rf %{buildroot} |
---|
40 | |
---|
41 | %files |
---|
42 | %defattr(-, root, root, -) |
---|
43 | %doc Artistic COPYING Changes INSTALL LICENSE MANIFEST MANIFEST.SKIP META.yml README examples |
---|
44 | %{_mandir}/man3/* |
---|
45 | %{perl_vendorlib}/* |
---|
46 | |
---|
47 | %changelog |
---|
48 | * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.09-1 |
---|
49 | - initial build for Vine Linux |
---|