%global pkg_name InfluxDB-LineProtocol %global pkg_version 1.011 %global rpm_pkg_version 1.011 %global rpm_pkg_release 1.n0i.1 Summary: Write and read InfluxDB LineProtocol Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: https://metacpan.org/release/%{pkg_name} Source0: https://cpan.metacpan.org/authors/id/InfluxDB/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(Module::Build) >= 0.28 BuildRequires: perl(Test::More) BuildRequires: perl(Test::Most) BuildRequires: perl(Time::HiRes) %description InfluxDB is a rather new time series database. Since version 0.9 they use their LineProtocol to write time series data into the database. This module allows you to generate such a line from a datastructure, handling all the annoying escaping and sorting for you. You can also use it to parse a line (maybe you want to add some tags to a line written by another app). %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %install %{perl_install} %files %defattr(-,root,root,-) %{perl_files} %doc Changes dist.ini LICENSE README %changelog * Thu Nov 01 2018 Marius Feraru - 1.011-1.n0i.1 - initial packaging