[perl-TestML] Import

Petr Pisar ppisar at fedoraproject.org
Thu Aug 7 12:42:17 UTC 2014


commit 8c3ff719c4c94cd537170c61e98891fd14fb5041
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Aug 7 14:24:45 2014 +0200

    Import

 .gitignore       |    1 +
 perl-TestML.spec |   79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cfad9e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/TestML-0.37.tar.gz
diff --git a/perl-TestML.spec b/perl-TestML.spec
new file mode 100644
index 0000000..f0e31bc
--- /dev/null
+++ b/perl-TestML.spec
@@ -0,0 +1,79 @@
+Name:           perl-TestML
+Version:        0.37
+Release:        1%{?dist}
+Summary:        Generic software Testing Meta Language
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/TestML/
+Source0:        http://www.cpan.org/authors/id/I/IN/INGY/TestML-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time:
+BuildRequires:  perl(constant)
+# Cwd not used at test-time
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Basename)
+# IO::All not used at test-time
+# Module::Install::Base not used at test-time
+# Used Pegex::Parser is not versioned, depend on Pegex version
+BuildRequires:  perl(Pegex) >= 0.30
+BuildRequires:  perl(Pegex::Parser)
+# Template::Toolkit::Simple not used at test-time
+BuildRequires:  perl(Test::Builder)
+# Text::Diff not used at test-time
+# vars not used at test-time
+BuildRequires:  perl(YAML::XS)
+# Tests:
+BuildRequires:  perl(base)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Test::More)
+# Optional tests:
+BuildRequires:  perl(Capture::Tiny)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+# Used Pegex::Parser is not versioned, depend on Pegex version
+Requires:       perl(Pegex) >= 0.30
+Requires:       perl(Text::Diff)
+
+%description
+TestML <http://www.testml.org/> is a generic, programming language agnostic,
+meta language for writing unit tests. The idea is that you can use the same
+test files in multiple implementations of a given programming idea. Then you
+can be more certain that your application written in, say, Python matches your
+Perl implementation.
+
+In a nutshell you write a bunch of data tests that have inputs and expected
+results. Using a simple syntax, you specify what functions the data must pass
+through to produce the expected results. You use a bridge class to write the
+data functions that pass the data through your application.
+
+In Perl 5, TestML module is the evolution of the Test::Base module. It has
+a superset of Test:Base's goals. The data markup syntax is currently exactly
+the same as Test::Base.
+
+
+%prep
+%setup -q -n TestML-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes CONTRIBUTING LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Wed Jul 30 2014 Petr Pisar <ppisar at redhat.com> 0.37-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..3814d65 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+465de57198ea40a0d2b4abf6b20b71d6  TestML-0.37.tar.gz


More information about the scm-commits mailing list