File perl-Task-MemManager-View.spec of Package perl-Task-MemManager-View

#
# spec file for package perl-Task-MemManager-View
#
# Copyright (c) 2025 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 Task-MemManager-View
Name:           perl-Task-MemManager-View
Version:        0.01
Release:        0
License:        MIT
Summary:        Provides access to alternative views (e.g. as PDL ndarrays) of Task::Mem[cut]
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/C/CH/CHRISARG/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Module::Find)
BuildRequires:  perl(Module::Runtime)
Requires:       perl(Module::Find)
Requires:       perl(Module::Runtime)
%{perl_requires}

%description
Task::MemManager::View is a module that extends the 'Task::MemManager'
module by providing convenient views for the memory buffers allocated by
the 'Task::MemManager' module. It does so, by adding additional methods to
the 'Task::MemManager' class to create, delete, and retrieve views. Views
are implemented as separate modules under the 'Task::MemManager::View'
namespace. Each view module must implement a set of mandatory methods (see
below). The view modules are automatically discovered and loaded when the
'Task::MemManager::View' module is loaded. If you do not need a view, do
not install the corresponding module, because 'Task::MemManager::View' is a
graceful module that will load *every* module under it's namespace.

%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
%license LICENSE

%changelog
openSUSE Build Service is sponsored by