Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:Perl
perl-TimeDate
perl-TimeDate.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-TimeDate.spec of Package perl-TimeDate
%define real_name TimeDate %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) %define perl_archlib %(eval "`perl -V:archlib`"; echo $archlib) %define perl_privlib %(eval "`perl -V:privlib`"; echo $privlib) %define maketest 0 Name: perl-%{real_name} Summary: Parse date strings into time values Version: 1.16 Release: 1 License: Artistic License .. Group: Development/Libraries/Perl AutoReqProv: on Source: %{real_name}-%{version}.tar.gz Patch1: %{real_name}-deprecated_array_use.patch Patch2: %{real_name}-podfile-patch Buildarch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl %description Date::Parse provides two routines for parsing date strings into time values. str2time(DATE [, ZONE]) str2time parses DATE and returns a unix time value, or undef upon failure. ZONE, if given, specifies the timezone to assume when parsing if the date string does not specify a timezome. strptime(DATE [, ZONE]) strptime takes the same arguments as str2time but returns an array of values ($ss,$mm,$hh,$day,$month,$year,$zone). Elements are only defined if they could be extracted from the date string. The $zone element is the timezone offset in seconds from GMT. An empty array is returned upon failure. Authors: Graham Barr <gbarr@pobox.com> %prep %setup -q -n %{real_name}-%{version} %patch1 %patch2 chmod -R u+w %{_builddir}/%{real_name}-%{version} %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %build CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\. 9[1-6]|6\.0[0-5]/ '` %{__make} %check %if %maketest %{__make} test %endif %install %if 0%{?suse_version} %perl_make_install %perl_process_packlist %else make DESTDIR=$RPM_BUILD_ROOT install_vendor find $RPM_BUILD_ROOT/usr -type f -name perllocal.pod |xargs -i rm -f {} find $RPM_BUILD_ROOT/usr -type d -depth -exec rmdir {} \; 2>/dev/null %endif find %{buildroot} -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" |xargs -i rm -f {} %files %defattr(-, root, root) %doc ChangeLog README %doc %{_mandir}/man?/* %dir %{perl_vendorlib}/Date %dir %{perl_vendorlib}/Time %{perl_vendorlib}/Date %{perl_vendorlib}/Time/ %if 0%{?suse_version} /var/adm/perl-modules/%{name} %endif %changelog * Sun Aug 30 2009 Holger Manthey <holger.manthey@bertelsmann.de> - Initial build.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor