2013-07-27 13:45:53 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-UNIVERSAL-isa
|
|
|
|
#
|
2017-10-18 05:08:52 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-07-27 13:45:53 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-07-15 15:43:58 +00:00
|
|
|
|
|
|
|
Name: perl-UNIVERSAL-isa
|
2017-10-18 05:08:52 +00:00
|
|
|
Version: 1.20171012
|
2010-07-15 15:43:58 +00:00
|
|
|
Release: 0
|
2013-07-27 13:45:53 +00:00
|
|
|
%define cpan_name UNIVERSAL-isa
|
2015-04-15 05:06:24 +00:00
|
|
|
Summary: Attempt to recover from people calling UNIVERSAL::isa as a function
|
2013-07-27 13:45:53 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-07-15 15:43:58 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-07-27 13:45:53 +00:00
|
|
|
Url: http://search.cpan.org/dist/UNIVERSAL-isa/
|
2017-10-18 05:08:52 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
2015-06-16 04:58:39 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:20 +02:00
|
|
|
Source100: README.md
|
2013-07-27 13:45:53 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:55:13 +00:00
|
|
|
BuildRequires: perl-macros
|
2013-07-27 13:45:53 +00:00
|
|
|
%{perl_requires}
|
2010-07-15 15:43:58 +00:00
|
|
|
|
|
|
|
%description
|
2017-10-18 05:08:52 +00:00
|
|
|
Whenever you use UNIVERSAL/isa as a function, a kitten using
|
|
|
|
Test::MockObject dies. Normally, the kittens would be helpless, but if they
|
|
|
|
use UNIVERSAL::isa (the module whose docs you are reading), the kittens can
|
|
|
|
live long and prosper.
|
2013-07-27 13:45:53 +00:00
|
|
|
|
|
|
|
This module replaces 'UNIVERSAL::isa' with a version that makes sure that,
|
|
|
|
when called as a function on objects which override 'isa', 'isa' will call
|
|
|
|
the appropriate method on those objects
|
2010-07-15 15:43:58 +00:00
|
|
|
|
2013-07-27 13:45:53 +00:00
|
|
|
In all other cases, the real 'UNIVERSAL::isa' gets called directly.
|
2010-07-15 15:43:58 +00:00
|
|
|
|
2013-07-27 13:45:53 +00:00
|
|
|
*NOTE:* You should use this module only for debugging purposes. It does not
|
|
|
|
belong as a dependency in running code.
|
2010-07-15 15:43:58 +00:00
|
|
|
|
|
|
|
%prep
|
2013-07-27 13:45:53 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-07-15 15:43:58 +00:00
|
|
|
|
|
|
|
%build
|
2015-06-16 04:58:39 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-07-15 15:43:58 +00:00
|
|
|
|
|
|
|
%check
|
2015-06-16 04:58:39 +00:00
|
|
|
%{__make} test
|
2010-07-15 15:43:58 +00:00
|
|
|
|
2013-07-27 13:45:53 +00:00
|
|
|
%install
|
2015-06-16 04:58:39 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2013-07-27 13:45:53 +00:00
|
|
|
%perl_gen_filelist
|
2010-07-15 15:43:58 +00:00
|
|
|
|
2013-07-27 13:45:53 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2017-10-18 05:08:52 +00:00
|
|
|
%doc Changes CONTRIBUTING LICENCE README
|
2010-07-15 15:43:58 +00:00
|
|
|
|
|
|
|
%changelog
|