2011-04-14 08:46:45 +00:00
|
|
|
#
|
2015-04-15 07:17:53 +00:00
|
|
|
# spec file for package perl-Graphics-GnuplotIF
|
2011-04-14 08:46:45 +00:00
|
|
|
#
|
2024-07-14 18:07:21 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-04-14 08:46:45 +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.
|
|
|
|
|
2024-07-14 18:07:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-14 08:46:45 +00:00
|
|
|
#
|
|
|
|
|
2015-04-15 07:17:53 +00:00
|
|
|
|
2024-07-14 18:07:21 +00:00
|
|
|
%define cpan_name Graphics-GnuplotIF
|
2011-04-14 08:46:45 +00:00
|
|
|
Name: perl-Graphics-GnuplotIF
|
2024-07-14 18:07:21 +00:00
|
|
|
Version: 1.800.0
|
2015-04-15 07:17:53 +00:00
|
|
|
Release: 0
|
2024-07-14 18:07:21 +00:00
|
|
|
# 1.8 -> normalize -> 1.800.0
|
|
|
|
%define cpan_version 1.8
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
Summary: Dynamic Perl interface to gnuplot
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/ME/MEHNER/%{cpan_name}-%{cpan_version}.tar.gz
|
2016-01-07 11:44:19 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:25 +02:00
|
|
|
Source100: README.md
|
2011-04-14 08:46:45 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(version)
|
|
|
|
Requires: perl(version)
|
2024-07-14 18:07:21 +00:00
|
|
|
Provides: perl(Graphics::GnuplotIF) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2011-04-14 08:46:45 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Graphics::GnuplotIF is a simple and easy to use dynamic Perl interface to
|
|
|
|
*gnuplot*. *gnuplot* is a freely available, command-driven graphical
|
|
|
|
display tool for Unix. It compiles and works quite well on a number of Unix
|
2015-04-15 07:17:53 +00:00
|
|
|
flavours as well as other operating systems, including Windows with
|
|
|
|
'gnuplot.exe'.
|
2011-04-14 08:46:45 +00:00
|
|
|
|
|
|
|
This module enables sending display requests asynchronously to *gnuplot*
|
|
|
|
through simple Perl subroutine calls.
|
|
|
|
|
|
|
|
A gnuplot session is an instance of class Graphics::GnuplotIF. The
|
|
|
|
constructor starts *gnuplot* as a separate process for each session. The
|
|
|
|
plot commands are send through a _pipe_. The graphical output from
|
|
|
|
*gnuplot* will be displayed immediately.
|
|
|
|
|
|
|
|
Several independent plots can be started from one script. Each plot has its
|
|
|
|
own pipe. All pipes will be closed automatically by the destructor when the
|
|
|
|
script terminates. The *gnuplot* processes terminate when the corresponding
|
|
|
|
pipes are closed. Their graphical output will now disappear (but see
|
2016-01-07 11:44:19 +00:00
|
|
|
parameter persist).
|
2011-04-14 08:46:45 +00:00
|
|
|
|
|
|
|
Graphics::GnuplotIF is similar to ' gnuplot_i ', a C interface to *gnuplot*
|
|
|
|
( http://ndevilla.free.fr/gnuplot/ ), and to ' gnuplot_i++ ', a C++
|
|
|
|
interface to *gnuplot* ( http://jijo.cjb.net/code/cc++ ).
|
|
|
|
|
|
|
|
%prep
|
2024-07-14 18:07:21 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-04-14 08:46:45 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-14 18:07:21 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-04-14 08:46:45 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2024-07-14 18:07:21 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-04-14 08:46:45 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2011-04-15 07:29:25 +00:00
|
|
|
%doc Changes README
|
2011-04-14 08:46:45 +00:00
|
|
|
|
|
|
|
%changelog
|