65 lines
1.9 KiB
RPMSpec
65 lines
1.9 KiB
RPMSpec
|
#
|
||
|
# spec file for package perl-Graph-ReadWrite
|
||
|
#
|
||
|
# Copyright (c) 2022 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.10
|
||
|
Release: 0
|
||
|
Summary: Graph data structures and algorithms
|
||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||
|
URL: https://metacpan.org/release/%{cpan_name}
|
||
|
Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: perl(Graph) >= 0.50
|
||
|
BuildRequires: perl(Parse::Yapp)
|
||
|
BuildRequires: perl(XML::Parser)
|
||
|
BuildRequires: perl(XML::Writer)
|
||
|
Requires: perl(Graph) >= 0.50
|
||
|
Requires: perl(Parse::Yapp)
|
||
|
Requires: perl(XML::Parser)
|
||
|
Requires: perl(XML::Writer)
|
||
|
%{perl_requires}
|
||
|
|
||
|
%description
|
||
|
This is a collection of perl classes for reading and writing directed graphs in
|
||
|
a variety of file formats. The graphs are represented in Perl using Jarkko
|
||
|
Hietaniemi's Graph classes. Version 2+ of this distribution works with version
|
||
|
0.5 and later of the Graph distribution.
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{cpan_name}-%{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
|
||
|
|
||
|
%changelog
|