1 | %define pkgname Log-Dispatch-FileRotate |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 1.19 |
---|
6 | Release: 2%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKPF/%{pkgname}-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | BuildArch: noarch |
---|
12 | |
---|
13 | Vendor: Project Vine |
---|
14 | Distribution: Vine Linux |
---|
15 | Packager: yasumichi |
---|
16 | |
---|
17 | Summary: Log::Dispatch::FileRotate - Log to files that archive/rotate themselves |
---|
18 | #Summary(ja): |
---|
19 | |
---|
20 | # Dependency |
---|
21 | Requires: perl |
---|
22 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
23 | |
---|
24 | BuildRequires: perl |
---|
25 | |
---|
26 | %description |
---|
27 | This module provides a simple object for logging to files under the |
---|
28 | Log::Dispatch::* system, and automatically rotating them according to |
---|
29 | different constraints. This is basically a Log::Dispatch::File wrapper |
---|
30 | with additions. To that end the arguments |
---|
31 | |
---|
32 | name, min_level, filename and mode |
---|
33 | |
---|
34 | behave the same as Log::Dispatch::File. So see its man page (perldoc |
---|
35 | Log::Dispatch::File) |
---|
36 | |
---|
37 | #%%description -l ja |
---|
38 | |
---|
39 | %prep |
---|
40 | %setup -q -n Log-Dispatch-FileRotate-1.19 |
---|
41 | |
---|
42 | %build |
---|
43 | perl Makefile.PL |
---|
44 | %{__make} |
---|
45 | |
---|
46 | %install |
---|
47 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
48 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
49 | |
---|
50 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
51 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
52 | grep -v ^%{_mandir} | |
---|
53 | grep -v perllocal.pod | |
---|
54 | grep -v "\.packlist" > %{name}.files |
---|
55 | |
---|
56 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
57 | echo "ERROR: EMPTY FILE LIST" |
---|
58 | exit -1 |
---|
59 | fi |
---|
60 | |
---|
61 | # remove unnecessary files. |
---|
62 | %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
63 | find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';' |
---|
64 | find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';' |
---|
65 | |
---|
66 | |
---|
67 | %clean |
---|
68 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
69 | |
---|
70 | |
---|
71 | %files -f %{name}.files |
---|
72 | %defattr(-,root,root) |
---|
73 | %doc Changes README |
---|
74 | |
---|
75 | %changelog |
---|
76 | * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.19-2 |
---|
77 | - rebuild with perl-5.16 |
---|
78 | |
---|
79 | * Thu Jan 26 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.19-1 |
---|
80 | - initial build for Vine Linux |
---|