1 | Summary: a unit testing interface for Perl |
---|
2 | Name: perl-Test-Unit |
---|
3 | Version: 0.25 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | License: Perl's |
---|
6 | Group: Development/Libraries |
---|
7 | Source0: http://prdownloads.sourceforge.net/perlunit/Test-Unit-%{version}.tar.gz |
---|
8 | Url: http://perlunit.sourceforge.net/ |
---|
9 | |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | BuildRequires: perl >= 5.004 |
---|
12 | BuildRequires: perl-Class-Inner |
---|
13 | BuildRequires: perl-Devel-Symdump |
---|
14 | BuildRequires: perl-Error |
---|
15 | Requires: perl >= 5.004 |
---|
16 | Requires: perl-Error |
---|
17 | Requires: perl-Devel-Symdump |
---|
18 | Requires: perl-Class-Inner |
---|
19 | Requires: perl-Tk |
---|
20 | BuildArch: noarch |
---|
21 | |
---|
22 | %description |
---|
23 | Test::Unit is the procedural style interface to a sophisticated |
---|
24 | unit testing framework for Perl that is derived from the JUnit |
---|
25 | testing framework for Java by Kent Beck and Erich Gamma. |
---|
26 | |
---|
27 | %prep |
---|
28 | %setup -q -n Test-Unit-%{version} |
---|
29 | |
---|
30 | %build |
---|
31 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
32 | make |
---|
33 | |
---|
34 | %install |
---|
35 | rm -rf $RPM_BUILD_ROOT |
---|
36 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
37 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
38 | |
---|
39 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
40 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
41 | grep -v ^%{_mandir} | |
---|
42 | grep -v perllocal.pod | |
---|
43 | grep -v "\.packlist" > %{name}.files |
---|
44 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
45 | echo "ERROR: EMPTY FILE LIST" |
---|
46 | exit -1 |
---|
47 | fi |
---|
48 | |
---|
49 | %check |
---|
50 | make test |
---|
51 | |
---|
52 | %clean |
---|
53 | rm -rf $RPM_BUILD_ROOT |
---|
54 | |
---|
55 | %files -f %{name}.files |
---|
56 | %defattr(-,root,root) |
---|
57 | %doc Changes README doc examples *.pl AUTHORS ChangeLog |
---|
58 | %{_mandir}/*/* |
---|
59 | %dir %{perl_vendorlib}/Test |
---|
60 | %dir %{perl_vendorlib}/Test/Unit |
---|
61 | %dir %{perl_vendorlib}/Test/Unit/Assertion |
---|
62 | %dir %{perl_vendorlib}/Test/Unit/Runner |
---|
63 | |
---|
64 | %changelog |
---|
65 | * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.25-1vl5 |
---|
66 | - applied new versioning policy |
---|
67 | - added BuildRequires: perl-Class-Inner, perl-Devel-Symdump, perl-Error |
---|
68 | |
---|
69 | * Thu Feb 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.25-0vl1 |
---|
70 | - updated to 0,25 |
---|
71 | - changed Group to Development/Libraires |
---|
72 | - added Requires: perl-Tk |
---|
73 | |
---|
74 | * Sat May 10 2003 IWAI Masaharu <iwai@alib.jp> 0.24-0vl1 |
---|
75 | - version up to 0.24 |
---|
76 | - replace Copyright tag with License tag |
---|
77 | - clarify the License |
---|
78 | - update Requires: |
---|
79 | add perl-Error, perl-Devel-Symdump and perl-Class-Inner |
---|
80 | |
---|
81 | * Fri Apr 5 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.14-0vl1 |
---|
82 | - first release for Vine Linux |
---|
83 | |
---|