Files
perl-Bio-LITE-Taxonomy/perl-Bio-LITE-Taxonomy.spec

76 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Bio-LITE-Taxonomy
#
# 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 Bio-LITE-Taxonomy
Name: perl-Bio-LITE-Taxonomy
Version: 0.70.0
Release: 0
# 0.07 -> normalize -> 0.70.0
%define cpan_version 0.07
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Lightweight and efficient taxonomic tree manager
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MO/MOTIF/%{cpan_name}-%{cpan_version}.tar.gz
2025-08-12 18:11:57 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.87
Requires: perl(Test::More) >= 0.87
Provides: perl(Bio::LITE::Taxonomy) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This module provides easy and efficient access to different taxonomies
(NCBI and RDP) with minimal dependencies and without intermediate
databases. This module should be used through specific taxonomic interfaces
(e.g. Bio::LITE::Taxonomy::NCBI or Bio::LITE::Taxonomy::RDP).
This module is not part of the Bioperl bundle. For Bioperl alternatives,
see the "SEE ALSO" section of this document. If you are dealing with big
datasets or you don't need the rest of the Bioperl bundle to process
taxonomic queries this module is for you.
These modules are designed with performance in mind. The trees are stored
in memory (as plain hashes). The GI to Taxid mappings provided by
Bio::LITE::Taxonomy::NCBI::Gi2taxid are very efficient. It also supports
both NCBI and RDP taxonomies following the same interface.
%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 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
%changelog