1 | %define pkgname Log-Dump |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.14 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Summary: simple logger mainly for debugging |
---|
8 | Summary(ja): 主にデバッグのための簡単なロガー |
---|
9 | |
---|
10 | License: Artistic or GPL |
---|
11 | Group: Development/Libraries |
---|
12 | URL: http://search.cpan.org/dist/Log-Dump/ |
---|
13 | |
---|
14 | Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildArch: noarch |
---|
18 | # Dependency |
---|
19 | BuildRequires: perl(ExtUtils::MakeMaker::CPANfile) >= 0.06 |
---|
20 | BuildRequires: perl(IO::Capture) |
---|
21 | BuildRequires: perl(Test::More) >= 0.98 |
---|
22 | BuildRequires: perl(Test::UseAllModules) >= 0.09 |
---|
23 | |
---|
24 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
25 | |
---|
26 | Vendor: Project Vine |
---|
27 | Distribution: Vine Linux |
---|
28 | Packager: yasumichi |
---|
29 | |
---|
30 | |
---|
31 | %description |
---|
32 | Log::Dump is a simple logger mix-in mainly for debugging. This installs five |
---|
33 | methods into a caller (the class that used Log::Dump) via Sub::Install. The |
---|
34 | point is you don't need to load extra dumper modules or you don't need to |
---|
35 | concatenate messages. Just log things and they will be dumped (and |
---|
36 | concatenated if necessary) to stderr, and to a file if you prefer. Also, you |
---|
37 | can use these logging methods as class methods or object methods (though |
---|
38 | usually you don't want to mix them, especially when you're doing something |
---|
39 | special). |
---|
40 | |
---|
41 | #%%description -l ja |
---|
42 | |
---|
43 | %prep |
---|
44 | %setup -q -n Log-Dump-%{version} |
---|
45 | |
---|
46 | %build |
---|
47 | perl Makefile.PL INSTALLDIRS=vendor |
---|
48 | make %{?_smp_mflags} |
---|
49 | |
---|
50 | %install |
---|
51 | rm -rf $RPM_BUILD_ROOT |
---|
52 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
---|
53 | |
---|
54 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; |
---|
55 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
56 | |
---|
57 | %{_fixperms} $RPM_BUILD_ROOT/* |
---|
58 | |
---|
59 | |
---|
60 | %clean |
---|
61 | rm -rf $RPM_BUILD_ROOT |
---|
62 | |
---|
63 | |
---|
64 | %files |
---|
65 | %defattr(-,root,root) |
---|
66 | %doc Changes README |
---|
67 | %{perl_vendorlib}/Log/* |
---|
68 | %{_mandir}/*/* |
---|
69 | |
---|
70 | %changelog |
---|
71 | * Sun Dec 7 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.14-1 |
---|
72 | - updated to 0.14 |
---|
73 | - moved to noarch |
---|
74 | - added BuildRequires: perl(ExtUtils::MakeMaker::CPANfile), perl(IO::Capture), perl(Test::More) and perl(Test::UseAllModules) |
---|
75 | |
---|
76 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.09-1 |
---|
77 | - initial build for Vine Linux |
---|