Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > 1d73805886c9fda24958a569c75d8e49 > files > 2

perl-Period-1.20-9mdk.src.rpm

%define version	1.20
%define release 9mdk
%define name 	perl-Period
%define realname Period

Summary:	Time::Period module for perl
Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
License: 	GPL
Group: 		Development/Perl
Source: 	ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Time/%{realname}-%{version}.tar.bz2
URL: 		http://www.perl.com/CPAN/modules/by-module/Time/
BuildArch:	noarch

BuildRequires:	perl-devel
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root/

%description
Period.pm is a Perl module that contains code to deal with time periods.
Currently, there is only a function in this module.  That function is
called inPeriod().

inPeriod() determines if a given time is within a given time period.
It will return 1 if it is, 0 if not, and -1 if either the time or the
period passed to it were malformed.  The time is specified in non-leap
year seconds past January 1, 1970, as per the time() function.  The period
is a string which is of the form described in Period's man page.

%prep
%setup -q -n %{realname}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test
chmod 644 README Period.html

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Period.html README
%{perl_vendorlib}/Time/*
%{_mandir}/*/*

%changelog
* Wed Aug 13 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.20-9mdk
- rebuild for perl
- drop Prefix tag
- don't use PREFIX
- use %%makeinstall_std macro

* Tue May 27 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.20-8mdk
- rebuild for new auto{prov,req}

* Tue Jul  9 2002 Pixel <pixel@mandrakesoft.com> 1.20-7mdk
- rebuild for perl 5.8.0

* Tue Mar 26 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.20-6mdk
- should be noarch

* Wed Dec  5 2001 Stefan van der Eijk <stefan@eijk.nu> 1.20-5mdk
- fix %%files

* Mon Oct 15 2001 Stefan van der Eijk <stefan@eijk.nu> 1.20-4mdk
- BuildRequires: perl-devel

* Sun Jun 17 2001 Geoffrey lee <snailtalk@mandrakesoft.com> 1.20-3mdk
- Rebuild for the latest perl.

* Wed Dec 13 2000 Pixel <pixel@mandrakesoft.com> 1.20-2mdk
- remove stupid requires

* Thu Aug 31 2000 Philippe Libat <philippe@mandrakesoft.com> 1.20-1mdk
- macroszifications.

* Wed Jun 28 2000 Planel Nicolas <nicolas@mandrakesoft.com>
- Spec file was generated.