Files
perl-Moose-Policy/perl-Moose-Policy.spec
2025-08-12 18:15:40 +02:00

80 lines
2.7 KiB
RPMSpec

#
# spec file for package perl-Moose-Policy
#
# 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 Moose-Policy
Name: perl-Moose-Policy
Version: 0.50.0
Release: 0
# 0.05 -> normalize -> 0.50.0
%define cpan_version 0.05
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Moose-mounted police
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.36
BuildRequires: perl(Moose) >= 0.84
BuildRequires: perl(Test::Exception) >= 0.21
Requires: perl(Moose) >= 0.84
Provides: perl(Moose::Policy) = %{version}
Provides: perl(Moose::Policy::FollowPBP)
Provides: perl(Moose::Policy::FollowPBP::Attribute)
Provides: perl(Moose::Policy::JavaAccessors)
Provides: perl(Moose::Policy::JavaAccessors::Attribute)
Provides: perl(Moose::Policy::SingleInheritence)
Provides: perl(Moose::Policy::SingleInheritence::MetaClass)
%undefine __perllib_provides
%{perl_requires}
%description
This module allows you to specify your project-wide or even company-wide
Moose meta-policy.
Most all of Moose's features can be customized through the use of custom
metaclasses, however fiddling with the metaclasses can be hairy.
Moose::Policy removes most of that hairiness and makes it possible to
cleanly contain a set of meta-level customizations in one easy to use
module.
This is still an release of this module and it should not be considered to
be complete by any means. It is very basic implemenation at this point and
will likely get more feature-full over time, as people request features. So
if you have a suggestion/need/idea, please speak up.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./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
%changelog