perl-Time-HiRes/perl-Time-HiRes.spec

Name: perl-Time-HiRes
Summary: Perl module that implements high resolution alarm, sleep, gettimeofday, interval timers
Version: 1.9724
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Time-HiRes/
Description: perl-Time-HiRes is a Perl module that implements high resolution alarm, sleep, gettimeofday, interval timers.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Jarkko Hietaniemi <jhi$iki,fi>

### EL6 ships with perl-Time-HiRes-1.9721-115.el6
%{?el6:# Tag: rfx}
### EL4 ships with perl-Time-HiRes-1.55-3
%{?el4:# Tag: rfx}
### EL3 ships with perl-Time-HiRes-1.38-3
%{?el3:# Tag: rfx}

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Time-HiRes

Summary: Perl module that implements high resolution alarm, sleep, gettimeofday, interval timers
Name: perl-Time-HiRes
Version: 1.9724
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Time-HiRes/

#Source: http://search.cpan.org/CPAN/authors/id/J/JH/JHI/Time-HiRes-%{version}.tar.gz
Source: http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Time-HiRes-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
perl-Time-HiRes is a Perl module that implements high resolution alarm,
sleep, gettimeofday, interval timers.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README TODO
%doc %{_mandir}/man3/Time::HiRes.3pm*
%dir %{perl_vendorarch}/auto/Time/
%{perl_vendorarch}/auto/Time/HiRes/
%dir %{perl_vendorarch}/Time/
%{perl_vendorarch}/Time/HiRes.pm

%changelog
* Tue Jun 21 2011 David Hrbáč <david@hrbac.cz> - 1.9724-1
- new upstream release

* Fri Jun 03 2011 David Hrbáč <david@hrbac.cz> - 1.9722-1
- new upstream release

* Mon Oct 04 2010 David Hrbáč <david@hrbac.cz> - 1.9721-2
- RFXed for el5

* Fri Mar 26 2010 Christoph Maser <cmr@financial.com> - 1.9721-1
- Updated to version 1.9721.

* Thu Mar 11 2010 Christoph Maser <cmr@financial.com> - 1.9720-1
- Updated to version 1.9720.

* Wed Jun 10 2009 Christoph Maser <cmr@financial.com> - 1.9719-1
- Updated to version 1.9719.

* Wed May 14 2008 Dag Wieers <dag@wieers.com> - 1.9715-1
- Updated to release 1.9715.

* Thu Feb 21 2008 Dag Wieers <dag@wieers.com> - 1.9712-1
- Updated to release 1.9712.

* Tue Dec 04 2007 Dag Wieers <dag@wieers.com> - 1.9711-1
- Updated to release 1.9711.

* Mon Nov 19 2007 Dag Wieers <dag@wieers.com> - 1.9708-1
- Updated to release 1.9708.

* Sun Oct 07 2007 Dag Wieers <dag@wieers.com> - 1.9707-1
- Initial package. (using DAR)