[4913] | 1 | %define pkgname Log-Dump |
---|
| 2 | |
---|
| 3 | # Basic Information |
---|
| 4 | Name: perl-%{pkgname} |
---|
[9142] | 5 | Version: 0.14 |
---|
[4913] | 6 | Release: 1%{?_dist_release} |
---|
[9142] | 7 | Summary: simple logger mainly for debugging |
---|
| 8 | Summary(ja): 主にデバッグのための簡単なロガー |
---|
| 9 | |
---|
[4913] | 10 | License: Artistic or GPL |
---|
| 11 | Group: Development/Libraries |
---|
[9142] | 12 | URL: http://search.cpan.org/dist/Log-Dump/ |
---|
| 13 | |
---|
[4913] | 14 | Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz |
---|
[9142] | 15 | |
---|
[4913] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9142] | 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 |
---|
[4913] | 23 | |
---|
[9142] | 24 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 25 | |
---|
[4913] | 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 |
---|
[9142] | 44 | %setup -q -n Log-Dump-%{version} |
---|
[4913] | 45 | |
---|
| 46 | %build |
---|
[9142] | 47 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 48 | make %{?_smp_mflags} |
---|
[4913] | 49 | |
---|
| 50 | %install |
---|
[9142] | 51 | rm -rf $RPM_BUILD_ROOT |
---|
| 52 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
---|
[4913] | 53 | |
---|
[9142] | 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 \; |
---|
[4913] | 56 | |
---|
[9142] | 57 | %{_fixperms} $RPM_BUILD_ROOT/* |
---|
[4913] | 58 | |
---|
| 59 | |
---|
| 60 | %clean |
---|
[9142] | 61 | rm -rf $RPM_BUILD_ROOT |
---|
[4913] | 62 | |
---|
| 63 | |
---|
[9142] | 64 | %files |
---|
[4913] | 65 | %defattr(-,root,root) |
---|
| 66 | %doc Changes README |
---|
[9142] | 67 | %{perl_vendorlib}/Log/* |
---|
[4913] | 68 | %{_mandir}/*/* |
---|
| 69 | |
---|
| 70 | %changelog |
---|
[9142] | 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 | |
---|
[4913] | 76 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.09-1 |
---|
| 77 | - initial build for Vine Linux |
---|