# # spec file for package perl-Data-Package # # 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 Data-Package Name: perl-Data-Package Version: 1.50.0 Release: 0 # 1.05 -> normalize -> 1.50.0 %define cpan_version 1.05 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Base class for packages that are purely data URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md Patch0: defined-array.patch BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Class::Inspector) >= 1.07 BuildRequires: perl(File::ShareDir) >= 0.05 BuildRequires: perl(Params::Coerce) >= 0.06 BuildRequires: perl(Params::Util) >= 0.21 Requires: perl(Class::Inspector) >= 1.07 Requires: perl(File::ShareDir) >= 0.05 Requires: perl(Params::Coerce) >= 0.06 Requires: perl(Params::Util) >= 0.21 Provides: perl(Data::Package) = %{version} Provides: perl(Data::Package::File) = %{version} %undefine __perllib_provides %{perl_requires} %description 'Data::Package' provides the core of what is hoped will be a highly scalable and extendable API to create data packages and data products that can be delivered via the CPAN (and thus anywhere else). It provides a minimal API that separates how the developer obtains the data in their code from the methods by which the data is actually obtained, installed, loaded, parsed and accessed. The intent is that the consumer of the data should not have to know or care *how* the data is obtained, just that they are always able to obtain the data when they want in the format they want. It also allows the author or provider of the data to assign the data to a unique location within the perl namespace. The can then change or improve the underlying install, storage and loading mechanisms without the need for any code using that data to have to be changed. %prep %autosetup -n %{cpan_name}-%{cpan_version} -p1 find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build PERL_USE_UNSAFE_INC=1 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