generated from smedev/Template-for-SMEServer-Core-Package
51 lines
1.4 KiB
RPMSpec
51 lines
1.4 KiB
RPMSpec
Name: perl-Time-TAI64
|
|
Version: 2.11
|
|
Release: 1%{?dist}
|
|
Summary: Perl extension for converting TAI64 strings into standard unix timestamps
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Time-TAI64/
|
|
Source0: http://www.cpan.org/modules/by-module/Time/Time-TAI64-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(POSIX)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(Time::HiRes)
|
|
BuildRequires: perl(vars)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
This package provides routines to convert TAI64 strings, like timestamps
|
|
produced by multilog, into values that can be processed by other perl
|
|
functions to display the timestamp in a human-readable form and/or use
|
|
in mathematical computations.
|
|
|
|
%prep
|
|
%setup -q -n Time-TAI64-%{version}
|
|
|
|
%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 README
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Tue Jan 20 2015 David Dick <ddick@cpan.org> - 2.11-1
|
|
- Initial release
|