2024-07-22 20:57:02 +00:00
committed by Git OBS Bridge
parent 84581f40a6
commit c2261b6be6

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Graph-Easy # spec file for package perl-Graph-Easy
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,26 +12,57 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: perl-Graph-Easy
Version: 0.76
Release: 0
%define cpan_name Graph-Easy %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) Summary: Convert or render graphs (as ASCII, HTML, SVG or via Graphviz)
License: GPL-1.0+ URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{cpan_version}.tar.gz
Url: http://search.cpan.org/dist/Graph-Easy/
Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.360000 BuildRequires: perl(Module::Build) >= 0.36
Recommends: perl(Graph::Easy::As_svg) >= 0.23 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} %{perl_requires}
%description %description
@@ -45,22 +76,23 @@ Since the layouter works on a grid (manhattan layout), the output is most
useful for flow charts, network diagrams, or hierarchy trees. useful for flow charts, network diagrams, or hierarchy trees.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
%{__perl} Build.PL installdirs=vendor perl Build.PL --installdirs=vendor
./Build build flags=%{?_smp_mflags} ./Build build --flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=%{buildroot} create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc CHANGES examples README TODO
%doc bench CHANGES examples LICENSE README scripts TODO %license LICENSE
%changelog %changelog