[perl-Net-Statsd] Initial import (#1103466).

David Dick ddick at fedoraproject.org
Wed Jun 4 10:40:44 UTC 2014


commit dd2e0f88670ba4401555684b6806f71d8aab6cbd
Author: David Dick <ddick at cpan.org>
Date:   Wed Jun 4 20:40:45 2014 +1000

    Initial import (#1103466).

 .gitignore           |    1 +
 perl-Net-Statsd.spec |   66 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..59c2279 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Net-Statsd-0.08.tar.gz
diff --git a/perl-Net-Statsd.spec b/perl-Net-Statsd.spec
new file mode 100644
index 0000000..35cba76
--- /dev/null
+++ b/perl-Net-Statsd.spec
@@ -0,0 +1,66 @@
+Name:           perl-Net-Statsd
+Version:        0.08
+Release:        1%{?dist}
+Summary:        Sends statistics to the stats daemon over UDP
+License:        GPL+ or Artistic
+# patch to address https://fedoraproject.org/wiki/Common_Rpmlint_issues#incorrect-fsf-address has been sent upstream at https://rt.cpan.org/Ticket/Display.html?id=96097
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Net-Statsd/
+Source0:        http://www.cpan.org/modules/by-module/Net/Net-Statsd-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Basename)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(IO::Select)
+BuildRequires:  perl(IO::Socket)
+BuildRequires:  perl(IO::Socket::INET)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(vars)
+BuildRequires:  perl(warnings)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module implements a client for a statsd statistics collection server, such
+as the one in use at Etsy.com.
+
+You want to use this module to track statistics in your Perl application, such
+as how many times a certain event occurs (user logins in a web application, or 
+database queries issued), or you want to time and then graph how long certain 
+events take, like database queries execution time or time to download a certain
+file, etc...
+
+%prep
+%setup -q -n Net-Statsd-%{version}
+# leaving README.pod as is results in a non-meaningful manpage as Net::README
+mkdir pod
+mv README.pod pod
+# the following commands preserve benchmark.pl without providing Net::benchmark as a manpage
+mkdir examples
+mv benchmark.pl examples
+
+%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 LICENSE README examples pod
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sat May 31 2014 David Dick <ddick at cpan.org> - 0.08-1
+- Initial release
diff --git a/sources b/sources
index e69de29..b5261dd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a6d5cce8976fd495540d8d02ae4db79e  Net-Statsd-0.08.tar.gz


More information about the scm-commits mailing list