| [4919] | 1 | %define pkgname Test-UseAllModules |
|---|
| 2 | |
|---|
| 3 | # Basic Information |
|---|
| 4 | Name: perl-%{pkgname} |
|---|
| [9118] | 5 | Version: 0.17 |
|---|
| [4919] | 6 | Release: 1%{?_dist_release} |
|---|
| [9118] | 7 | Summary: do use_ok() for all the MANIFESTed modules |
|---|
| 8 | #Summary(ja): ここに日本語で概要を記述してください |
|---|
| 9 | |
|---|
| [4919] | 10 | License: Artistic or GPL |
|---|
| 11 | Group: Development/Libraries |
|---|
| 12 | Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz |
|---|
| [9118] | 13 | |
|---|
| [4919] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| [9118] | 15 | BuildArch: noarch |
|---|
| 16 | BuildRequires: perl(ExtUtils::MakeMaker) |
|---|
| 17 | BuildRequires: perl(Test::Builder) |
|---|
| 18 | BuildRequires: perl(Test::More) |
|---|
| 19 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
|---|
| [4919] | 20 | |
|---|
| 21 | Vendor: Project Vine |
|---|
| 22 | Distribution: Vine Linux |
|---|
| 23 | Packager: yasumichi |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | %description |
|---|
| 27 | I'm sick of writing 00_load.t (or something like that) that'll do use_ok() |
|---|
| 28 | for every module I write. I'm sicker of updating 00_load.t when I add |
|---|
| 29 | another file to the distro. This module reads MANIFEST to find modules to be |
|---|
| 30 | tested and does use_ok() for each of them. Now all you have to do is update |
|---|
| 31 | MANIFEST. You don't have to modify the test any more (hopefully). |
|---|
| 32 | |
|---|
| 33 | #%%description -l ja |
|---|
| 34 | #ここに日本語で詳細を記述してください。 |
|---|
| 35 | |
|---|
| 36 | %prep |
|---|
| [9118] | 37 | %setup -q -n Test-UseAllModules-%{version} |
|---|
| [4919] | 38 | |
|---|
| 39 | %build |
|---|
| [9118] | 40 | perl Makefile.PL INSTALLDIRS=vendor |
|---|
| 41 | make %{?_smp_mflags} |
|---|
| [4919] | 42 | |
|---|
| 43 | %install |
|---|
| [9118] | 44 | rm -rf $RPM_BUILD_ROOT |
|---|
| 45 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 46 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
|---|
| 47 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null |
|---|
| 48 | %{_fixperms} $RPM_BUILD_ROOT |
|---|
| [4919] | 49 | |
|---|
| [9118] | 50 | %clean |
|---|
| 51 | rm -rf $RPM_BUILD_ROOT |
|---|
| [4919] | 52 | |
|---|
| [9118] | 53 | %check |
|---|
| 54 | make test |
|---|
| [4919] | 55 | |
|---|
| 56 | |
|---|
| [9118] | 57 | %files |
|---|
| [4919] | 58 | %defattr(-,root,root) |
|---|
| 59 | %doc Changes README |
|---|
| [9118] | 60 | %dir %{perl_vendorlib}/Test |
|---|
| 61 | %{perl_vendorlib}/Test/* |
|---|
| [4919] | 62 | %{_mandir}/*/* |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | %changelog |
|---|
| [9118] | 66 | * Tue Nov 25 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.17-1 |
|---|
| 67 | - updated to 0.17 |
|---|
| 68 | - built with perl 5.16.3 |
|---|
| 69 | - installed module to vendor_perl |
|---|
| 70 | - added BuildArch: noarch |
|---|
| 71 | - added BR |
|---|
| 72 | |
|---|
| [4919] | 73 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.13-1 |
|---|
| 74 | - initial build for Vine Linux |
|---|