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
|
|
|
#
|
2025-04-14 20:40:40 +00:00
|
|
|
# Copyright (c) 2025 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
|
2025-04-14 20:40:40 +00:00
|
|
|
Version: 1.76000
|
2015-04-16 18:06:05 +00:00
|
|
|
Release: 0
|
2025-04-14 20:40:40 +00:00
|
|
|
%define cpan_version 1.76
|
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
|
2025-08-12 18:16:44 +02:00
|
|
|
Source100: README.md
|
2015-04-16 18:06:05 +00:00
|
|
|
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-11-16 16:41:01 +00:00
|
|
|
Prima is a classic 2D GUI toolkit that works under Windows and X11
|
|
|
|
environments. The toolkit features a rich widget library, extensive 2D
|
|
|
|
graphic support, PDF generation, modern Unicode text input and output, and
|
|
|
|
supports a wide set of image formats. Additionally, the RAD-style Visual
|
|
|
|
Builder and POD viewer are included. The toolkit can interoperate with
|
|
|
|
other popular event loop libraries.
|
2007-01-15 23:31:40 +00:00
|
|
|
|
|
|
|
%prep
|
2025-04-14 20:40:40 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2007-01-15 23:31:40 +00:00
|
|
|
|
2023-11-16 16:41:01 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
|
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
|