[perl-Exporter-Tiny] Initial import (perl-Exporter-Tiny-0.036-2)

Paul Howarth pghmcfc at fedoraproject.org
Thu Mar 20 12:13:30 UTC 2014


commit 51130138fe00cbd620a167c87620bb16b459587d
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Mar 20 12:12:27 2014 +0000

    Initial import (perl-Exporter-Tiny-0.036-2)
    
    Exporter::Tiny supports many of Sub::Exporter's external-facing features
    including renaming imported functions with the -as, -prefix and -suffix
    options; explicit destinations with the into option; and alternative
    installers with the installer option. But it's written in only about 40%
    as many lines of code and with zero non-core dependencies.
    
    Its internal-facing interface is closer to Exporter.pm, with configuration
    done through the @EXPORT, @EXPORT_OK and %EXPORT_TAGS package variables.
    
    Exporter::Tiny performs most of its internal duties (including resolution of
    tag names to sub names, resolution of sub names to coderefs, and installation
    of coderefs into the target package) as method calls, which means they can be
    overridden to provide interesting behavior.

 .gitignore              |    1 +
 perl-Exporter-Tiny.spec |   75 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..81c8dcc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Exporter-Tiny-[0-9.]*.tar.gz
diff --git a/perl-Exporter-Tiny.spec b/perl-Exporter-Tiny.spec
new file mode 100644
index 0000000..28717b0
--- /dev/null
+++ b/perl-Exporter-Tiny.spec
@@ -0,0 +1,75 @@
+Name:		perl-Exporter-Tiny
+Version:	0.036
+Release:	2%{?dist}
+Summary:	An exporter with the features of Sub::Exporter but only core dependencies
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+URL:		http://search.cpan.org/dist/Exporter-Tiny/
+Source0:	http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Exporter-Tiny-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:	noarch
+# Module Build
+BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.17
+# Module Runtime
+BuildRequires:	perl(B)
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(strict)
+BuildRequires:	perl(warnings)
+# Test Suite
+BuildRequires:	perl(lib)
+BuildRequires:	perl(Test::More) >= 0.47
+# Runtime
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:	perl(B)
+Requires:	perl(Carp)
+
+# Avoid doc-file dependency on perl(base)
+%{?perl_default_filter}
+
+%description
+Exporter::Tiny supports many of Sub::Exporter's external-facing features
+including renaming imported functions with the -as, -prefix and -suffix
+options; explicit destinations with the into option; and alternative
+installers with the installer option. But it's written in only about 40%%
+as many lines of code and with zero non-core dependencies.
+
+Its internal-facing interface is closer to Exporter.pm, with configuration
+done through the @EXPORT, @EXPORT_OK and %%EXPORT_TAGS package variables.
+
+Exporter::Tiny performs most of its internal duties (including resolution of
+tag names to sub names, resolution of sub names to coderefs, and installation
+of coderefs into the target package) as method calls, which means they can be
+overridden to provide interesting behavior.
+
+%prep
+%setup -q -n Exporter-Tiny-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} %{buildroot}
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%doc Changes CONTRIBUTING COPYRIGHT CREDITS LICENSE README
+%doc examples/
+%{perl_vendorlib}/Exporter/
+%{_mandir}/man3/Exporter::Tiny.3pm*
+%{_mandir}/man3/Exporter::Shiny.3pm*
+
+%changelog
+* Mon Mar 17 2014 Paul Howarth <paul at city-fan.org> - 0.036-2
+- Sanitize for Fedora submission
+
+* Thu Mar 13 2014 Paul Howarth <paul at city-fan.org> - 0.036-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..44d2a84 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9115160cfd92a2676c377cd530f20f4a  Exporter-Tiny-0.036.tar.gz



More information about the perl-devel mailing list