Files
perl-Graph-Easy/perl-Graph-Easy.spec
2025-08-12 18:14:25 +02:00

100 lines
3.9 KiB
RPMSpec

#
# spec file for package perl-Graph-Easy
#
# 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 Graph-Easy
Name: perl-Graph-Easy
Version: 0.760.0
Release: 0
# 0.76 -> normalize -> 0.760.0
%define cpan_version 0.76
License: GPL-1.0-or-later
Summary: Convert or render graphs (as ASCII, HTML, SVG or via Graphviz)
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.36
Provides: perl(Graph::Easy) = %{version}
Provides: perl(Graph::Easy::As_ascii) = %{version}
Provides: perl(Graph::Easy::As_graphml) = %{version}
Provides: perl(Graph::Easy::As_graphviz) = %{version}
Provides: perl(Graph::Easy::As_txt) = %{version}
Provides: perl(Graph::Easy::As_vcg) = %{version}
Provides: perl(Graph::Easy::Attributes) = %{version}
Provides: perl(Graph::Easy::Base) = %{version}
Provides: perl(Graph::Easy::Edge) = %{version}
Provides: perl(Graph::Easy::Edge::Cell) = %{version}
Provides: perl(Graph::Easy::Edge::Cell::Empty) = %{version}
Provides: perl(Graph::Easy::Group) = %{version}
Provides: perl(Graph::Easy::Group::Anon) = %{version}
Provides: perl(Graph::Easy::Group::Cell) = %{version}
Provides: perl(Graph::Easy::Heap)
Provides: perl(Graph::Easy::Layout) = %{version}
Provides: perl(Graph::Easy::Layout::Chain) = %{version}
Provides: perl(Graph::Easy::Layout::Force) = %{version}
Provides: perl(Graph::Easy::Layout::Grid) = %{version}
Provides: perl(Graph::Easy::Layout::Path) = %{version}
Provides: perl(Graph::Easy::Layout::Repair) = %{version}
Provides: perl(Graph::Easy::Layout::Scout) = %{version}
Provides: perl(Graph::Easy::Node) = %{version}
Provides: perl(Graph::Easy::Node::Anon) = %{version}
Provides: perl(Graph::Easy::Node::Cell) = %{version}
Provides: perl(Graph::Easy::Node::Empty) = %{version}
Provides: perl(Graph::Easy::Parser) = %{version}
Provides: perl(Graph::Easy::Parser::Graphviz) = %{version}
Provides: perl(Graph::Easy::Parser::VCG) = %{version}
Provides: perl(Graph::Easy::Util)
%undefine __perllib_provides
Recommends: perl(Graph::Easy::As_svg) >= 0.230
%{perl_requires}
%description
'Graph::Easy' lets you generate graphs consisting of various shaped nodes
connected by edges (with optional labels).
It can read and write graphs in a variety of formats, as well as render
them via its own grid-based layouter.
Since the layouter works on a grid (manhattan layout), the output is most
useful for flow charts, network diagrams, or hierarchy trees.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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 examples README TODO
%license LICENSE
%changelog