1
0
forked from perl/perl-Prima
Files
perl-Prima/perl-Prima.spec

89 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Prima
#
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
#
# 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 Prima
Name: perl-Prima
Version: 1.70000
Release: 0
%define cpan_version 1.70
#Upstream: SUSE-Public-Domain
License: AGPL-3.0-only AND BSD-2-Clause
Summary: Perl graphic toolkit
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/K/KA/KARASIK/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
# MANUAL BEGIN
BuildRequires: giflib-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: xkeyboard-config
BuildRequires: xorg-x11
BuildRequires: xorg-x11-Xvfb
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)
%define X_display ":98"
Requires: xorg-x11
# MANUAL END
%description
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.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
# MANUAL BEGIN
## 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'
###
### should these go to a perl-Prima-devel ?
find $RPM_BUILD_ROOT/%{perl_vendorarch} -name \*.h | xargs -t rm
# MANUAL END
%perl_gen_filelist
%files -f %{name}.files
%doc AGPLv3 Changes examples README.md
%license Copying LICENSE
%changelog