Bump to 0.48 sandbox/perl-Specio_0.48 accepted/tizen/unified/20240228.013747 accepted/tizen/unified/x/20240229.013905
authorTizenOpenSource <tizenopensrc@samsung.com>
Wed, 14 Feb 2024 05:23:13 +0000 (14:23 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Wed, 14 Feb 2024 05:23:13 +0000 (14:23 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/perl-Specio.manifest [new file with mode: 0644]
packaging/perl-Specio.spec [new file with mode: 0644]

diff --git a/packaging/perl-Specio.manifest b/packaging/perl-Specio.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-Specio.spec b/packaging/perl-Specio.spec
new file mode 100644 (file)
index 0000000..5f248dc
--- /dev/null
@@ -0,0 +1,61 @@
+Name:           perl-Specio
+Version:        0.48
+Release:        1
+License:        Artistic-2.0
+Summary:        Base class for type libraries
+Url:            https://metacpan.org/pod/Specio::Exporter
+Group:          Development/Libraries
+Source0:        %{name}-%{version}.tar.gz
+Source1001:    perl-Specio.manifest
+BuildRequires:  perl
+BuildRequires:  perl(MIME::Base64)
+BuildArch:      noarch
+
+%description
+Inheriting from this package makes your package a type exporter. 
+By default, types defined in a package are never visible outside 
+of the package. When you inherit from this package, all the types
+you define internally become available via exports.
+
+The exported types are available through the importing package's t subroutine.
+
+By default, types your package imports are not re-exported:
+
+ package MyApp::Type::Library;
+
+ use parent 'Specio::Exporter';
+
+ use Specio::Declare;
+ use Specio::Library::Builtins;
+
+In this case, the types provided by Specio::Library::Builtins are not 
+exported to packages which use MyApp::Type::Library.
+
+You can explicitly ask for types to be re-exported:
+
+  package MyApp::Type::Library;
+
+  use parent 'Specio::Exporter';
+
+  use Specio::Declare;
+  use Specio::Library::Builtins -reexport;
+
+In this case, packages which use MyApp::Type::Library will get 
+all the types from Specio::Library::Builtins as well as any 
+types defined in MyApp::Type::Library.
+
+%prep
+%setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+%perl_make_install
+%perl_process_packlist
+%perl_gen_filelist
+
+%files -f %{name}.files
+%license LICENSE