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
|
|
|
#
|
2023-03-10 10:43:12 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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.
|
|
|
|
|
2022-08-24 07:42:20 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-14 08:47:26 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-08-24 07:42:20 +00:00
|
|
|
%define cpan_name GraphViz
|
2011-04-14 08:47:26 +00:00
|
|
|
Name: perl-GraphViz
|
2023-03-10 10:43:12 +00:00
|
|
|
Version: 2.26
|
2014-05-12 08:25:03 +00:00
|
|
|
Release: 0
|
2022-08-24 07:42:20 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2011-11-21 11:40:44 +00:00
|
|
|
Summary: Interface to AT&T's GraphViz. Deprecated. See GraphViz2
|
2022-08-24 07:42:20 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{cpan_name}-%{version}.tar.gz
|
2017-10-13 09:40:19 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:26 +02:00
|
|
|
Source100: README.md
|
2011-04-14 08:47:26 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
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(Parse::RecDescent) >= 1.965001
|
2017-10-13 09:40:19 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 1.001002
|
|
|
|
BuildRequires: perl(XML::Twig) >= 3.52
|
2011-11-21 11:40:44 +00:00
|
|
|
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
|
2017-10-13 09:40:19 +00:00
|
|
|
Requires: perl(XML::Twig) >= 3.52
|
2011-11-21 11:40:44 +00:00
|
|
|
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.
|
2014-05-12 08:25:03 +00:00
|
|
|
Requires: cairo
|
|
|
|
Requires: graphviz
|
|
|
|
Requires: graphviz-gnome
|
|
|
|
Requires: pango
|
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
|
2017-10-13 09:40:19 +00:00
|
|
|
the Graphviz project (http://www.graphviz.org/ or
|
2011-04-14 08:47:26 +00:00
|
|
|
http://www.research.att.com/sw/tools/graphviz/).
|
|
|
|
|
2017-10-13 09:40:19 +00:00
|
|
|
GraphViz is deprecated in favour of GraphViz2.
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%prep
|
2022-08-24 07:42:20 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2023-03-10 10:43:12 +00:00
|
|
|
|
2022-08-24 07:42:20 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2017-10-13 09:40:19 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
sed -i -e s,/usr/local/bin/perl,/usr/bin/perl, examples/*.pl
|
|
|
|
# MANUAL END
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%build
|
2022-08-24 07:42:20 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%check
|
2022-08-24 07:42:20 +00:00
|
|
|
make test
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%install
|
2017-10-13 09:40:19 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-04-14 08:47:26 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2017-10-13 09:40:19 +00:00
|
|
|
%doc Changes examples README
|
|
|
|
%license LICENSE
|
2011-04-14 08:47:26 +00:00
|
|
|
|
|
|
|
%changelog
|