2011-12-14 18:31:47 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Goose
|
|
|
|
#
|
2024-08-10 20:54:00 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-12-14 18:31:47 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2024-08-10 20:54:00 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-12-14 18:31:47 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-08-10 20:54:00 +00:00
|
|
|
%define cpan_name Goose
|
2011-12-14 18:31:47 +00:00
|
|
|
Name: perl-Goose
|
2024-08-10 20:54:00 +00:00
|
|
|
Version: 0.16.0
|
2011-12-14 18:31:47 +00:00
|
|
|
Release: 0
|
2024-08-10 20:54:00 +00:00
|
|
|
# 0.016 -> normalize -> 0.16.0
|
|
|
|
%define cpan_version 0.016
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2011-12-14 18:31:47 +00:00
|
|
|
Summary: Multi-Use utility for manipulating subroutines, classes and more
|
2024-08-10 20:54:00 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: Goose-0.016.tar.gz
|
2025-08-12 18:14:24 +02:00
|
|
|
Source100: README.md
|
2024-08-10 20:54:00 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2011-12-14 18:31:47 +00:00
|
|
|
BuildRequires: perl-macros
|
2024-08-10 20:54:00 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
|
2011-12-14 18:31:47 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
|
|
|
Requires: perl(Try::Tiny)
|
2024-08-10 20:54:00 +00:00
|
|
|
Provides: perl(Goose) = %{version}
|
|
|
|
Provides: perl(Goose::Role)
|
|
|
|
Provides: perl(Goose::Utils) = 0.2.0
|
|
|
|
%undefine __perllib_provides
|
|
|
|
%{perl_requires}
|
2011-12-14 18:31:47 +00:00
|
|
|
|
|
|
|
%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
|
2024-08-10 20:54:00 +00:00
|
|
|
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'.
|
2011-12-14 18:31:47 +00:00
|
|
|
|
|
|
|
%prep
|
2024-08-10 20:54:00 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-12-14 18:31:47 +00:00
|
|
|
|
|
|
|
%build
|
2024-08-10 20:54:00 +00:00
|
|
|
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
2011-12-14 18:31:47 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2024-08-10 20:54:00 +00:00
|
|
|
%perl_gen_filelist
|
2011-12-14 18:31:47 +00:00
|
|
|
|
2024-08-10 20:54:00 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes ignore.txt README
|
2011-12-14 18:31:47 +00:00
|
|
|
|
|
|
|
%changelog
|