SHA256
9
0
forked from pool/perl-Prima
Files
perl-Prima/perl-Prima.spec
Lars Vogdt 324631fa08 Accepting request 809858 from devel:languages:perl:autoupdate
updated to 1.59
   see /usr/share/doc/packages/perl-Prima/Changes
  1.59 2020-05-27
   - Added support for unicode bidirectional algorithm and text shaping:
       -- All standard widgets are moved to new shaped text implementation:
          formerly char-based position properties, such as firstChar and selection,
          are now cluster-based.
       -- Unicode bidirectional algorithms uses fribidi on all platforms
       -- Text shaping uses harfbuzz on unix
       -- Text::Bidi is no loger used
       -- Text input direction is deduced from new Application.language
   - Switch PostScript backend to generate embedded Type1 fonts only
       -- Remove bitmap font generation and remove support for native PS fonts
       -- Remove support for encodings, leave only Unicode
   - Move Prima::*Dialog.pm files into Prima::Dialog::* namespace.
       -- The old packages will be alive for a while, but will print a deprecation message

OBS-URL: https://build.opensuse.org/request/show/809858
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Prima?expand=0&rev=51
2020-05-28 22:37:48 +00:00

82 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-Prima
#
# Copyright (c) 2020 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/
#
Name: perl-Prima
Version: 1.59
Release: 0
#Upstream: SUSE-Public-Domain
%define cpan_name Prima
Summary: Perl graphic toolkit
License: BSD-2-Clause AND AGPL-3.0-only
Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/K/KA/KARASIK/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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: xorg-x11-devel
%define X_display ":98"
Requires: xorg-x11
# MANUAL END
%description
The toolkit is combined from two basic set of classes - core and external.
The core classes are coded in C and form a base line 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 easily expandable set of widgets, written completely in
perl and communicating with the system using Prima library calls.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%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
%defattr(-,root,root,755)
%doc AGPLv3 Changes examples README.md
%license Copying LICENSE
%changelog