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

86 lines
3.0 KiB
RPMSpec

#
# spec file for package perl-Graphics-GnuplotIF (Version 1.6)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-Graphics-GnuplotIF
Version: 1.6
Release: 1
License: GPL+ or Artistic
%define cpan_name Graphics-GnuplotIF
Summary: A dynamic Perl interface to gnuplot
Url: http://search.cpan.org/dist/Graphics-GnuplotIF/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/M/ME/MEHNER/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(version)
Requires: perl(Test::More)
Requires: perl(version)
%{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.
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 new).
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
%setup -q -n %{cpan_name}-%{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
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc %attr(644,root,root,755) Changes README
%changelog