# # spec file for package perl-Graph-ReadWrite # # 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-ReadWrite Name: perl-Graph-ReadWrite Version: 2.100.0 Release: 0 # 2.10 -> normalize -> 2.100.0 %define cpan_version 2.10 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Modules for reading and writing directed graphs URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Graph) BuildRequires: perl(Graph::Undirected) BuildRequires: perl(parent) #BuildRequires: perl(Parse::Yapp::Driver) BuildRequires: perl(XML::Parser) BuildRequires: perl(XML::Writer) Requires: perl(Graph) Requires: perl(parent) #Requires: perl(Parse::Yapp::Driver) Requires: perl(XML::Parser) Requires: perl(XML::Writer) Provides: perl(Graph::ReadWrite) = %{version} Provides: perl(Graph::Reader) = %{version} Provides: perl(Graph::Reader::Dot) = %{version} Provides: perl(Graph::Reader::HTK) = %{version} Provides: perl(Graph::Reader::XML) = %{version} Provides: perl(Graph::Writer) = %{version} Provides: perl(Graph::Writer::Dot) = %{version} Provides: perl(Graph::Writer::HTK) = %{version} Provides: perl(Graph::Writer::VCG) = %{version} Provides: perl(Graph::Writer::XML) = %{version} Provides: perl(Graph::Writer::daVinci) = %{version} %undefine __perllib_provides %{perl_requires} # MANUAL BEGIN BuildRequires: perl(Parse::Yapp) Requires: perl(Parse::Yapp) # MANUAL END %description This module is a placeholder in the Graph-ReadWrite distribution, which is a collection of modules for reading and writing directed graphs. You don't use 'Graph::ReadWrite', you use one of the reader or writer modules for a specific format: * * Graph::Reader::Dot - class for reading a Graph instance from Dot format. * * Graph::Reader::HTK - read an HTK lattice in as an instance of Graph. * * Graph::Reader::XML - class for reading a Graph instance from XML * * Graph::Writer::Dot - write out directed graph in Dot format * * Graph::Writer::HTK - write a perl Graph out as an HTK lattice file * * Graph::Writer::VCG - write out directed graph in VCG format * * Graph::Writer::XML - write out directed graph as XML * * Graph::Writer::daVinci - write out directed graph in daVinci format %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README TODO %license LICENSE %changelog