From 13be4c22b9d06a7f7ee7ed89f8cc2c732fbc44ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= ppisar@redhat.com Date: Wed, 20 Apr 2016 16:31:08 +0200 Subject: 0.12 bump
--- .gitignore | 1 + Net-Statsd-0.12-Make-benchmark.pl-an-example.patch | 50 ++++++++++++++++++++++ perl-Net-Statsd.spec | 34 +++++++++------ sources | 2 +- 4 files changed, 72 insertions(+), 15 deletions(-) create mode 100644 Net-Statsd-0.12-Make-benchmark.pl-an-example.patch
diff --git a/.gitignore b/.gitignore index 714b76c..9610918 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /Net-Statsd-0.08.tar.gz /Net-Statsd-0.09.tar.gz /Net-Statsd-0.11.tar.gz +/Net-Statsd-0.12.tar.gz diff --git a/Net-Statsd-0.12-Make-benchmark.pl-an-example.patch b/Net-Statsd-0.12-Make-benchmark.pl-an-example.patch new file mode 100644 index 0000000..5fe0891 --- /dev/null +++ b/Net-Statsd-0.12-Make-benchmark.pl-an-example.patch @@ -0,0 +1,50 @@ +From 7d134109e89c344200b24b67c720d5813e586c8e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= ppisar@redhat.com +Date: Wed, 20 Apr 2016 16:27:28 +0200 +Subject: [PATCH] Make benchmark.pl an example +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař ppisar@redhat.com +--- + MANIFEST | 2 +- + Makefile.PL | 3 --- + 2 files changed, 1 insertion(+), 4 deletions(-) + +diff --git a/MANIFEST b/MANIFEST +index f254218..99dee0b 100644 +--- a/MANIFEST ++++ b/MANIFEST +@@ -1,5 +1,6 @@ + # This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.008. + Changes ++examples/benchmark.pl + INSTALL + LICENSE + MANIFEST +@@ -8,7 +9,6 @@ META.yml + Makefile.PL + README + README.pod +-bin/benchmark.pl + dist.ini + lib/Net/Statsd.pm + t/000-load.t +diff --git a/Makefile.PL b/Makefile.PL +index 1d950b8..1274683 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -17,9 +17,6 @@ my %WriteMakefileArgs = ( + "ExtUtils::MakeMaker" => "6.30" + }, + "DISTNAME" => "Net-Statsd", +- "EXE_FILES" => [ +- "bin/benchmark.pl" +- ], + "LICENSE" => "perl", + "NAME" => "Net::Statsd", + "PREREQ_PM" => { +-- +2.5.5 + diff --git a/perl-Net-Statsd.spec b/perl-Net-Statsd.spec index 1f0236c..428354d 100644 --- a/perl-Net-Statsd.spec +++ b/perl-Net-Statsd.spec @@ -1,29 +1,33 @@ Name: perl-Net-Statsd -Version: 0.11 -Release: 2%{?dist} +Version: 0.12 +Release: 1%{?dist} Summary: Sends statistics to the stats daemon over UDP License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Net-Statsd/ Source0: http://www.cpan.org/modules/by-module/Net/Net-Statsd-%%7Bversion%7D.tar.gz +# bin/benchmark.pl is a bad name for installation into path +Patch0: Net-Statsd-0.12-Make-benchmark.pl-an-example.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl -BuildRequires: perl(Carp) BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(IO::Socket) +# Tests: 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)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description This module implements a client for a statsd statistics collection server, such @@ -33,26 +37,25 @@ 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... +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 +# the following commands prevents benchmark.pl example from installing +%patch0 -p1 mkdir examples -mv benchmark.pl examples +mv bin/benchmark.pl examples
%build -%{__perl} Makefile.PL INSTALLDIRS=vendor +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 {} ; - +find $RPM_BUILD_ROOT -type f -name .packlist -delete %{_fixperms} $RPM_BUILD_ROOT/*
%check @@ -65,6 +68,9 @@ make test %{_mandir}/man3/*
%changelog +* Wed Apr 20 2016 Petr Pisar ppisar@redhat.com - 0.12-1 +- 0.12 bump + * Thu Feb 04 2016 Fedora Release Engineering releng@fedoraproject.org - 0.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
diff --git a/sources b/sources index c6936a4..7e6ea44 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9da945284b562134cc2874395b4ed6d4 Net-Statsd-0.11.tar.gz +a1463044fee2a879ab3e99c9ec507347 Net-Statsd-0.12.tar.gz
perl-devel@lists.fedoraproject.org