Files
perl-Graphics-GnuplotIF/perl-Graphics-GnuplotIF.spec

84 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Graphics-GnuplotIF
#
# Copyright (c) 2024 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 Graphics-GnuplotIF
Name: perl-Graphics-GnuplotIF
Version: 1.800.0
Release: 0
# 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
Source1: cpanspec.yml
2025-08-12 18:14:25 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
BuildRequires: perl(version)
Requires: perl(version)
Provides: perl(Graphics::GnuplotIF) = %{version}
%undefine __perllib_provides
%{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
flavours as well as other operating systems, including Windows with
'gnuplot.exe'.
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
parameter persist).
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
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog