This commit is contained in:
commit
00a54a9e87
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
TimeDate-1.16.tar.gz
Normal file
3
TimeDate-1.16.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7942ef0181b5828563a1b98a0a801a75bc0102773a1c942a09ac1d0b9fba6cb3
|
||||
size 22366
|
20
TimeDate-deprecated_array_use.patch
Normal file
20
TimeDate-deprecated_array_use.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- lib/Date/Format.pm
|
||||
+++ lib/Date/Format.pm
|
||||
@@ -85,7 +85,7 @@
|
||||
$tzname = sprintf("%+05d",$tzname)
|
||||
unless($tzname =~ /\D/);
|
||||
|
||||
- $epoch = timegm(@{$time}[0..5]);
|
||||
+ $epoch = timegm( @$time[0], @$time[1], @$time[2], @$time[3], @$time[4], @$time[5] );
|
||||
|
||||
@$me = gmtime($epoch + tz_offset($tzname) - tz_offset());
|
||||
}
|
||||
@@ -217,7 +217,7 @@
|
||||
sub format_M { sprintf("%02d",$_[0]->[1]) }
|
||||
sub format_q { sprintf("%01d",int($_[0]->[4] / 3) + 1) }
|
||||
sub format_s {
|
||||
- $epoch = timegm(@{$_[0]}[0..5])
|
||||
+ $epoch = timegm($_[0], $_[1], $_[2], $_[3], $_[4], $_[5] )
|
||||
unless defined $epoch;
|
||||
sprintf("%d",$epoch)
|
||||
}
|
63
perl-TimeDate.changes
Normal file
63
perl-TimeDate.changes
Normal file
@ -0,0 +1,63 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:40:00 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 11 10:27:15 CET 2004 - adrian@suse.de
|
||||
|
||||
- build as user
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 22 15:55:40 CEST 2003 - mjancar@suse.cz
|
||||
|
||||
- require the perl version we build with
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 21 11:36:19 CEST 2003 - rommel@suse.de
|
||||
|
||||
- update to version 1.16
|
||||
- using perl_vendorlib and perl_vendorarch instead of
|
||||
perl_sitearch and perl_archlib
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 18 09:03:37 CEST 2003 - coolo@suse.de
|
||||
|
||||
- package directories
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 26 00:25:54 CEST 2003 - ro@suse.de
|
||||
|
||||
- remove unpackaged files from buildroot
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 16 18:03:10 CET 2003 - rommel@suse.de
|
||||
|
||||
- update to version 1.14
|
||||
- fixed depricated array use in timegm()
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 8 18:52:19 CEST 2002 - mls@suse.de
|
||||
|
||||
- use sitearch macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 2 17:40:06 MEST 2002 - mls@suse.de
|
||||
|
||||
- remove race in .packlist generation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 7 14:12:56 CET 2000 - grimmer@suse.de
|
||||
|
||||
- added .packlist to file list and removed BuildRoot path
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 7 10:34:18 CET 2000 - grimmer@suse.de
|
||||
|
||||
- removed BuildRoot path from perllocal.pod
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 6 19:53:03 CET 2000 - grimmer@suse.de
|
||||
|
||||
- initial version (1.10)
|
||||
|
89
perl-TimeDate.spec
Normal file
89
perl-TimeDate.spec
Normal file
@ -0,0 +1,89 @@
|
||||
#
|
||||
# spec file for package perl-TimeDate (Version 1.16)
|
||||
#
|
||||
# Copyright (c) 2004 SuSE Linux AG, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://www.suse.de/feedback/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
# usedforbuild aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kbd less libacl libattr libgcc libstdc++ libxcrypt m4 make man mktemp modutils ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-devel pam-modules patch permissions popt ps rcs readline sed sendmail shadow strace syslogd sysvinit tar texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils cracklib gcc gdbm gettext libtool perl rpm
|
||||
|
||||
Name: perl-TimeDate
|
||||
License: Artistic License
|
||||
Group: Development/Libraries/Perl
|
||||
Provides: TimeDate
|
||||
Requires: perl = %{perl_version}
|
||||
Autoreqprov: on
|
||||
Version: 1.16
|
||||
Release: 71
|
||||
Summary: Perl Modules for time and date calculation
|
||||
Source: TimeDate-%{version}.tar.gz
|
||||
Patch: TimeDate-deprecated_array_use.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
These modules provide Perl functions to do time and date calculations.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Graham Barr <gbarr@pobox.com>
|
||||
|
||||
%prep
|
||||
%setup -n TimeDate-%{version}
|
||||
%patch
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
make
|
||||
make test
|
||||
|
||||
%install
|
||||
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_process_packlist
|
||||
|
||||
%clean
|
||||
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc ChangeLog README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/Date
|
||||
%{perl_vendorlib}/Time
|
||||
%{perl_vendorarch}/auto/TimeDate
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
%changelog -n perl-TimeDate
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Sun Jan 11 2004 - adrian@suse.de
|
||||
- build as user
|
||||
* Fri Aug 22 2003 - mjancar@suse.cz
|
||||
- require the perl version we build with
|
||||
* Mon Jul 21 2003 - rommel@suse.de
|
||||
- update to version 1.16
|
||||
- using perl_vendorlib and perl_vendorarch instead of
|
||||
perl_sitearch and perl_archlib
|
||||
* Wed Jun 18 2003 - coolo@suse.de
|
||||
- package directories
|
||||
* Mon May 26 2003 - ro@suse.de
|
||||
- remove unpackaged files from buildroot
|
||||
* Thu Jan 16 2003 - rommel@suse.de
|
||||
- update to version 1.14
|
||||
- fixed depricated array use in timegm()
|
||||
* Thu Aug 08 2002 - mls@suse.de
|
||||
- use sitearch macro
|
||||
* Tue Jul 02 2002 - mls@suse.de
|
||||
- remove race in .packlist generation
|
||||
* Tue Nov 07 2000 - grimmer@suse.de
|
||||
- added .packlist to file list and removed BuildRoot path
|
||||
* Tue Nov 07 2000 - grimmer@suse.de
|
||||
- removed BuildRoot path from perllocal.pod
|
||||
* Mon Nov 06 2000 - grimmer@suse.de
|
||||
- initial version (1.10)
|
Loading…
Reference in New Issue
Block a user