8
0
Files
perl-Object-Pad/perl-Object-Pad.spec
Dirk Stoecker 84ed070d5a Accepting request 956367 from devel:languages:perl:autoupdate
- updated to 0.61
   see /usr/share/doc/packages/perl-Object-Pad/Changes
  0.61    2022-02-16
          [CHANGES]
           * Added Object::Pad::MOP::Class->create_{class,role}
           * Added $metaclass->seal (RT131294)
           * Added $metaclass->add_required_method and ->required_method_names
             (RT141314)
           * Accept bodyless `method NAME;` declarations to declare a required
             role method
          [BUGFIXES]
           * Assert when compclassmeta->name doesn't match PL_curstname (RT131293)

OBS-URL: https://build.opensuse.org/request/show/956367
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Object-Pad?expand=0&rev=2
2022-02-24 14:47:48 +00:00

80 lines
2.9 KiB
RPMSpec

#
# spec file for package perl-Object-Pad
#
# Copyright (c) 2022 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 Object-Pad
Name: perl-Object-Pad
Version: 0.61
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Simple syntax for lexical field-based objects
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build) >= 0.400400
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Refcount)
BuildRequires: perl(XS::Parse::Keyword) >= 0.19
BuildRequires: perl(XS::Parse::Keyword::Builder) >= 0.19
BuildRequires: perl(XS::Parse::Sublike) >= 0.15
BuildRequires: perl(XS::Parse::Sublike::Builder) >= 0.15
Requires: perl(XS::Parse::Keyword) >= 0.19
Requires: perl(XS::Parse::Sublike) >= 0.15
%{perl_requires}
%description
This module provides a simple syntax for creating object classes, which
uses private variables that look like lexicals as object member fields.
*WARNING* This module is still experimental. The parts that currently exist
do seem to work reliably but much of the design is still evolving, and many
features and have yet to be implemented. I don't yet guarantee I won't have
to change existing details in order to continue its development. Feel free
to try it out in experimental or newly-developed code, but don't complain
if a later version is incompatible with your current code and you'll have
to change it.
That all said, please do get in contact if you find the module overall
useful. The more feedback you provide in terms of what features you are
using, what you find works, and what doesn't, will help the ongoing
development and hopefully eventual stability of the design. See the
FEEDBACK section.
%prep
%autosetup -n %{cpan_name}-%{version}
%build
perl Build.PL installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%license LICENSE
%changelog