1 | %define pkgname Data-Dump |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 1.22 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Summary: Pretty printing of data structures |
---|
8 | Summary(ja): データ構造をきれいに出力するためのモジュール |
---|
9 | |
---|
10 | License: Artistic or GPL |
---|
11 | Group: Development/Libraries |
---|
12 | Source0: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{pkgname}-%{version}.tar.gz |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildArch: noarch |
---|
16 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
17 | BuildRequires: perl(Test) |
---|
18 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | Packager: yasumichi |
---|
23 | |
---|
24 | |
---|
25 | %description |
---|
26 | This module provide a few functions that traverse their argument and |
---|
27 | produces a string as its result. The string contains Perl code that, when |
---|
28 | evaled, produces a deep copy of the original arguments. |
---|
29 | |
---|
30 | #%%description -l ja |
---|
31 | #ここに日本語で詳細を記述してください。 |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -q -n Data-Dump-%{version} |
---|
35 | |
---|
36 | %build |
---|
37 | perl Makefile.PL INSTALLDIRS=vendor |
---|
38 | make %{?_smp_mflags} |
---|
39 | |
---|
40 | %install |
---|
41 | rm -rf $RPM_BUILD_ROOT |
---|
42 | |
---|
43 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
44 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
45 | find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
46 | find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
47 | chmod -R u+w $RPM_BUILD_ROOT/* |
---|
48 | |
---|
49 | %clean |
---|
50 | rm -rf $RPM_BUILD_ROOT |
---|
51 | |
---|
52 | %check |
---|
53 | make test |
---|
54 | |
---|
55 | %files |
---|
56 | %defattr(-,root,root) |
---|
57 | %doc Changes README |
---|
58 | %{perl_vendorlib}/Data/* |
---|
59 | %{_mandir}/*/* |
---|
60 | |
---|
61 | |
---|
62 | %changelog |
---|
63 | * Wed Nov 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.22-1 |
---|
64 | - updated to 1.22 |
---|
65 | - used %%{perl_vendorlib} instead of %%{perl_sitelib} |
---|
66 | - built with perl 5.16.3 |
---|
67 | |
---|
68 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.20-1 |
---|
69 | - initial build for Vine Linux |
---|