Accepting request 741161 from home:tinita:branches:devel:languages:perl

- Regenerate spec with newest cpanspec
   * Add PERL_USE_UNSAFE_INC
   * Remove unused patch perl-Graphics-Primitive-remove_done_testing.patch
     (not needed anymore)

OBS-URL: https://build.opensuse.org/request/show/741161
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=11
This commit is contained in:
Stephan Kulow
2019-10-19 14:33:44 +00:00
committed by Git OBS Bridge
parent a0a8eb119c
commit 84276ae440
3 changed files with 17 additions and 41 deletions

View File

@@ -1,32 +0,0 @@
--- t/20-border.t.orig 2011-02-18 16:26:53.000000000 +0100
+++ t/20-border.t 2011-02-18 23:16:46.000000000 +0100
@@ -1,4 +1,5 @@
-use Test::More;
+use strict;
+use Test::More tests => 15;
BEGIN {
use_ok('Graphics::Primitive::Border');
@@ -39,4 +40,3 @@
cmp_ok($b2->top->width, '==', 5, 'width in constructor');
cmp_ok($b2->top->color->red, '==', .3, 'color in constructor');
-done_testing;
\ No newline at end of file
--- t/callback.t.orig 2011-02-18 23:16:52.000000000 +0100
+++ t/callback.t 2011-02-18 23:17:34.000000000 +0100
@@ -1,7 +1,7 @@
use lib 't/lib', 'lib';
use strict;
-use Test::More;
+use Test::More tests => 5;
use Graphics::Primitive::Component;
use Graphics::Primitive::Container;
@@ -31,4 +31,3 @@
cmp_ok($cont_call, 'eq', 'container', 'container callback fired');
cmp_ok($comp_call, 'eq', 'component', 'component callback fired');
-done_testing;
\ No newline at end of file

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Oct 18 20:43:49 UTC 2019 - Tina Mueller <tina.mueller@suse.com>
- Regenerate spec with newest cpanspec
* Add PERL_USE_UNSAFE_INC
* Remove unused patch perl-Graphics-Primitive-remove_done_testing.patch
(not needed anymore)
-------------------------------------------------------------------
Thu Apr 16 21:19:25 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Graphics-Primitive
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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,7 +12,7 @@
# 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/
#
@@ -21,10 +21,10 @@ Version: 0.67
Release: 0
%define cpan_name Graphics-Primitive
Summary: Device and library agnostic graphic primitives
License: Artistic-1.0 or GPL-1.0+
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Graphics-Primitive/
Source0: http://www.cpan.org/authors/id/G/GP/GPHAT/%{cpan_name}-%{version}.tar.gz
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GP/GPHAT/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -52,17 +52,17 @@ Requires: perl(MooseX::Storage) >= 0.17
Graphics::Primitive is library agnostic system for drawing things.
The idea is to allow you to create and manipulate graphical components and
then pass them off to a Graphics::Primitive::Driver for actual drawing.
then pass them off to a Driver for actual drawing.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
%{__make} test
make test
%install
%perl_make_install