1 | %define pkgname Module-Find |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.12 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Summary: Find and use installed modules in a (sub)category |
---|
8 | Summary(ja): (サブ)カテゴリー内にインストールされたモジュールを見つけて利用する |
---|
9 | |
---|
10 | License: Artistic or GPL |
---|
11 | Group: Development/Libraries |
---|
12 | URL: http://search.cpan.org/~crenz/Module-Find/ |
---|
13 | |
---|
14 | Source0: http://search.cpan.org/CPAN/authors/id/C/CR/CRENZ/%{pkgname}-%{version}.tar.gz |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildArch: noarch |
---|
18 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
19 | # Dependency |
---|
20 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
21 | |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
24 | Packager: yasumichi |
---|
25 | |
---|
26 | |
---|
27 | %description |
---|
28 | Module::Find lets you find and use modules in categories. This can be very |
---|
29 | useful for auto-detecting driver or plugin modules. You can differentiate |
---|
30 | between looking in the category itself or in all subcategories. |
---|
31 | |
---|
32 | If you want Module::Find to search in a certain directory on your harddisk |
---|
33 | (such as the plugins directory of your software installation), make sure you |
---|
34 | modify @INC before you call the Module::Find functions. |
---|
35 | |
---|
36 | #%%description -l ja |
---|
37 | #ここに日本語で詳細を記述してください。 |
---|
38 | |
---|
39 | %prep |
---|
40 | %setup -q -n Module-Find-%{version} |
---|
41 | |
---|
42 | %build |
---|
43 | perl Makefile.PL INSTALLDIRS=vendor |
---|
44 | make %{?_smp_mflags} |
---|
45 | |
---|
46 | %install |
---|
47 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
48 | make pure_install DESTDIR=%{buildroot} |
---|
49 | |
---|
50 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
51 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
52 | %{_fixperms} $RPM_BUILD_ROOT |
---|
53 | |
---|
54 | #%{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
55 | #%{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Module/Find/.packlist |
---|
56 | |
---|
57 | %check |
---|
58 | make test |
---|
59 | |
---|
60 | %clean |
---|
61 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
62 | |
---|
63 | |
---|
64 | %files |
---|
65 | %defattr(-,root,root) |
---|
66 | %doc Changes README |
---|
67 | %{perl_vendorlib}/Module |
---|
68 | %{_mandir}/man3/* |
---|
69 | |
---|
70 | |
---|
71 | %changelog |
---|
72 | * Wed Nov 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.12-1 |
---|
73 | - updated to 0.12 |
---|
74 | - built with perl 5.16.3 |
---|
75 | - installed module to vendor_perl |
---|
76 | - added URL tag |
---|
77 | |
---|
78 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.10-1 |
---|
79 | - initial build for Vine Linux |
---|