Bill Pemberton 6bac126
Name:		perl-Time-Clock
Bill Pemberton 6bac126
Version:	1.02
Bill Pemberton 6bac126
Release:	4%{?dist}
Bill Pemberton 6bac126
Summary:	Twenty-four hour clock object with nanosecond precision
Bill Pemberton 6bac126
License:	GPL+ or Artistic
Bill Pemberton 6bac126
Group:		Development/Libraries
Bill Pemberton 6bac126
URL:		http://search.cpan.org/dist/Time-Clock/
Bill Pemberton 6bac126
Source0:	http://www.cpan.org/authors/id/J/JS/JSIRACUSA/Time-Clock-%{version}.tar.gz
Bill Pemberton 6bac126
BuildArch:	noarch
Bill Pemberton 6bac126
BuildRequires:	perl(Carp)
Bill Pemberton 6bac126
BuildRequires:	perl(constant)
Bill Pemberton 6bac126
BuildRequires:	perl(ExtUtils::MakeMaker)
Bill Pemberton 6bac126
BuildRequires:	perl(Test::More)
Bill Pemberton 6bac126
BuildRequires:	perl(Test::Pod)
Bill Pemberton 6bac126
BuildRequires:	perl(Time::HiRes)
Bill Pemberton 6bac126
Requires:	perl(Time::HiRes)
Bill Pemberton 6bac126
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Bill Pemberton 6bac126
Bill Pemberton 6bac126
%description
Bill Pemberton 6bac126
A Time::Clock object is a twenty-four hour clock with nanosecond precision
Bill Pemberton 6bac126
and wrap-around. It is a clock only; it has absolutely no concept of dates.
Bill Pemberton 6bac126
Vagaries of date/time such as leap seconds and daylight savings time are
Bill Pemberton 6bac126
unsupported.
Bill Pemberton 6bac126
Bill Pemberton 6bac126
%prep
Bill Pemberton 6bac126
%setup -q -n Time-Clock-%{version}
Bill Pemberton 6bac126
Bill Pemberton 6bac126
%build
Bill Pemberton 6bac126
find . -type f -executable -exec chmod -x {} \;
Bill Pemberton 6bac126
%{__perl} Makefile.PL INSTALLDIRS=vendor
Bill Pemberton 6bac126
make %{?_smp_mflags}
Bill Pemberton 6bac126
Bill Pemberton 6bac126
%install
Bill Pemberton 6bac126
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
Bill Pemberton 6bac126
Bill Pemberton 6bac126
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
Bill Pemberton 6bac126
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
Bill Pemberton 6bac126
Bill Pemberton 6bac126
%{_fixperms} $RPM_BUILD_ROOT/*
Bill Pemberton 6bac126
Bill Pemberton 6bac126
%check
Bill Pemberton 6bac126
make test
Bill Pemberton 6bac126
Bill Pemberton 6bac126
%files
Bill Pemberton 6bac126
%doc Changes
Bill Pemberton 6bac126
%{perl_vendorlib}/Time/
Bill Pemberton 6bac126
%{_mandir}/man3/Time::Clock.3pm*
Bill Pemberton 6bac126
Bill Pemberton 6bac126
%changelog
Bill Pemberton 6bac126
* Mon Jul 16 2012 Bill Pemberton <wfp5p@virginia.edu> - 1.02-4
Bill Pemberton 6bac126
- remove buildroot and clean
Bill Pemberton 6bac126
- remove defattr from files section
Bill Pemberton 6bac126
- add Carp, constant, Test::Pod, and Time::HiRes to BuildRequires
Bill Pemberton 6bac126
- add Time::HiRes to Requires
Bill Pemberton 6bac126
Bill Pemberton 6bac126
* Tue Jun 26 2012 Bill Pemberton <wfp5p@virginia.edu> - 1.02-3
Bill Pemberton 6bac126
- Remove execute bit from pm files
Bill Pemberton 6bac126
- Explicity reference man page in files section
Bill Pemberton 6bac126
Bill Pemberton 6bac126
* Tue Jun 26 2012 Bill Pemberton <wfp5p@virginia.edu> - 1.02-2
Bill Pemberton 6bac126
- Initial version
Bill Pemberton 6bac126