8
0
Files
perl-Variable-Magic/perl-Variable-Magic.spec

70 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Variable-Magic
#
# 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 Variable-Magic
Name: perl-Variable-Magic
Version: 0.640.0
Release: 0
# 0.64 -> normalize -> 0.640.0
%define cpan_version 0.64
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Associate user-defined magic to variables from Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/V/VP/VPIT/%{cpan_name}-%{cpan_version}.tar.gz
Accepting request 297015 from devel:languages:perl:autoupdate - updated to 0.56 see /usr/share/doc/packages/perl-Variable-Magic/Changes 0.56 2015-03-11 15:15 UTC + Fix : [RT #101410] : Install fails in blead Even though the change that caused this error was reverted from blead, lvalue uses of ERRSV have been removed from this module so that there will be no breakage when this change is possibly reintroduced in the following months. Thanks Dave Rolsky for reporting. + Tst : $ENV{$Config{ldlibpthname}} is now preserved on all platforms, which will address failures of t/17-ctl.t with unusual compilers (like icc) that link all their compiled objects to their own libraries. + Tst : The global destruction test is now only run on perl 5.13.4 and higher, and only if either Perl::Destruct::Level is installed or PERL_DESTRUCT_LEVEL is set and the perl is a debugging perl. This will solve rare crashes of t/15-self.t on perl 5.13.3 and older. 0.55 2014-10-20 23:45 UTC + Fix : [RT #99319] : t/18-opinfo.t: test failure due to change in perl 5 blead The new METHOP op class added in perl 5.21.5 is now supported. Thanks James E Keenan for reporting. 0.54 2014-09-22 17:30 UTC + Add : The new constant VMG_COMPAT_CODE_COPY_CLONE evaluates to true if your perl calls 'copy' magic when a magical code prototype is cloned, which is currently the case for perl 5.17.0 and above. OBS-URL: https://build.opensuse.org/request/show/297015 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Variable-Magic?expand=0&rev=14
2015-04-15 20:31:21 +00:00
Source1: cpanspec.yml
2025-08-12 18:18:24 +02:00
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(Variable::Magic) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Magic is Perl's way of enhancing variables. This mechanism lets the user
add extra data to any variable and hook syntactical operations (such as
access, assignment or destruction) that can be applied to it. With this
module, you can add your own magic to any variable without having to write
a single line of XS.
You'll realize that these magic variables look a lot like tied variables.
- updated to 0.52 + Add : The new constant VMG_COMPAT_SCALAR_NOLEN evaluates to true when your perl does not call 'len' magic for scalars, which is the case for perl 5.17.4 and above. This fixes RT #80388. + Tst : t/35-stash.t has been taught about perl 5.17.4. + Tst : Author tests overhaul. + Fix : It is now safe to call dispell() from inside 'free', 'copy' and 'uvar' callbacks to dispell the magic currently in use. Thanks Clinton Gormley for reporting. + Fix : Exceptions thrown from inside a 'free' callback are now always consistently propagated outside of the callback. They used to be lost when the 'free' callback was invoked at the end of an eval block or string. + Fix : The 'reset RMG flag' workaroundn used to allow wizards with both 'uvar' and 'clear' magics to be cast onto a hash, has been made thread-safe. + Fix : Less memory is leaked when a wizard is freed during global destruction, or when an exception is thrown from a 'free' callback. + Fix : [RT #77991] : t/17-ctl.t fails on perl 5.14 and 5.16. This was actually an issue with ActivePerl, and this test has learned to cope with it. Thanks Gisle Aas for reporting. + Tst : t/35-stash.t has been taught about perl 5.17.1. + Doc : Many clarifications. This is a maintenance release. The code contains no functional change. Satisfied users of version 0.48 can skip this update. + Fix : [RT #77644] : t/17_ctl.t fails in test 44 since 5.17.0. This test has been taught about perl 5.17.0. OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Variable-Magic?expand=0&rev=10
2013-06-10 11:01:22 +00:00
It is not surprising, as tied variables are implemented as a special kind
of magic, just like any 'irregular' Perl variable : scalars like '$!', '$('
or '$^W', the '%ENV' and '%SIG' hashes, the '@ISA' array, 'vec()' and
'substr()' lvalues, threads::shared variables... They all share the same
underlying C API, and this module gives you direct access to it.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CONTRIBUTING README samples
%changelog