[4917] | 1 | %define pkgname Module-Find |
---|
| 2 | |
---|
| 3 | # Basic Information |
---|
| 4 | Name: perl-%{pkgname} |
---|
[9106] | 5 | Version: 0.12 |
---|
[4917] | 6 | Release: 1%{?_dist_release} |
---|
[9106] | 7 | Summary: Find and use installed modules in a (sub)category |
---|
| 8 | Summary(ja): (サブ)カテゴリー内にインストールされたモジュールを見つけて利用する |
---|
| 9 | |
---|
[4917] | 10 | License: Artistic or GPL |
---|
| 11 | Group: Development/Libraries |
---|
[9106] | 12 | URL: http://search.cpan.org/~crenz/Module-Find/ |
---|
| 13 | |
---|
[4917] | 14 | Source0: http://search.cpan.org/CPAN/authors/id/C/CR/CRENZ/%{pkgname}-%{version}.tar.gz |
---|
[9106] | 15 | |
---|
[4917] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9106] | 17 | BuildArch: noarch |
---|
| 18 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 19 | # Dependency |
---|
| 20 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[4917] | 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 |
---|
[9106] | 40 | %setup -q -n Module-Find-%{version} |
---|
[4917] | 41 | |
---|
| 42 | %build |
---|
[9106] | 43 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 44 | make %{?_smp_mflags} |
---|
[4917] | 45 | |
---|
| 46 | %install |
---|
[9106] | 47 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 48 | make pure_install DESTDIR=%{buildroot} |
---|
[4917] | 49 | |
---|
[9106] | 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 |
---|
[4917] | 53 | |
---|
[9106] | 54 | #%{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
| 55 | #%{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Module/Find/.packlist |
---|
[4917] | 56 | |
---|
[9106] | 57 | %check |
---|
| 58 | make test |
---|
[4917] | 59 | |
---|
| 60 | %clean |
---|
[9106] | 61 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
[4917] | 62 | |
---|
| 63 | |
---|
[9106] | 64 | %files |
---|
[4917] | 65 | %defattr(-,root,root) |
---|
| 66 | %doc Changes README |
---|
[9106] | 67 | %{perl_vendorlib}/Module |
---|
| 68 | %{_mandir}/man3/* |
---|
[4917] | 69 | |
---|
| 70 | |
---|
| 71 | %changelog |
---|
[9106] | 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 | |
---|
[4917] | 78 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.10-1 |
---|
| 79 | - initial build for Vine Linux |
---|