From f3e8d6b49d82a6f33d7e3253bcc71c9616ba5559 Mon Sep 17 00:00:00 2001 From: TizenOpenSource Date: Wed, 14 Feb 2024 16:22:52 +0900 Subject: [PATCH] Bump to 0.63 Signed-off-by: TizenOpenSource --- packaging/perl-Variable-Magic.manifest | 5 +++ packaging/perl-Variable-Magic.spec | 53 ++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 packaging/perl-Variable-Magic.manifest create mode 100644 packaging/perl-Variable-Magic.spec diff --git a/packaging/perl-Variable-Magic.manifest b/packaging/perl-Variable-Magic.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/perl-Variable-Magic.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/perl-Variable-Magic.spec b/packaging/perl-Variable-Magic.spec new file mode 100644 index 0000000..0548070 --- /dev/null +++ b/packaging/perl-Variable-Magic.spec @@ -0,0 +1,53 @@ +Name: perl-Variable-Magic +Version: 0.63 +Release: 1 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Associate user-defined magic to variables from Perl. +Url: https://metacpan.org/pod/Variable::Magic +Group: Development/Libraries +Source0: %{name}-%{version}.tar.gz +Source1001: perl-Variable-Magic.manifest +BuildRequires: perl +BuildRequires: perl(MIME::Base64) +BuildArch: noarch + +%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. +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 +%setup -q -n %{name}-%{version} +cp %{SOURCE1001} . + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +%perl_make_install +##perl_process_packlist +{ +#!/bin/bash +if test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT%perl_vendorarch/auto; then + find $RPM_BUILD_ROOT%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r rm + if [ %{_target_cpu} == noarch ]; then + find $RPM_BUILD_ROOT%perl_vendorarch/auto -depth -type d -print0 | xargs -0 -r rm -rf + fi +fi +rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod +} + +%perl_gen_filelist + +%files -f %{name}.files +%license README -- 2.34.1