1 | %define pkgname Test-UseAllModules |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.13 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | Packager: yasumichi |
---|
15 | |
---|
16 | Summary: do use_ok() for all the MANIFESTed modules |
---|
17 | #Summary(ja): ここに日本語で概要を記述してください |
---|
18 | |
---|
19 | # Dependency |
---|
20 | Requires: perl |
---|
21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
22 | |
---|
23 | BuildRequires: perl |
---|
24 | |
---|
25 | %description |
---|
26 | I'm sick of writing 00_load.t (or something like that) that'll do use_ok() |
---|
27 | for every module I write. I'm sicker of updating 00_load.t when I add |
---|
28 | another file to the distro. This module reads MANIFEST to find modules to be |
---|
29 | tested and does use_ok() for each of them. Now all you have to do is update |
---|
30 | MANIFEST. You don't have to modify the test any more (hopefully). |
---|
31 | |
---|
32 | #%%description -l ja |
---|
33 | #ここに日本語で詳細を記述してください。 |
---|
34 | |
---|
35 | %prep |
---|
36 | %setup -q -n Test-UseAllModules-0.13 |
---|
37 | |
---|
38 | %build |
---|
39 | perl Makefile.PL |
---|
40 | %{__make} |
---|
41 | |
---|
42 | %install |
---|
43 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
44 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
45 | |
---|
46 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
47 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
48 | grep -v ^%{_mandir} | |
---|
49 | grep -v perllocal.pod | |
---|
50 | grep -v "\.packlist" > %{name}.files |
---|
51 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
52 | echo "ERROR: EMPTY FILE LIST" |
---|
53 | exit -1 |
---|
54 | fi |
---|
55 | |
---|
56 | # remove unnecessary files. |
---|
57 | %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
58 | %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Test/UseAllModules/.packlist |
---|
59 | |
---|
60 | |
---|
61 | %clean |
---|
62 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
63 | |
---|
64 | |
---|
65 | %files -f %{name}.files |
---|
66 | %defattr(-,root,root) |
---|
67 | %doc Changes README |
---|
68 | %{_mandir}/*/* |
---|
69 | |
---|
70 | |
---|
71 | %changelog |
---|
72 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.13-1 |
---|
73 | - initial build for Vine Linux |
---|