SHA256
8
0
forked from pool/perl-Moo
Files
perl-Moo/perl-Moo.spec

83 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Moo
#
# Copyright (c) 2023 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/
#
- updated to 1.002000 - add 'moosify' attribute key to provide code for inflating to Moose - fix warnings about unknown attribute parameters on metaclass inflation - don't pass 'handles' down when doing 'has +' to avoid unDWIMmy explosions - throw a useful exception when typemap doesn't return a value - avoid localising @_ when not required for Sub::Quote - successfully inflate a metaclass for attributeless classes (RT#86415) - fix false default values used with non-lazy accessors - stop built values that fail isa checks still getting stored in the object - stop lazy+weak_ref accessors re-building their value on every call - make lazy+weak_ref accessors return undef if built value isn't already stored elsewhere (Moose compatibility) - stop isa checks being called on every access for lazy attributes - bump Devel::GlobalDestruction dependency to fix warning on cleanup when run under -c (RT#78617) - document Moose type constraint creation for roles and classes (actually fixed in 1.001000) 1.001000 - 2013-03-16 - add support for FOREIGNBUILDARGS when inheriting from non-Moo classes - non-ref default values are allowed without using a sub - has will refuse to overwrite locally defined subs with generated accessors. - added more meta resources and added more support relevant links into the POD documentation - clarify in docs that default and built values won't call triggers (RT#82310) - expand is => 'lazy' doc to make it clear that you can make rw lazy attributes if you really want to - handles => "RoleName" tries to load the module OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Moo?expand=0&rev=8
2013-06-04 08:47:01 +00:00
Accepting request 880485 from devel:languages:perl:autoupdate - updated to 2.005003 see /usr/share/doc/packages/perl-Moo/Changes 2.005003 - 2021-03-21 - silence 'once' warnings from Moo::_Utils 2.005_002 - 2021-01-22 - fix C3 test skipping properly when MRO::Compat not available on perl < 5.10 2.005_001 - 2021-01-20 - fix perl version check in global destruction code 2.005_000 - 2021-01-20 - remove MooseX::Types from developer prereqs - recommend Sub::Util rather than Sub::Name, since Sub::Util is in core - fix line numbers when using oo module (perl -Moo) - adjust some author tests to rely less on external modules - lower Exporter prereq to any version - bump Role::Tiny prereq to 2.003004 - refactor and simplify role application code, as allowed by new Role::Tiny version - switch to using normal strict+warnings rather than strictures for authors - remove strictures from recommends, as Moo does not use it anywhere - remove Task::Weaken prereq, as it served no purpose - remove MRO::Compat prereq, using it only when user code does - remove use of Devel::GlobalDestruction in code, only using Devel::GlobalDestruction::XS when it is available. Devel::GlobalDestruction is still a dependency on perl < 5.14 to facilitate the installation of the ::XS module. - Moo now has no mandatory perl version specific dependencies. The version specific modules are now optional or not used. This means code using Moo can be fatpacked on a new perl version without special cases, and it will work on older perl versions. OBS-URL: https://build.opensuse.org/request/show/880485 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Moo?expand=0&rev=52
2021-03-22 16:33:37 +00:00
%define cpan_name Moo
Name: perl-Moo
Version: 2.005005
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Minimalist Object Orientation (with Moose compatibility)
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:15:39 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Method::Modifiers) >= 1.10
Accepting request 880485 from devel:languages:perl:autoupdate - updated to 2.005003 see /usr/share/doc/packages/perl-Moo/Changes 2.005003 - 2021-03-21 - silence 'once' warnings from Moo::_Utils 2.005_002 - 2021-01-22 - fix C3 test skipping properly when MRO::Compat not available on perl < 5.10 2.005_001 - 2021-01-20 - fix perl version check in global destruction code 2.005_000 - 2021-01-20 - remove MooseX::Types from developer prereqs - recommend Sub::Util rather than Sub::Name, since Sub::Util is in core - fix line numbers when using oo module (perl -Moo) - adjust some author tests to rely less on external modules - lower Exporter prereq to any version - bump Role::Tiny prereq to 2.003004 - refactor and simplify role application code, as allowed by new Role::Tiny version - switch to using normal strict+warnings rather than strictures for authors - remove strictures from recommends, as Moo does not use it anywhere - remove Task::Weaken prereq, as it served no purpose - remove MRO::Compat prereq, using it only when user code does - remove use of Devel::GlobalDestruction in code, only using Devel::GlobalDestruction::XS when it is available. Devel::GlobalDestruction is still a dependency on perl < 5.14 to facilitate the installation of the ::XS module. - Moo now has no mandatory perl version specific dependencies. The version specific modules are now optional or not used. This means code using Moo can be fatpacked on a new perl version without special cases, and it will work on older perl versions. OBS-URL: https://build.opensuse.org/request/show/880485 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Moo?expand=0&rev=52
2021-03-22 16:33:37 +00:00
BuildRequires: perl(Role::Tiny) >= 2.002003
BuildRequires: perl(Sub::Defer) >= 2.006006
BuildRequires: perl(Sub::Quote) >= 2.006006
BuildRequires: perl(Test::More) >= 0.94
Requires: perl(Class::Method::Modifiers) >= 1.10
Accepting request 880485 from devel:languages:perl:autoupdate - updated to 2.005003 see /usr/share/doc/packages/perl-Moo/Changes 2.005003 - 2021-03-21 - silence 'once' warnings from Moo::_Utils 2.005_002 - 2021-01-22 - fix C3 test skipping properly when MRO::Compat not available on perl < 5.10 2.005_001 - 2021-01-20 - fix perl version check in global destruction code 2.005_000 - 2021-01-20 - remove MooseX::Types from developer prereqs - recommend Sub::Util rather than Sub::Name, since Sub::Util is in core - fix line numbers when using oo module (perl -Moo) - adjust some author tests to rely less on external modules - lower Exporter prereq to any version - bump Role::Tiny prereq to 2.003004 - refactor and simplify role application code, as allowed by new Role::Tiny version - switch to using normal strict+warnings rather than strictures for authors - remove strictures from recommends, as Moo does not use it anywhere - remove Task::Weaken prereq, as it served no purpose - remove MRO::Compat prereq, using it only when user code does - remove use of Devel::GlobalDestruction in code, only using Devel::GlobalDestruction::XS when it is available. Devel::GlobalDestruction is still a dependency on perl < 5.14 to facilitate the installation of the ::XS module. - Moo now has no mandatory perl version specific dependencies. The version specific modules are now optional or not used. This means code using Moo can be fatpacked on a new perl version without special cases, and it will work on older perl versions. OBS-URL: https://build.opensuse.org/request/show/880485 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Moo?expand=0&rev=52
2021-03-22 16:33:37 +00:00
Requires: perl(Role::Tiny) >= 2.002003
Requires: perl(Sub::Defer) >= 2.006006
Requires: perl(Sub::Quote) >= 2.006006
Recommends: perl(Class::XSAccessor) >= 1.18
Accepting request 880485 from devel:languages:perl:autoupdate - updated to 2.005003 see /usr/share/doc/packages/perl-Moo/Changes 2.005003 - 2021-03-21 - silence 'once' warnings from Moo::_Utils 2.005_002 - 2021-01-22 - fix C3 test skipping properly when MRO::Compat not available on perl < 5.10 2.005_001 - 2021-01-20 - fix perl version check in global destruction code 2.005_000 - 2021-01-20 - remove MooseX::Types from developer prereqs - recommend Sub::Util rather than Sub::Name, since Sub::Util is in core - fix line numbers when using oo module (perl -Moo) - adjust some author tests to rely less on external modules - lower Exporter prereq to any version - bump Role::Tiny prereq to 2.003004 - refactor and simplify role application code, as allowed by new Role::Tiny version - switch to using normal strict+warnings rather than strictures for authors - remove strictures from recommends, as Moo does not use it anywhere - remove Task::Weaken prereq, as it served no purpose - remove MRO::Compat prereq, using it only when user code does - remove use of Devel::GlobalDestruction in code, only using Devel::GlobalDestruction::XS when it is available. Devel::GlobalDestruction is still a dependency on perl < 5.14 to facilitate the installation of the ::XS module. - Moo now has no mandatory perl version specific dependencies. The version specific modules are now optional or not used. This means code using Moo can be fatpacked on a new perl version without special cases, and it will work on older perl versions. OBS-URL: https://build.opensuse.org/request/show/880485 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Moo?expand=0&rev=52
2021-03-22 16:33:37 +00:00
Recommends: perl(Sub::Util)
%{perl_requires}
%description
'Moo' is an extremely light-weight Object Orientation system. It allows one
to concisely define objects and roles with a convenient syntax that avoids
the details of Perl's object system. 'Moo' contains a subset of Moose and
is optimised for rapid startup.
- updated to 1.002000 - add 'moosify' attribute key to provide code for inflating to Moose - fix warnings about unknown attribute parameters on metaclass inflation - don't pass 'handles' down when doing 'has +' to avoid unDWIMmy explosions - throw a useful exception when typemap doesn't return a value - avoid localising @_ when not required for Sub::Quote - successfully inflate a metaclass for attributeless classes (RT#86415) - fix false default values used with non-lazy accessors - stop built values that fail isa checks still getting stored in the object - stop lazy+weak_ref accessors re-building their value on every call - make lazy+weak_ref accessors return undef if built value isn't already stored elsewhere (Moose compatibility) - stop isa checks being called on every access for lazy attributes - bump Devel::GlobalDestruction dependency to fix warning on cleanup when run under -c (RT#78617) - document Moose type constraint creation for roles and classes (actually fixed in 1.001000) 1.001000 - 2013-03-16 - add support for FOREIGNBUILDARGS when inheriting from non-Moo classes - non-ref default values are allowed without using a sub - has will refuse to overwrite locally defined subs with generated accessors. - added more meta resources and added more support relevant links into the POD documentation - clarify in docs that default and built values won't call triggers (RT#82310) - expand is => 'lazy' doc to make it clear that you can make rw lazy attributes if you really want to - handles => "RoleName" tries to load the module OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Moo?expand=0&rev=8
2013-06-04 08:47:01 +00:00
'Moo' avoids depending on any XS modules to allow for simple deployments.
The name 'Moo' is based on the idea that it provides almost -- but not
quite -- two thirds of Moose. As such, the Moose::Manual can serve as an
effective guide to 'Moo' aside from the MOP and Types sections.
- updated to 1.002000 - add 'moosify' attribute key to provide code for inflating to Moose - fix warnings about unknown attribute parameters on metaclass inflation - don't pass 'handles' down when doing 'has +' to avoid unDWIMmy explosions - throw a useful exception when typemap doesn't return a value - avoid localising @_ when not required for Sub::Quote - successfully inflate a metaclass for attributeless classes (RT#86415) - fix false default values used with non-lazy accessors - stop built values that fail isa checks still getting stored in the object - stop lazy+weak_ref accessors re-building their value on every call - make lazy+weak_ref accessors return undef if built value isn't already stored elsewhere (Moose compatibility) - stop isa checks being called on every access for lazy attributes - bump Devel::GlobalDestruction dependency to fix warning on cleanup when run under -c (RT#78617) - document Moose type constraint creation for roles and classes (actually fixed in 1.001000) 1.001000 - 2013-03-16 - add support for FOREIGNBUILDARGS when inheriting from non-Moo classes - non-ref default values are allowed without using a sub - has will refuse to overwrite locally defined subs with generated accessors. - added more meta resources and added more support relevant links into the POD documentation - clarify in docs that default and built values won't call triggers (RT#82310) - expand is => 'lazy' doc to make it clear that you can make rw lazy attributes if you really want to - handles => "RoleName" tries to load the module OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Moo?expand=0&rev=8
2013-06-04 08:47:01 +00:00
Unlike Mouse this module does not aim at full compatibility with Moose's
surface syntax, preferring instead to provide full interoperability via the
metaclass inflation capabilities described in MOO AND MOOSE.
For a full list of the minor differences between Moose and Moo's surface
syntax, see INCOMPATIBILITIES WITH MOOSE.
%prep
Accepting request 880485 from devel:languages:perl:autoupdate - updated to 2.005003 see /usr/share/doc/packages/perl-Moo/Changes 2.005003 - 2021-03-21 - silence 'once' warnings from Moo::_Utils 2.005_002 - 2021-01-22 - fix C3 test skipping properly when MRO::Compat not available on perl < 5.10 2.005_001 - 2021-01-20 - fix perl version check in global destruction code 2.005_000 - 2021-01-20 - remove MooseX::Types from developer prereqs - recommend Sub::Util rather than Sub::Name, since Sub::Util is in core - fix line numbers when using oo module (perl -Moo) - adjust some author tests to rely less on external modules - lower Exporter prereq to any version - bump Role::Tiny prereq to 2.003004 - refactor and simplify role application code, as allowed by new Role::Tiny version - switch to using normal strict+warnings rather than strictures for authors - remove strictures from recommends, as Moo does not use it anywhere - remove Task::Weaken prereq, as it served no purpose - remove MRO::Compat prereq, using it only when user code does - remove use of Devel::GlobalDestruction in code, only using Devel::GlobalDestruction::XS when it is available. Devel::GlobalDestruction is still a dependency on perl < 5.14 to facilitate the installation of the ::XS module. - Moo now has no mandatory perl version specific dependencies. The version specific modules are now optional or not used. This means code using Moo can be fatpacked on a new perl version without special cases, and it will work on older perl versions. OBS-URL: https://build.opensuse.org/request/show/880485 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Moo?expand=0&rev=52
2021-03-22 16:33:37 +00:00
%autosetup -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
Accepting request 880485 from devel:languages:perl:autoupdate - updated to 2.005003 see /usr/share/doc/packages/perl-Moo/Changes 2.005003 - 2021-03-21 - silence 'once' warnings from Moo::_Utils 2.005_002 - 2021-01-22 - fix C3 test skipping properly when MRO::Compat not available on perl < 5.10 2.005_001 - 2021-01-20 - fix perl version check in global destruction code 2.005_000 - 2021-01-20 - remove MooseX::Types from developer prereqs - recommend Sub::Util rather than Sub::Name, since Sub::Util is in core - fix line numbers when using oo module (perl -Moo) - adjust some author tests to rely less on external modules - lower Exporter prereq to any version - bump Role::Tiny prereq to 2.003004 - refactor and simplify role application code, as allowed by new Role::Tiny version - switch to using normal strict+warnings rather than strictures for authors - remove strictures from recommends, as Moo does not use it anywhere - remove Task::Weaken prereq, as it served no purpose - remove MRO::Compat prereq, using it only when user code does - remove use of Devel::GlobalDestruction in code, only using Devel::GlobalDestruction::XS when it is available. Devel::GlobalDestruction is still a dependency on perl < 5.14 to facilitate the installation of the ::XS module. - Moo now has no mandatory perl version specific dependencies. The version specific modules are now optional or not used. This means code using Moo can be fatpacked on a new perl version without special cases, and it will work on older perl versions. OBS-URL: https://build.opensuse.org/request/show/880485 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Moo?expand=0&rev=52
2021-03-22 16:33:37 +00:00
%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