1 | %define pkgname Pod-PerldocJp |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.16 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/~ishigaki/Pod-PerldocJp/ |
---|
10 | |
---|
11 | Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildArch: noarch |
---|
15 | |
---|
16 | Vendor: Project Vine |
---|
17 | Distribution: Vine Linux |
---|
18 | Packager: yasumichi |
---|
19 | |
---|
20 | Summary: perldoc that also checks perldoc.jp |
---|
21 | Summary(ja): 日本語対応の perldoc |
---|
22 | |
---|
23 | # Dependency |
---|
24 | Requires: perl |
---|
25 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
26 | |
---|
27 | BuildRequires: perl |
---|
28 | BuildRequires: perl-Path-Extended |
---|
29 | BuildRequires: perl-Term-Encoding |
---|
30 | BuildRequires: perl-Test-Pod |
---|
31 | BuildRequires: perl-Test-Pod-Coverage |
---|
32 | BuildRequires: perl-Test-UseAllModules |
---|
33 | |
---|
34 | %description |
---|
35 | This is a drop-in-replacement for perldoc for Japanese people. Usage is the |
---|
36 | same, except it can look for a translation at http://perldoc.jp with -J |
---|
37 | option. |
---|
38 | |
---|
39 | %description -l ja |
---|
40 | perldocjp は、日本人のために perldoc を置き換えます。使い方は、-J オプション |
---|
41 | を利用して http://perldoc.jp にある翻訳を探すことができる以外は、perldoc と |
---|
42 | 同様です。 |
---|
43 | |
---|
44 | %prep |
---|
45 | %setup -q -n Pod-PerldocJp-%{version} |
---|
46 | |
---|
47 | %build |
---|
48 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
49 | %{__make} %{?_smp_mflags} |
---|
50 | |
---|
51 | %install |
---|
52 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
53 | %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT} |
---|
54 | |
---|
55 | # remove unnecessary files. |
---|
56 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';' |
---|
57 | find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';' |
---|
58 | find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';' |
---|
59 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
60 | |
---|
61 | # generate file list |
---|
62 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
63 | sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files |
---|
64 | |
---|
65 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
66 | echo "ERROR: EMPTY FILE LIST" |
---|
67 | exit -1 |
---|
68 | fi |
---|
69 | |
---|
70 | %clean |
---|
71 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
72 | |
---|
73 | %check |
---|
74 | make test |
---|
75 | |
---|
76 | %files -f %{name}.files |
---|
77 | %defattr(-,root,root) |
---|
78 | %doc Changes README |
---|
79 | %dir %{perl_vendorlib}/Pod/PerldocJp |
---|
80 | |
---|
81 | %changelog |
---|
82 | * Thu Dec 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.16-1 |
---|
83 | - updated to 0.16 |
---|
84 | - built with perl 5.16.3 |
---|
85 | - moved to Development/Libraries Group |
---|
86 | - added URL tag |
---|
87 | |
---|
88 | * Wed Jul 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.14-2 |
---|
89 | - apply wiki:Development/PerlModulePackaging |
---|
90 | - exclude man pages |
---|
91 | |
---|
92 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.14-1 |
---|
93 | - initial build for Vine Linux |
---|