Blob Blame History Raw
Name:     perl-RRD-Simple
Version:  1.40
Release:        2%{?dist}
Summary:  Simple interface to create and store data in RRD files

Group:    Development/Libraries
License:  Apache Software License, Version 2.0
URL:      http://search.cpan.org/dist/RRD-Simple
Source0:  http://search.cpan.org/CPAN/authors/id/N/NI/NICOLAW/RRD-Simple-%{version}.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch  
BuildRequires:  perl, perl(Module::Build), perl(Test::Deep)
BuildRequires:  perl(RRDs)
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
RRD::Simple provides a simple interface to RRDTool's RRDs module. This module
does not currently offer the fetch method that is available in the RRDs 
module.  It does however create RRD files with a sensible set of default RRA
Round Robin Archive) definitions, and can dynamically add new data source 
names to an existing RRD file.

This module is ideal for quick and simple storage of data within an RRD file
if you do not need to, nor want to, bother defining custom RRA definitions.

%prep
%setup -q -n RRD-Simple-%{version}


%build
echo n | %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
rm -rf %{buildroot}

make pure_install PERL_INSTALL_ROOT=%{buildroot}

find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*


%check
make test


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc Changes INSTALL LICENSE NOTICE README examples/
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*


%changelog
* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.40-2
- bump for mass rebuild

* Fri Aug 25 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.40-1
- update to 1.40
- minor spec cleanups

* Tue Jun 27 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.39-1
- bump release for extras build

* Tue Jun 27 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.39-0
- Initial spec file for F-E