From b8c49f5b91ba4f38f7a136e04ea9988339be530d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Mon, 17 Oct 2016 13:36:42 +0200
Subject: 0.20 bump

---
 .gitignore                       |  1 +
 .rpmlint                         |  2 ++
 net_statsd_server_makefile.patch | 30 -----------------------------
 perl-Net-Statsd-Server.spec      | 41 ++++++++++++++++++++++++++--------------
 sources                          |  2 +-
 5 files changed, 31 insertions(+), 45 deletions(-)
 create mode 100644 .rpmlint
 delete mode 100644 net_statsd_server_makefile.patch

diff --git a/.gitignore b/.gitignore
index 2bda463..36d1bf7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /Net-Statsd-Server-0.17.tar.gz
 /Net-Statsd-Server-0.19.tar.gz
+/Net-Statsd-Server-0.20.tar.gz
diff --git a/.rpmlint b/.rpmlint
new file mode 100644
index 0000000..e9ce2c3
--- /dev/null
+++ b/.rpmlint
@@ -0,0 +1,2 @@
+from Config import *
+addFilter("spelling-error .* Backend");
diff --git a/net_statsd_server_makefile.patch b/net_statsd_server_makefile.patch
deleted file mode 100644
index ddc0c5d..0000000
--- a/net_statsd_server_makefile.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -Naur old/Makefile.PL new/Makefile.PL
---- old/Makefile.PL    2014-05-07 01:30:21.000000000 +1000
-+++ new/Makefile.PL    2014-06-14 13:10:24.092424083 +1000
-@@ -17,9 +17,7 @@
-   },
-   "DISTNAME" => "Net-Statsd-Server",
-   "EXE_FILES" => [
--    "bin/exampleConfig.js",
--    "bin/statsd",
--    "bin/localConfig.js"
-+    "bin/statsd-perl",
-   ],
-   "LICENSE" => "perl",
-   "NAME" => "Net::Statsd::Server",
-diff -Naur old/MANIFEST new/MANIFEST
---- old/MANIFEST       2014-05-07 01:30:21.000000000 +1000
-+++ new/MANIFEST       2014-06-14 13:11:56.345409266 +1000
-@@ -7,9 +7,9 @@
- Makefile.PL
- README
- TODO
--bin/exampleConfig.js
--bin/localConfig.js
--bin/statsd
-+exampleConfig.js
-+localConfig.js
-+bin/statsd-perl
- debian/statsd.init
- lib/Net/Statsd/Server.pm
- lib/Net/Statsd/Server/Backend.pm
diff --git a/perl-Net-Statsd-Server.spec b/perl-Net-Statsd-Server.spec
index f684374..100d326 100644
--- a/perl-Net-Statsd-Server.spec
+++ b/perl-Net-Statsd-Server.spec
@@ -3,8 +3,8 @@
 %define daemon     statsd-perl
 
 Name:           perl-Net-Statsd-Server
-Version:        0.19
-Release:        3%{?dist}
+Version:        0.20
+Release:        1%{?dist}
 Summary:        Library for the Perl port of Flickr/Etsy's statsd metrics 
daemon
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -13,13 +13,17 @@ Source0:        
http://www.cpan.org/modules/by-module/Net/Net-Statsd-Server-%{ve
 Source1:        %{daemon}.service
 Source2:        %{daemon}.js
 Source3:        %{daemon}.logrotate
-Patch1:         net_statsd_server_makefile.patch
+Patch1:         Net-Statsd-Server-0.20-makefile.patch
 BuildArch:      noarch
 BuildRequires:  coreutils
 BuildRequires:  findutils
 BuildRequires:  make
 BuildRequires:  perl
 BuildRequires:  perl-generators
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time:
 BuildRequires:  perl(AnyEvent)
 BuildRequires:  perl(AnyEvent::Handle)
 BuildRequires:  perl(AnyEvent::Handle::UDP)
@@ -30,31 +34,36 @@ BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(constant)
 BuildRequires:  perl(Data::Dumper)
-BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
+BuildRequires:  perl(File::Basename)
+BuildRequires:  perl(File::Path)
+BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(FindBin)
+# HTTP::Request not used at tests
 BuildRequires:  perl(IO::Socket::INET)
 BuildRequires:  perl(JSON::XS)
 BuildRequires:  perl(lib)
+# LWP::UserAgent not used at tests
+# RRDs not used at tests
 BuildRequires:  perl(Socket)
-BuildRequires:  perl(strict)
-BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Time::HiRes)
-BuildRequires:  perl(warnings)
+# Tests:
+BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
 %description
 Net::Statsd::Server is the server component of statsd. It implements a daemon
 that listens on a given host/port for incoming UDP packets and dispatches them
 to whatever you want, including Graphite or your console.  Look into the
-Net::Statsd::Server::Backend::* namespace to know all the possibilities, or
-write a backend yourself.
+Net::Statsd::Server::Backend::* name space to know all the possibilities, or
+write a back-end yourself.
 
 %prep
 %setup -q -n Net-Statsd-Server-%{version}
 %patch1 -p1
 mv bin/statsd bin/%{daemon}
-mv bin/localConfig.js localConfig.js
-mv bin/exampleConfig.js exampleConfig.js
+for F in exampleConfig.js localConfig.js logConfig.js rrdConfig.js; do
+    mv bin/"$F" "$F"
+done
 rm -Rf t/integration-tests/
 
 %build
@@ -84,6 +93,7 @@ STATSD_BINARY=$RPM_BUILD_ROOT/usr/bin/%{daemon} make test
 %package -n statsd-perl
 Summary:        A Perl port of Flickr/Etsy's statsd metrics daemon
 BuildRequires:  systemd-units
+Requires:       %{name} = %{version}-%{release}
 Requires(post):   systemd
 Requires(preun):  systemd
 Requires(postun): systemd
@@ -93,8 +103,8 @@ Provides:  statsd
 %description -n statsd-perl
 Implements a daemon that listens on a given host/port for incoming UDP packets
 and dispatches them to whatever you want, including Graphite or your console.
-Look into the Net::Statsd::Server::Backend::* namespace to know all the
-possibilities, or write a backend yourself.
+Look into the Net::Statsd::Server::Backend::* name space to know all the
+possibilities, or write a back-end yourself.
 
 %pre -n statsd-perl
 getent group %{groupname} >/dev/null || groupadd -r %{groupname}
@@ -113,7 +123,7 @@ exit 0
 %systemd_postun_with_restart %{daemon}.service
 
 %files -n statsd-perl
-%doc README exampleConfig.js localConfig.js
+%doc README exampleConfig.js localConfig.js logConfig.js rrdConfig.js
 %{_mandir}/man1/*
 %{_bindir}/*
 %config(noreplace) %{_sysconfdir}/%{daemon}.js
@@ -122,6 +132,9 @@ exit 0
 %attr(750, %{username}, %{groupname}) %{_localstatedir}/log/%{daemon}
 
 %changelog
+* Mon Oct 17 2016 Petr Pisar <ppi...@redhat.com> - 0.20-1
+- 0.20 bump
+
 * Mon May 16 2016 Jitka Plesnikova <jples...@redhat.com> - 0.19-3
 - Perl 5.24 rebuild
 
diff --git a/sources b/sources
index 87d7b6b..d8c0711 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-86a3a13ce69e2ceb02e589ee701ee48f  Net-Statsd-Server-0.19.tar.gz
+f7172ba04a56618e2f6eb2880fb85a35  Net-Statsd-Server-0.20.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Net-Statsd-Server.git/commit/?h=master&id=b8c49f5b91ba4f38f7a136e04ea9988339be530d
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to