Files
perl-Class-InsideOut/perl-Class-InsideOut.spec
2025-08-12 18:12:25 +02:00

84 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-Class-InsideOut
#
# 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 Class-InsideOut
Name: perl-Class-InsideOut
Version: 1.140.0
Release: 0
# 1.14 -> normalize -> 1.140.0
%define cpan_version 1.14
License: Apache-2.0
Summary: Safe, simple inside-out object construction kit
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::ISA)
Requires: perl(Class::ISA)
Provides: perl(Class::InsideOut) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This is a simple, safe and streamlined toolkit for building inside-out
objects. Unlike most other inside-out object building modules already on
CPAN, this module aims for minimalism and robustness:
* Does not require derived classes to subclass it
* Uses no source filters, attributes or 'CHECK' blocks
* Supports any underlying object type including black-box inheritance
* Does not leak memory on object destruction
* Overloading-safe
* Thread-safe for Perl 5.8.5 or better
* 'mod_perl' compatible
* Makes no assumption about inheritance or initializer needs
It provides the minimal support necessary for creating safe inside-out
objects and generating flexible accessors.
%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 CONTRIBUTING.mkdn examples README Todo
%license LICENSE
%changelog