|
@@ -1,23 +1,33 @@
|
|
Summary: a unit testing interface for Perl
|
|
Summary: a unit testing interface for Perl
|
|
Name: perl-Test-Unit
|
|
Name: perl-Test-Unit
|
|
Version: 0.25
|
|
Version: 0.25
|
|
-Release: 2%{?_dist_release}
|
|
|
|
-License: Perl's
|
|
|
|
|
|
+Release: 3%{?_dist_release}
|
|
|
|
+License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
|
|
+URL: http://perlunit.sourceforge.net/
|
|
|
|
+
|
|
Source0: http://prdownloads.sourceforge.net/perlunit/Test-Unit-%{version}.tar.gz
|
|
Source0: http://prdownloads.sourceforge.net/perlunit/Test-Unit-%{version}.tar.gz
|
|
-Url: http://perlunit.sourceforge.net/
|
|
|
|
|
|
+# https://rt.cpan.org/Public/Bug/Display.html?id=69025
|
|
|
|
+Patch0: tests5.14.patch
|
|
|
|
+# https://rt.cpan.org/Public/Bug/Display.html?id=77779
|
|
|
|
+Patch1: perl5.16.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: perl >= 5.004
|
|
|
|
-BuildRequires: perl-Class-Inner
|
|
|
|
-BuildRequires: perl-Devel-Symdump
|
|
|
|
-BuildRequires: perl-Error
|
|
|
|
-Requires: perl >= 5.004
|
|
|
|
-Requires: perl-Error
|
|
|
|
-Requires: perl-Devel-Symdump
|
|
|
|
-Requires: perl-Class-Inner
|
|
|
|
-Requires: perl-Tk
|
|
|
|
-BuildArch: noarch
|
|
|
|
|
|
+BuildArch: noarch
|
|
|
|
+BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
+BuildRequires: perl(Carp)
|
|
|
|
+BuildRequires: perl(Class::Inner)
|
|
|
|
+BuildRequires: perl(Data::Dumper)
|
|
|
|
+BuildRequires: perl(Devel::Symdump)
|
|
|
|
+BuildRequires: perl(Error)
|
|
|
|
+BuildRequires: perl(Exporter)
|
|
|
|
+BuildRequires: perl(Test)
|
|
|
|
+BuildRequires: perl(Tk)
|
|
|
|
+BuildRequires: perl(Tk::Canvas)
|
|
|
|
+BuildRequires: perl(Tk::Derived)
|
|
|
|
+BuildRequires: perl(Tk::DialogBox)
|
|
|
|
+BuildRequires: perl(Tk::ROText)
|
|
|
|
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
%description
|
|
%description
|
|
Test::Unit is the procedural style interface to a sophisticated
|
|
Test::Unit is the procedural style interface to a sophisticated
|
|
@@ -26,6 +36,10 @@ testing framework for Java by Kent Beck and Erich Gamma.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n Test-Unit-%{version}
|
|
%setup -q -n Test-Unit-%{version}
|
|
|
|
+%patch0 -p1
|
|
|
|
+%patch1 -p1
|
|
|
|
+sed -i 's/\r//' examples/Experimental/Sample.pm
|
|
|
|
+chmod a+x TkTestRunner.pl TestRunner.pl
|
|
|
|
|
|
%build
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
|
@@ -33,18 +47,11 @@ make
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
-mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
|
|
-make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
-
|
|
|
|
-find $RPM_BUILD_ROOT%{_prefix} -type f -print |
|
|
|
|
- sed "s@^$RPM_BUILD_ROOT@@g" |
|
|
|
|
- grep -v ^%{_mandir} |
|
|
|
|
- grep -v perllocal.pod |
|
|
|
|
- grep -v "\.packlist" > %{name}.files
|
|
|
|
-if [ "$(cat %{name}.files)X" = "X" ] ; then
|
|
|
|
- echo "ERROR: EMPTY FILE LIST"
|
|
|
|
- exit -1
|
|
|
|
-fi
|
|
|
|
|
|
+make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
+
|
|
|
|
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
+chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
%check
|
|
%check
|
|
make test
|
|
make test
|
|
@@ -52,16 +59,21 @@ make test
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%files -f %{name}.files
|
|
|
|
|
|
+%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc Changes README doc examples *.pl AUTHORS ChangeLog
|
|
|
|
-%{_mandir}/*/*
|
|
|
|
-%dir %{perl_vendorlib}/Test
|
|
|
|
-%dir %{perl_vendorlib}/Test/Unit
|
|
|
|
-%dir %{perl_vendorlib}/Test/Unit/Assertion
|
|
|
|
-%dir %{perl_vendorlib}/Test/Unit/Runner
|
|
|
|
|
|
+%doc AUTHORS ChangeLog Changes COPYING.Artistic COPYING.GPL-2 doc examples README
|
|
|
|
+%{perl_vendorlib}/*
|
|
|
|
+%{_mandir}/man3/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Dec 17 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.25-3
|
|
|
|
+- rebuilt with perl 5.16.3
|
|
|
|
+- added Patch0 and 1 from Fedora
|
|
|
|
+ * Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.25-13
|
|
|
|
+ - apply patch to for Test::Unit::TestBase RT#77779
|
|
|
|
+ * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.25-11
|
|
|
|
+ - apply upstream patch for tests RT#69025
|
|
|
|
+
|
|
* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.25-2
|
|
* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.25-2
|
|
- rebuild with perl-5.12.3
|
|
- rebuild with perl-5.12.3
|
|
|
|
|