1 | %define real_name Data-Phrasebook |
---|
2 | |
---|
3 | Summary: Base class for Phrasebook Models |
---|
4 | Name: perl-%{real_name} |
---|
5 | Version: 0.35 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL+ |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/dist/Data-Phrasebook/ |
---|
10 | Source0: http://www.cpan.org/modules/by-module/Data/Data-Phrasebook-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
12 | BuildArch: noarch |
---|
13 | BuildRequires: perl |
---|
14 | BuildRequires: perl(Test::More) >= 0.47 |
---|
15 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
16 | BuildRequires: perl(Module::Pluggable) >= 2.7 |
---|
17 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
18 | Requires: perl(Test::More) >= 0.47 |
---|
19 | Requires: perl(Module::Pluggable) >= 2.7 |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | |
---|
24 | %description |
---|
25 | Base class for Phrasebook Models. |
---|
26 | |
---|
27 | %prep |
---|
28 | %setup -q -n %{real_name}-%{version} |
---|
29 | |
---|
30 | %build |
---|
31 | CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
32 | make %{?_smp_mflags} OPTIMIZE="%{optflags}" |
---|
33 | |
---|
34 | %install |
---|
35 | rm -rf %{buildroot} |
---|
36 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
37 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
38 | find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
39 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
40 | chmod -R u+w %{buildroot}/* |
---|
41 | |
---|
42 | chmod -c -x examples/* |
---|
43 | |
---|
44 | %clean |
---|
45 | %{__rm} -rf %{buildroot} |
---|
46 | |
---|
47 | %files |
---|
48 | %defattr(-, root, root, 0755) |
---|
49 | %doc ChangeLog Changes INSTALL LICENSE MANIFEST MANIFEST.SKIP META.* README |
---|
50 | %doc examples |
---|
51 | %{perl_vendorlib}/* |
---|
52 | %{_mandir}/man3/* |
---|
53 | |
---|
54 | %changelog |
---|
55 | * Wed Nov 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.35-1 |
---|
56 | - updated to 0.35 |
---|
57 | - built with perl 5.16.3 |
---|
58 | |
---|
59 | * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.31-1 |
---|
60 | - initial build for Vine Linux |
---|