2011-04-14 08:47:26 +00:00
|
|
|
#
|
2011-04-14 08:47:38 +00:00
|
|
|
# spec file for package perl-GraphViz
|
2011-04-14 08:47:26 +00:00
|
|
|
#
|
2011-04-14 08:47:38 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-04-14 08:47:26 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-04-14 08:47:38 +00:00
|
|
|
|
2011-04-14 08:47:26 +00:00
|
|
|
Name: perl-GraphViz
|
2011-11-21 11:40:44 +00:00
|
|
|
Version: 2.08
|
2011-04-14 08:47:26 +00:00
|
|
|
Release: 1
|
|
|
|
License: GPL+ or Artistic
|
2011-11-21 11:40:44 +00:00
|
|
|
%define cpan_name GraphViz
|
|
|
|
Summary: Interface to AT&T's GraphViz. Deprecated. See GraphViz2
|
2011-04-14 08:47:26 +00:00
|
|
|
Url: http://search.cpan.org/dist/GraphViz/
|
2011-11-21 11:40:44 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Source: http://www.cpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{version}.tgz
|
2011-04-14 08:47:26 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-11-21 11:40:44 +00:00
|
|
|
BuildRequires: perl(File::Which) >= 1.09
|
2011-04-14 08:47:26 +00:00
|
|
|
BuildRequires: perl(IPC::Run) >= 0.6
|
2011-11-21 11:40:44 +00:00
|
|
|
BuildRequires: perl(LWP::Simple) >= 6
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(Parse::RecDescent) >= 1.965001
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.44
|
|
|
|
BuildRequires: perl(XML::Twig) >= 3.38
|
|
|
|
BuildRequires: perl(XML::XPath) >= 1.13
|
|
|
|
Requires: perl(File::Which) >= 1.09
|
2011-04-14 08:47:26 +00:00
|
|
|
Requires: perl(IPC::Run) >= 0.6
|
2011-11-21 11:40:44 +00:00
|
|
|
Requires: perl(LWP::Simple) >= 6
|
|
|
|
Requires: perl(Parse::RecDescent) >= 1.965001
|
|
|
|
Requires: perl(XML::Twig) >= 3.38
|
|
|
|
Requires: perl(XML::XPath) >= 1.13
|
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
|
|
|
BuildRequires: graphviz
|
2011-04-14 08:47:26 +00:00
|
|
|
# graphviz-gnome is required so that dot -Tpng works.
|
2011-04-14 08:47:38 +00:00
|
|
|
Requires: graphviz graphviz-gnome pango cairo
|
2011-11-21 11:40:44 +00:00
|
|
|
# MANUAL END
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides an interface to layout and image generation of
|
|
|
|
directed and undirected graphs in a variety of formats (PostScript, PNG,
|
|
|
|
etc.) using the "dot", "neato", "twopi", "circo" and "fdp" programs from
|
|
|
|
the GraphViz project (http://www.graphviz.org/ or
|
|
|
|
http://www.research.att.com/sw/tools/graphviz/).
|
|
|
|
|
2011-11-21 11:40:44 +00:00
|
|
|
GraphViz is deprecated in favour of the GraphViz2 manpage.
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2011-11-21 11:40:44 +00:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%build
|
2011-11-21 11:40:44 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%check
|
2011-11-21 11:40:44 +00:00
|
|
|
./Build test
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%install
|
2011-11-21 11:40:44 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2011-04-14 08:47:26 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2011-11-21 11:40:44 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changelog.ini CHANGES examples README
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%changelog
|