Accepting request 761650 from devel:languages:perl:autoupdate

OBS-URL: https://build.opensuse.org/request/show/761650
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-OLE-Storage_Lite?expand=0&rev=17
This commit is contained in:
Dirk Stoecker 2020-01-09 13:04:24 +00:00 committed by Git OBS Bridge
parent e4534ac25d
commit 5516d980b8
6 changed files with 56 additions and 43 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e72e055c35bd85ad7c20cf2adb6c89bdbf5725df969484fa6dc981d531ef2c9d
size 21952

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab18a6171c0e08ea934eea14a0ab4f3a8909975dda9da42124922eb41e84f8ba
size 22586

28
cpanspec.yml Normal file
View File

@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
license: Artistic-1.0 OR GPL-1.0-or-later
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@ -1,23 +0,0 @@
Date: 2018-02-21
Author: Bernhard M. Wiedemann <bwiedemann suse de>
https://rt.cpan.org/Public/Bug/Display.html?id=124513
fix how code uses Time::Local to ensure no relative 2-digit dates are used
to make tests pass in 2020 and beyond
Index: OLE-Storage_Lite-0.19/lib/OLE/Storage_Lite.pm
===================================================================
--- OLE-Storage_Lite-0.19.orig/lib/OLE/Storage_Lite.pm
+++ OLE-Storage_Lite-0.19/lib/OLE/Storage_Lite.pm
@@ -1364,7 +1364,9 @@ sub LocalDate2OLE {
return "\x00" x 8 unless $localtime;
# Convert from localtime (actually gmtime) to seconds.
- my $time = timegm( @{$localtime} );
+ my @localtimecopy = @{$localtime};
+ $localtimecopy[5] += 1900 unless $localtimecopy[5] > 99;
+ my $time = timegm( @localtimecopy );
# Add the number of seconds between the 1601 and 1970 epochs.
$time += 11644473600;

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Jan 7 15:34:51 UTC 2020 - Tina Müller <tina.mueller@suse.com>
- Add manual license to cpanspec.yml.
Remove patch fix-time-local.patch (Source was fixed)
-------------------------------------------------------------------
Fri Jan 3 03:10:43 UTC 2020 - <timueller+perl@suse.de>
- updated to 0.20
see /usr/share/doc/packages/perl-OLE-Storage_Lite/Changes
-------------------------------------------------------------------
Mon Jun 24 04:10:45 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-OLE-Storage_Lite
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,21 +12,21 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-OLE-Storage_Lite
Version: 0.19
Release: 1
License: GPL-1.0+ or Artistic-1.0
Version: 0.20
Release: 0
#Upstream: Japan. All rights reserved. You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
%define cpan_name OLE-Storage_Lite
Summary: Simple Class for OLE document interface.
Url: http://search.cpan.org/dist/OLE-Storage_Lite/
Summary: Simple Class for OLE document interface
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/J/JM/JMCNAMARA/%{cpan_name}-%{version}.tar.gz
Patch0: fix-time-local.patch
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JM/JMCNAMARA/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@ -42,23 +42,19 @@ OLE::Storage_Lite::PPS::Dir are subclasses of OLE::Storage_Lite::PPS.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
%{__make} test
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README