114 lines
4.4 KiB
RPMSpec
114 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package perl-MooseX-AttributeShortcuts
|
|
#
|
|
# 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 MooseX-AttributeShortcuts
|
|
Name: perl-MooseX-AttributeShortcuts
|
|
Version: 0.37.0
|
|
Release: 0
|
|
# 0.037 -> normalize -> 0.37.0
|
|
%define cpan_version 0.037
|
|
License: LGPL-2.1-or-later
|
|
Summary: Shorthand for common attribute options
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSRCHBOY/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(List::Util) >= 1.33
|
|
BuildRequires: perl(Moose) >= 1.14
|
|
BuildRequires: perl(Moose::Exporter)
|
|
BuildRequires: perl(Moose::Meta::TypeConstraint)
|
|
BuildRequires: perl(Moose::Role)
|
|
BuildRequires: perl(Moose::Util)
|
|
BuildRequires: perl(Moose::Util::MetaRole)
|
|
BuildRequires: perl(Moose::Util::TypeConstraints)
|
|
BuildRequires: perl(MooseX::Meta::TypeConstraint::Mooish)
|
|
BuildRequires: perl(MooseX::Role::Parameterized)
|
|
BuildRequires: perl(MooseX::Types::Common::String)
|
|
BuildRequires: perl(MooseX::Types::Moose)
|
|
BuildRequires: perl(MooseX::Types::Path::Class)
|
|
BuildRequires: perl(MooseX::Util)
|
|
BuildRequires: perl(Path::Class)
|
|
BuildRequires: perl(Test::CheckDeps) >= 0.010
|
|
BuildRequires: perl(Test::Fatal)
|
|
BuildRequires: perl(Test::Moose)
|
|
BuildRequires: perl(Test::Moose::More) >= 0.49.0
|
|
BuildRequires: perl(Test::More) >= 0.94
|
|
BuildRequires: perl(Test::Requires)
|
|
BuildRequires: perl(aliased)
|
|
BuildRequires: perl(namespace::autoclean) >= 0.24
|
|
Requires: perl(List::Util) >= 1.33
|
|
Requires: perl(Moose) >= 1.14
|
|
Requires: perl(Moose::Exporter)
|
|
Requires: perl(Moose::Meta::TypeConstraint)
|
|
Requires: perl(Moose::Role)
|
|
Requires: perl(Moose::Util::MetaRole)
|
|
Requires: perl(Moose::Util::TypeConstraints)
|
|
Requires: perl(MooseX::Meta::TypeConstraint::Mooish)
|
|
Requires: perl(MooseX::Role::Parameterized)
|
|
Requires: perl(MooseX::Types::Common::String)
|
|
Requires: perl(MooseX::Types::Moose)
|
|
Requires: perl(MooseX::Util)
|
|
Requires: perl(aliased)
|
|
Requires: perl(namespace::autoclean) >= 0.24
|
|
Provides: perl(MooseX::AttributeShortcuts) = %{version}
|
|
Provides: perl(MooseX::AttributeShortcuts::Trait::Attribute) = %{version}
|
|
Provides: perl(MooseX::AttributeShortcuts::Trait::Attribute::HasAnonBuilder) = %{version}
|
|
Provides: perl(MooseX::AttributeShortcuts::Trait::Method::Builder) = %{version}
|
|
Provides: perl(MooseX::AttributeShortcuts::Trait::Method::HasDefinitionContext) = %{version}
|
|
Provides: perl(MooseX::AttributeShortcuts::Trait::Role::Attribute) = %{version}
|
|
Provides: perl(MooseX::AttributeShortcuts::Trait::Role::Method::Builder) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Ever find yourself repeatedly specifying writers and builders, because
|
|
there's no good shortcut to specifying them? Sometimes you want an
|
|
attribute to have a read-only public interface, but a private writer. And
|
|
wouldn't it be easier to just say 'builder => 1' and have the attribute
|
|
construct the canonical '_build_$name' builder name for you?
|
|
|
|
This package causes an attribute trait to be applied to all attributes
|
|
defined to the using class. This trait extends the attribute option
|
|
processing to handle the above variations. All attribute options as
|
|
described in Moose or Class::MOP::Attribute remain usable, just as when
|
|
this trait is not applied.
|
|
|
|
%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 README
|
|
%license LICENSE
|
|
|
|
%changelog
|