2010-09-09 14:05:08 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Test-Simple (Version 0.96)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-05-07 10:17:13 +00:00
|
|
|
# norootforbuild
|
|
|
|
|
2010-09-09 14:05:08 +00:00
|
|
|
%bcond_with pod
|
|
|
|
|
2010-08-27 00:56:15 +00:00
|
|
|
Name: perl-Test-Simple
|
2010-09-09 14:05:08 +00:00
|
|
|
%define cpan_name Test-Simple
|
2010-08-27 00:56:15 +00:00
|
|
|
Summary: Basic utilities for writing tests
|
2011-02-23 08:42:56 +00:00
|
|
|
Version: 0.98
|
2010-09-09 14:05:08 +00:00
|
|
|
Release: 1
|
|
|
|
License: GPL+ or Artistic
|
2010-08-27 00:56:15 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-09-09 14:05:08 +00:00
|
|
|
Url: http://search.cpan.org/dist/Test-Simple/
|
|
|
|
#Source: http://www.cpan.org/modules/by-module/Test/Test-Simple-%{version}.tar.gz
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:53:00 +00:00
|
|
|
%{perl_requires}
|
2010-08-27 00:56:15 +00:00
|
|
|
BuildRequires: perl
|
2010-11-30 14:20:41 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
Buildrequires: perl-devel
|
|
|
|
%endif
|
2010-09-09 14:05:08 +00:00
|
|
|
BuildRequires: perl-macros
|
|
|
|
%if %{with pod}
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
|
|
|
%endif
|
2010-08-27 00:56:15 +00:00
|
|
|
BuildRequires: perl(Test::Harness) >= 2.03
|
|
|
|
Requires: perl(Test::Harness) >= 2.03
|
2008-05-07 10:17:13 +00:00
|
|
|
|
|
|
|
%description
|
2010-08-27 00:56:15 +00:00
|
|
|
This is an extremely simple, extremely basic module for writing tests
|
|
|
|
suitable for CPAN modules and other pursuits. If you wish to do more
|
|
|
|
complicated testing, use the Test::More module (a drop-in replacement for
|
|
|
|
this one).
|
2008-05-07 10:17:13 +00:00
|
|
|
|
2010-09-09 14:05:08 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Michael G Schwern <schwern@pobox.com>
|
|
|
|
|
2008-05-07 10:17:13 +00:00
|
|
|
%prep
|
2010-09-09 14:05:08 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-05-07 10:17:13 +00:00
|
|
|
|
|
|
|
%build
|
2010-09-09 14:05:08 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2008-05-07 10:17:13 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2010-11-30 10:15:11 +00:00
|
|
|
%perl_process_packlist
|
2010-09-09 14:05:08 +00:00
|
|
|
%perl_gen_filelist
|
2008-05-07 10:17:13 +00:00
|
|
|
|
|
|
|
%clean
|
2010-09-09 14:05:08 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2008-05-07 10:17:13 +00:00
|
|
|
|
2010-09-09 14:05:08 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
2010-08-27 00:56:15 +00:00
|
|
|
%doc Changes README TODO
|
2008-05-07 10:17:13 +00:00
|
|
|
|
2010-09-09 14:05:08 +00:00
|
|
|
%changelog
|