Bump to 0.64 sandbox/perl-Variable-Magic_0.64 accepted/tizen/unified/20241224.130119 accepted/tizen/unified/x/20241224.221620
authorTizenOpenSource <tizenopensrc@samsung.com>
Mon, 23 Dec 2024 08:21:28 +0000 (17:21 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Mon, 23 Dec 2024 08:21:28 +0000 (17:21 +0900)
Change-Id: I8947223fe0ea884a3bc456a248115f45ce385eac
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/perl-Variable-Magic.manifest [new file with mode: 0644]
packaging/perl-Variable-Magic.spec [new file with mode: 0644]

diff --git a/packaging/perl-Variable-Magic.manifest b/packaging/perl-Variable-Magic.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/perl-Variable-Magic.spec b/packaging/perl-Variable-Magic.spec
new file mode 100644 (file)
index 0000000..b9e9f7c
--- /dev/null
@@ -0,0 +1,53 @@
+Name:           perl-Variable-Magic
+Version:        0.64
+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