rpms/perl-DateTime-Precise/F-8 perl-DateTime-Precise.spec, NONE, 1.1 sources, 1.1, 1.2

Xavier Bachelot (xavierb) fedora-extras-commits at redhat.com
Thu Jan 31 21:14:11 UTC 2008


Author: xavierb

Update of /cvs/pkgs/rpms/perl-DateTime-Precise/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30980/F-8

Modified Files:
	sources 
Added Files:
	perl-DateTime-Precise.spec 
Log Message:
Import into F-8, EL-4 and EL-5


--- NEW FILE perl-DateTime-Precise.spec ---
Name:           perl-DateTime-Precise
Version:        1.05
Release:        3%{?dist}

Summary:        Perform common time and date operations with additional GPS operations

Group:          Development/Libraries
License:        Public Domain
URL:            http://search.cpan.org/dist/DateTime-Precise
Source0:        http://search.cpan.org/CPAN/authors/id/B/BZ/BZAJAC/DateTime-Precise-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  perl(ExtUtils::MakeMaker)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))


%description
The purpose of this library was to replace our dependence on Unix epoch time,
which, being limited to a range of about 1970 to 2030, is inadequate for our
purposes (we have data as old as 1870). This date library effectively handles
dates from A.D. 1000 to infinity, and would probably work all the way back to 0
(ignoring, of course, the switch-over to the Gregorian calendar). The useful
features of Unix epoch time (ease of date difference calculation and date
comparison, strict ordering) are preserved, and elements such as
human-legibility are added. The library handles fractional seconds and some
date/time manipulations used for the Global Positioning Satellite system.


%prep
%setup -q -n DateTime-Precise-%{version}

cat << EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
  sed -e '/perl(bigfloat)/d' -e '/perl(bigint)/d'
EOF
%define __perl_provides %{_builddir}/DateTime-Precise-%{version}/%{name}-prov
chmod +x %{__perl_provides}

cat << EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
  sed -e '/perl(DateTime::Math\/bigfloat.pl)/d' -e '/perl(DateTime::Math\/bigint.pl)/d'
EOF
%define __perl_requires %{_builddir}/DateTime-Precise-%{version}/%{name}-req
chmod +x %{__perl_requires}


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


%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc CHANGES README
%{perl_vendorlib}/*
%{_mandir}/man3/DateTime::Precise.3pm.gz


%changelog
* Wed Jan 30 2008 Xavier Bachelot <xavier at bachelot.org> - 1.05-3
- Fix License: tag.
- Remove '| :' for %%check section.

* Fri Dec 21 2007 Xavier Bachelot <xavier at bachelot.org> - 1.05-2
- Clean up spec.

* Thu Jul 27 2006 Xavier Bachelot <xavier at bachelot.org> - 1.05-1
- Initial build.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-DateTime-Precise/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	31 Jan 2008 17:54:23 -0000	1.1
+++ sources	31 Jan 2008 21:13:35 -0000	1.2
@@ -0,0 +1 @@
+05845b6e53a528b406d10a231d0af091  DateTime-Precise-1.05.tar.gz




More information about the fedora-extras-commits mailing list