Files
perl-Goose/perl-Goose.spec

74 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Goose
#
# 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 Goose
Name: perl-Goose
Version: 0.16.0
Release: 0
# 0.016 -> normalize -> 0.16.0
%define cpan_version 0.016
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Multi-Use utility for manipulating subroutines, classes and more
URL: https://metacpan.org/release/%{cpan_name}
Source0: Goose-0.016.tar.gz
2025-08-12 18:14:24 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(Try::Tiny)
Requires: perl(Try::Tiny)
Provides: perl(Goose) = %{version}
Provides: perl(Goose::Role)
Provides: perl(Goose::Utils) = 0.2.0
%undefine __perllib_provides
%{perl_requires}
%description
What this module attempts to do is make a developers life easier by
allowing them to manage and manipulate subroutines and modules. You can
override a subroutine, then restore it as it was originally, create after,
before and around hook modifiers, delete subroutines, or even tag every
subroutine in a class to let you know when each one is being run, which is
great for debugging. On top of all this Goose offers some minor OOP
framework utilities like 'extends', 'exports', 'accessor', 'has' and
'chainable'. Of course if you need more I would advise Moose or Mouse.
Newer versions of Goose include 'Goose::Utils' which offers some basic, yet
extremely handy functions for common situations, and access to Try::Tiny
just by a small import attribute, ':Try'.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
PERL_USE_UNSAFE_INC=1 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 ignore.txt README
%changelog