%{?scl:%scl_package perl-Exporter-Tiny} %global no_test_warnings 0 Name: %{?scl_prefix}perl-Exporter-Tiny Version: 0.042 Release: 3%{?dist} Summary: An exporter with the features of Sub::Exporter but only core dependencies License: (GPL+ or Artistic) and Public Domain and (GPL+ or Artistic or CC-BY-SA) 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: %{?scl_prefix}perl BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) >= 6.17 # Module Runtime BuildRequires: %{?scl_prefix}perl(Carp) BuildRequires: %{?scl_prefix}perl(strict) BuildRequires: %{?scl_prefix}perl(warnings) # Test Suite BuildRequires: %{?scl_prefix}perl(lib) BuildRequires: %{?scl_prefix}perl(Test::More) >= 0.47 # Optional Tests BuildRequires: %{?scl_prefix}perl(Test::Fatal) %if ! %{no_test_warnings} BuildRequires: %{?scl_prefix}perl(Test::Warnings) %endif # Runtime Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'})) Requires: %{?scl_prefix}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 %{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'} %install rm -rf %{buildroot} %{?scl:scl enable %{scl} '}make pure_install DESTDIR=%{buildroot}%{?scl:'} find %{buildroot} -type f -name .packlist -exec rm -f {} \; %{_fixperms} %{buildroot} %check %{?scl:scl enable %{scl} '}make test%{?scl:'} %clean rm -rf %{buildroot} %files %if 0%{?_licensedir:1} %doc COPYRIGHT LICENSE %else %doc COPYRIGHT LICENSE %endif %doc Changes CONTRIBUTING CREDITS README %doc examples/ %{perl_vendorlib}/Exporter/ %{_mandir}/man3/Exporter::Tiny.3pm* %{_mandir}/man3/Exporter::Shiny.3pm* %changelog * Wed Mar 11 2015 Petr Ĺ abata - 0.042-3 - Correct the license tag (#1199489) * Tue Jan 27 2015 Petr Pisar - 0.042-2 - Do not use rhel macro to control dependencies * Thu Oct 9 2014 Paul Howarth - 0.042-1 - Update to 0.042 - Add an 'unimport' feature - Option validation needs to happen after expanding tags - Housekeeping on %%TRACKED * Wed Sep 17 2014 Paul Howarth - 0.040-1 - Update to 0.040 - Document warning and error messages produced by Exporter::Tiny - Exporter::Tiny would previously cause B.pm to be loaded into memory any time it exported anything: it no longer does - No longer die when redefining locally defined subs - Warn when redefining any subs - Use %%doc where possible * Wed Aug 27 2014 Jitka Plesnikova - 0.038-3 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.038-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Apr 4 2014 Paul Howarth - 0.038-1 - Update to 0.038 - Added: Support Exporter.pm's import negation syntax qw( !foo ) - Added: Support Exporter.pm's regexp import syntax qw( /foo/ ) - Fix minor error in documentation of generators - Improved handling of hashrefs of options passed to tags, and hashrefs of options found within %%EXPORT_TAGS arrayrefs - Only attempt to merge hashes if we're sure they're both really hashes! * Mon Mar 17 2014 Paul Howarth - 0.036-2 - Sanitize for Fedora submission * Thu Mar 13 2014 Paul Howarth - 0.036-1 - Initial RPM version