Compare commits

...

10 Commits

Author SHA256 Message Date
b2bbe15305 Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=12
2024-07-22 21:03:33 +00:00
Stephan Kulow
84276ae440 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
2019-10-19 14:33:44 +00:00
Stephan Kulow
a0a8eb119c Accepting request 297501 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/297501
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=10
2015-04-17 05:09:31 +00:00
Stephan Kulow
969419f8d6 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=9 2011-11-11 11:18:26 +00:00
Pascal Bleser
4d07cfb2aa fix for older perl
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=8
2011-02-18 22:50:01 +00:00
Pascal Bleser
931a3d51d2 0.53
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=7
2011-02-18 22:10:58 +00:00
Stephan Kulow
f37d105ec5 always buildrequire perl-macros if not present, move %perl_requires behind buildroot (script commit)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=6
2010-12-03 14:06:46 +00:00
Stephan Kulow
517f19bac2 siwtch to perl_requires macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=5
2010-12-01 13:45:50 +00:00
Stephan Kulow
3b2a9dae81 - remove /var/adm/perl-modules
- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=4
2010-11-29 18:55:38 +00:00
Pascal Bleser
bfe8fd4c18 0.52
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Primitive?expand=0&rev=3
2010-08-22 23:55:26 +00:00
6 changed files with 156 additions and 69 deletions

View File

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

View File

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

20
cpanspec.yml Normal file
View File

@@ -0,0 +1,20 @@
---
#description_paragraphs: 3
#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_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

View File

@@ -1,15 +0,0 @@
--- t/20-border.t.orig 2010-07-25 18:15:48.000000000 +0200
+++ t/20-border.t 2010-07-25 18:18:27.000000000 +0200
@@ -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

View File

@@ -1,3 +1,52 @@
-------------------------------------------------------------------
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
- updated to 0.67
see /usr/share/doc/packages/perl-Graphics-Primitive/Changes
-------------------------------------------------------------------
Thu Apr 16 21:19:23 UTC 2015 - coolo@suse.com
- updated to 0.61
see /usr/share/doc/packages/perl-Graphics-Primitive/Changes
0.61 Jun 2, 2011
- Fix broken merge (thanks Ansgar Burchardt)
0.60 May 5, 2011
- If minimum_width or minimum_height is set, don't allow height or width to
be set to anything smaller!
-------------------------------------------------------------------
Fri Feb 18 22:06:46 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.53:
* add callback to Component
-------------------------------------------------------------------
Wed Dec 1 13:32:41 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Mon Nov 29 18:30:05 UTC 2010 - coolo@novell.com
- remove /var/adm/perl-modules
-------------------------------------------------------------------
Sun Aug 22 23:24:26 UTC 2010 - pascal.bleser@opensuse.org
- update to 0.52:
* POD updates
-------------------------------------------------------------------
Sun Jul 25 16:12:57 UTC 2010 - pascal.bleser@opensuse.org

View File

@@ -1,68 +1,101 @@
# norootforbuild
#
# spec file for package perl-Graphics-Primitive
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Graphics-Primitive
Name: perl-Graphics-Primitive
Version: 0.51
Version: 0.670.0
Release: 0
Summary: Device and Library Agnostic Graphic Primitives for Perl
Source: http://search.cpan.org/CPAN/authors/id/G/GP/GPHAT/Graphics-Primitive-%{version}.tar.gz
Patch1: perl-Graphics-Primitive-remove_done_testing.patch
URL: http://search.cpan.org/dist/Graphics-Primitive/
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: make perl
BuildRequires: perl(Moose)
BuildRequires: perl(Graphics::Color::RGB)
BuildRequires: perl(MooseX::Storage)
BuildRequires: perl(JSON::Any)
BuildRequires: perl(Geometry::Primitive)
BuildRequires: perl(Forest::Tree)
Requires: perl(Moose)
Requires: perl(Graphics::Color::RGB)
Requires: perl(MooseX::Storage)
Requires: perl(JSON::Any)
Requires: perl(Geometry::Primitive)
Requires: perl(Forest::Tree)
# 0.67 -> normalize -> 0.670.0
%define cpan_version 0.67
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Device and library agnostic graphic primitives
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GP/GPHAT/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Data::Visitor::Callback) >= 0.30
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(Forest) >= 0.60.0
BuildRequires: perl(Geometry::Primitive) >= 0.160
BuildRequires: perl(Graphics::Color) >= 0.200
BuildRequires: perl(JSON::Any) >= 1.22
BuildRequires: perl(Moose) >= 0.90
BuildRequires: perl(MooseX::Clone) >= 0.04
BuildRequires: perl(MooseX::Storage) >= 0.17
Requires: perl(Data::Visitor::Callback) >= 0.30
Requires: perl(Forest) >= 0.60.0
Requires: perl(Geometry::Primitive) >= 0.160
Requires: perl(Graphics::Color) >= 0.200
Requires: perl(JSON::Any) >= 1.22
Requires: perl(Moose) >= 0.90
Requires: perl(MooseX::Clone) >= 0.04
Requires: perl(MooseX::Storage) >= 0.17
Provides: perl(Graphics::Primitive) = %{version}
Provides: perl(Graphics::Primitive::Aligned)
Provides: perl(Graphics::Primitive::Border)
Provides: perl(Graphics::Primitive::Brush)
Provides: perl(Graphics::Primitive::Canvas)
Provides: perl(Graphics::Primitive::Component)
Provides: perl(Graphics::Primitive::ComponentList)
Provides: perl(Graphics::Primitive::Container)
Provides: perl(Graphics::Primitive::Driver)
Provides: perl(Graphics::Primitive::Driver::TextLayout)
Provides: perl(Graphics::Primitive::Font)
Provides: perl(Graphics::Primitive::Image)
Provides: perl(Graphics::Primitive::Insets)
Provides: perl(Graphics::Primitive::Operation)
Provides: perl(Graphics::Primitive::Operation::Fill)
Provides: perl(Graphics::Primitive::Operation::Stroke)
Provides: perl(Graphics::Primitive::Oriented)
Provides: perl(Graphics::Primitive::Paint)
Provides: perl(Graphics::Primitive::Paint::Gradient)
Provides: perl(Graphics::Primitive::Paint::Gradient::Linear)
Provides: perl(Graphics::Primitive::Paint::Gradient::Radial)
Provides: perl(Graphics::Primitive::Paint::Solid)
Provides: perl(Graphics::Primitive::Path)
Provides: perl(Graphics::Primitive::TextBox)
%undefine __perllib_provides
%{perl_requires}
%description
Graphics::Primitive is a device and library agnostic system for creating and
manipulating various graphical elements such as Borders, Fonts, Paths and the
like.
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 Driver for actual drawing.
%prep
%setup -q -n "Graphics-Primitive-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%if 0%{?suse_version} < 1120
%patch1
%endif
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%check
%__make test
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%files -f %{name}.files
%doc Changes README
%dir %{perl_vendorlib}/Graphics
%{perl_vendorlib}/Graphics/Primitive.pm
%{perl_vendorlib}/Graphics/Primitive
%dir %{perl_vendorarch}/auto/Graphics
%{perl_vendorarch}/auto/Graphics/Primitive
%doc %{perl_man3dir}/Graphics::Primitive.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Graphics::Primitive::*.%{perl_man3ext}%{ext_man}
/var/adm/perl-modules/%{name}
%changelog
# vim: set sw=4 ts=4 et nu: