2007-01-15 23:31:40 +00:00
|
|
|
#
|
2011-04-01 10:57:12 +00:00
|
|
|
# spec file for package perl-Prima
|
2007-01-15 23:31:40 +00:00
|
|
|
#
|
Accepting request 1065497 from devel:languages:perl:autoupdate
- updated to 1.67001
see /usr/share/doc/packages/perl-Prima/Changes
1.68 2023-XX-XX
- Process signals inside event loop
- Add sys::GUIException, onDie, and a standard dialog for user interactions on exceptions
- Widget.onMouseClick.dblclick::bool is .nth::int now, can report triple, quadruple etc clicks
- Support fillPattern with tiles in the emulated antialiasing
- Add Date and Time widgets (and their example/clock.pl)
- Remove native Win32 support from cygwin builds
- File.onRead supports native Win32 console stdin event
- Support XIM input
1.67 2022-11-27
- Links and tooltips extended functionality:
-- Added interactive links in Label
-- Markup recognizes hyperlinks now with new "L<URL|text>" syntax
-- Generic link opening is handled by new module Prima::Widget::Link
-- Pod-embedded base64-encoded images are supported in podview and tooltips
- Some modules were split and moved to Prima::Widget:: namespace
- Compilation update for the latest MSVC
- use Prima qw(MsgBox and the like) re-exports symbols to the caller level:
message() will do now instead of Prima::MsgBox::message()
- Added conversion helpers:
-- Prima::Image.to_rgba()
-- cl::to_gray_byte(), cl::to_gray_rgb(), cl::from_gray_byte()
- ColorDialog and ColorComboBox support grayscale mode
- Image.rotate() has new fill parameter
- Major rewrite of plotting primitives by Drawable:
-- lineEnd,linePattern,lineWidth,miterLimit,lineJoin are served by
Prima::Drawable::Path now if lineWidth > 0
-- Note: antialiased lines with width = 0 are invisible now!
-- Prima::Drawable::Path is heavily optimized
-- Drawable.matrix() is supported for all plotting primitives
-- Drawable.translate() is a syntax sugar for matrix operations
-- Drawable line ends are customizable now (see Drawable.pod, "Custom line end styles" )
-- Regions defined by polylines and images are internally plotted
- Drawable.render_pattern emulates fill patterns distorted via matrix transformations
- X11:
-- better support of window icons
-- better support of multiple monitors
OBS-URL: https://build.opensuse.org/request/show/1065497
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Prima?expand=0&rev=63
2023-02-13 19:06:06 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:31:40 +00:00
|
|
|
#
|
2008-11-28 14:48:19 +00:00
|
|
|
# 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.
|
|
|
|
|
2018-11-09 07:24:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:31:40 +00:00
|
|
|
#
|
|
|
|
|
2008-04-09 19:50:35 +00:00
|
|
|
|
2021-04-24 12:26:26 +00:00
|
|
|
%define cpan_name Prima
|
2007-01-15 23:31:40 +00:00
|
|
|
Name: perl-Prima
|
2023-09-12 15:20:45 +00:00
|
|
|
Version: 1.70000
|
2015-04-16 18:06:05 +00:00
|
|
|
Release: 0
|
2023-09-12 15:20:45 +00:00
|
|
|
%define cpan_version 1.70
|
2015-04-16 18:06:05 +00:00
|
|
|
#Upstream: SUSE-Public-Domain
|
2022-04-28 05:11:16 +00:00
|
|
|
License: AGPL-3.0-only AND BSD-2-Clause
|
2019-04-02 05:56:51 +00:00
|
|
|
Summary: Perl graphic toolkit
|
2020-05-28 22:37:48 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-09-12 15:20:45 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/K/KA/KARASIK/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-16 18:06:05 +00:00
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
2012-06-03 07:48:55 +00:00
|
|
|
BuildRequires: giflib-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: xkeyboard-config
|
|
|
|
BuildRequires: xorg-x11
|
|
|
|
BuildRequires: xorg-x11-Xvfb
|
2023-05-11 15:40:27 +00:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xcomposite)
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xft)
|
|
|
|
BuildRequires: pkgconfig(xpm)
|
|
|
|
BuildRequires: pkgconfig(xproto)
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
2012-06-03 07:48:55 +00:00
|
|
|
%define X_display ":98"
|
2010-02-18 15:51:32 +00:00
|
|
|
Requires: xorg-x11
|
2015-04-16 18:06:05 +00:00
|
|
|
# MANUAL END
|
2007-01-15 23:31:40 +00:00
|
|
|
|
|
|
|
%description
|
2023-09-12 15:20:45 +00:00
|
|
|
The toolkit is a combination of two basic sets of classes - core and
|
|
|
|
external. The core classes are coded in C and form a baseline for every
|
|
|
|
Prima object written in Perl. The usage of C is possible together with the
|
|
|
|
toolkit; however, its full power is revealed in the Perl domain. The
|
|
|
|
external classes present an easily expandable set of widgets, written
|
|
|
|
entirely in Perl and communicating with the system using Prima library
|
|
|
|
calls.
|
2007-01-15 23:31:40 +00:00
|
|
|
|
|
|
|
%prep
|
2023-09-12 15:20:45 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2007-01-15 23:31:40 +00:00
|
|
|
|
|
|
|
%build
|
2018-11-09 07:24:14 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2021-04-24 12:26:26 +00:00
|
|
|
%make_build
|
2010-02-18 15:51:32 +00:00
|
|
|
|
|
|
|
%check
|
2018-11-09 07:24:14 +00:00
|
|
|
make test
|
2007-01-15 23:31:40 +00:00
|
|
|
|
|
|
|
%install
|
2012-06-03 07:48:55 +00:00
|
|
|
%perl_make_install
|
2015-04-16 18:06:05 +00:00
|
|
|
%perl_process_packlist
|
|
|
|
# MANUAL BEGIN
|
2012-06-03 07:48:55 +00:00
|
|
|
## oops, Prima/Config.pm must not contain BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -name 'Config.pm' -print0 | xargs -0 perl -i -pe "s{\\Q$RPM_BUILD_ROOT}"'{}g'
|
2007-06-03 19:59:52 +00:00
|
|
|
###
|
|
|
|
### should these go to a perl-Prima-devel ?
|
|
|
|
find $RPM_BUILD_ROOT/%{perl_vendorarch} -name \*.h | xargs -t rm
|
2015-04-16 18:06:05 +00:00
|
|
|
# MANUAL END
|
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:40 +00:00
|
|
|
|
2015-04-16 18:06:05 +00:00
|
|
|
%files -f %{name}.files
|
2018-11-09 07:24:14 +00:00
|
|
|
%doc AGPLv3 Changes examples README.md
|
|
|
|
%license Copying LICENSE
|
2007-01-15 23:31:40 +00:00
|
|
|
|
2007-06-03 19:59:52 +00:00
|
|
|
%changelog
|