[perl-Statistics-Contingency: 2/7] Initial package for Fedora

Mathieu Bridon bochecha at fedoraproject.org
Fri Sep 21 02:55:28 UTC 2012


commit cec082e023451b9bd4c290c97cd7df30ac8f9935
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Mon Aug 20 17:09:31 2012 +0800

    Initial package for Fedora
    
    This package was submitted on Mon Aug 20 2012:
        https://bugzilla.redhat.com/show_bug.cgi?id=849579

 perl-Statistics-Contingency.spec |   54 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/perl-Statistics-Contingency.spec b/perl-Statistics-Contingency.spec
new file mode 100644
index 0000000..6d7c734
--- /dev/null
+++ b/perl-Statistics-Contingency.spec
@@ -0,0 +1,54 @@
+Name:           perl-Statistics-Contingency
+Version:        0.08
+Release:        1%{?dist}
+Summary:        Calculate precision, recall, F1, accuracy, etc
+
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/Statistics-Contingency/
+
+Source0:        http://www.cpan.org/authors/id/K/KW/KWILLIAMS/Statistics-Contingency-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Params::Validate) >= 0.23
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(Params::Validate) >= 0.23
+
+%description
+The Statistics::Contingency class helps you calculate several useful
+statistical measures based on 2x2 "contingency tables". I use these
+measures to help judge the results of automatic text categorization
+experiments, but they are useful in other situations as well.
+
+
+%prep
+%setup -q -n Statistics-Contingency-%{version}
+
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+
+%install
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+
+%check
+./Build test
+
+
+%files
+%doc Changes README
+%{perl_vendorlib}/Statistics/Contingency*
+%{_mandir}/man3/Statistics::Contingency.3pm*
+
+
+%changelog
+* Mon Aug 20 2012 Mathieu Bridon <bochecha at fedoraproject.org> - 0.08-1
+- Initial package with help from cpanspec.


More information about the scm-commits mailing list