8
0
Files
perl-Object-Pad/perl-Object-Pad.spec

79 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# 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.60
Release: 0
Summary: Simple syntax for lexical field-based objects
License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
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