85 lines
2.6 KiB
RPMSpec
85 lines
2.6 KiB
RPMSpec
Name: perl-Time-HiRes
|
|
Version: 1.9728
|
|
Release: 1%{?dist}
|
|
Summary: High resolution alarm, sleep, gettimeofday, interval timers
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Time-HiRes/
|
|
Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Time-HiRes-%{version}.tar.gz
|
|
BuildRequires: coreutils
|
|
BuildRequires: findutils
|
|
BuildRequires: make
|
|
BuildRequires: perl
|
|
BuildRequires: perl(Config)
|
|
BuildRequires: perl(ExtUtils::Constant)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(strict)
|
|
# Run-time:
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(DynaLoader)
|
|
BuildRequires: perl(Exporter)
|
|
# Tests:
|
|
BuildRequires: perl(Test::More) >= 0.82
|
|
# Optional tests:
|
|
BuildRequires: perl(POSIX)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Requires: perl(Carp)
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%description
|
|
The Time::HiRes module implements a Perl interface to the usleep, nanosleep,
|
|
ualarm, gettimeofday, and setitimer/getitimer system calls, in other words,
|
|
high resolution time and timers.
|
|
|
|
%prep
|
|
%setup -q -n Time-HiRes-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
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 '*.bs' -size 0 -exec rm -f {} \;
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%files
|
|
%doc Changes README TODO
|
|
%{perl_vendorarch}/auto/*
|
|
%{perl_vendorarch}/Time*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Mon Nov 16 2015 Petr Pisar <ppisar@redhat.com> - 1.9728-1
|
|
- 1.9728 bump
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9726-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9726-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Mon Aug 19 2013 Petr Šabata <contyk@redhat.com> - 1.9726-1
|
|
- 1.9726 bugfix bump
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9725-291
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 1.9725-290
|
|
- Increase release to favour standalone package
|
|
|
|
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.9725-273
|
|
- Perl 5.18 rebuild
|
|
|
|
* Mon Apr 29 2013 Petr Pisar <ppisar@redhat.com> - 1.9725-272
|
|
- Increase release number to superseed perl.spec's sub-package
|
|
|
|
* Fri Apr 26 2013 Petr Pisar <ppisar@redhat.com> 1.9725-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|