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
|
|
|
#
|
2019-02-08 18:14:43 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
|
2007-01-15 23:31:40 +00:00
|
|
|
Name: perl-Prima
|
2019-02-08 18:14:43 +00:00
|
|
|
Version: 1.54
|
2015-04-16 18:06:05 +00:00
|
|
|
Release: 0
|
|
|
|
#Upstream: SUSE-Public-Domain
|
|
|
|
%define cpan_name Prima
|
|
|
|
Summary: Perl Graphic Toolkit
|
2019-03-12 10:48:52 +00:00
|
|
|
License: BSD-2-Clause AND AGPL-3.0-only
|
2015-04-16 18:06:05 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2018-11-09 07:24:14 +00:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/K/KA/KARASIK/%{cpan_name}-%{version}.tar.gz
|
2015-04-16 18:06:05 +00:00
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
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
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
%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
|
2015-04-16 18:06:05 +00:00
|
|
|
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.
|
2007-01-15 23:31:40 +00:00
|
|
|
|
|
|
|
%prep
|
2015-04-16 18:06:05 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2016-03-23 10:09:50 +00:00
|
|
|
find . -type f ! -name \*.pl -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}"
|
|
|
|
make %{?_smp_mflags}
|
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
|
|
|
|
%defattr(-,root,root,755)
|
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
|