Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:Perl
perl-Exporter-Tiny
perl-Exporter-Tiny.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Exporter-Tiny.spec of Package perl-Exporter-Tiny
%define real_name Exporter-Tiny %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) %define perl_archlib %(eval "`perl -V:archlib`"; echo $archlib) %define perl_privlib %(eval "`perl -V:privlib`"; echo $privlib) %define maketest 0 Name: perl-%{real_name} Summary: An exporter with the features of Sub::Exporter but only core dependencies Version: 0.042 Release: 1 License: GPL+ 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 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) %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 %if %maketest make test %endif %clean rm -rf %{buildroot} %files %defattr(-, root, root) %doc COPYRIGHT LICENSE %doc CONTRIBUTING %doc CREDITS %doc Changes README %doc examples/ %{perl_vendorlib}/Exporter/ %{_mandir}/man3/Exporter::Tiny.3* %{_mandir}/man3/Exporter::Shiny.3* %changelog * Mon Dec 21 2015 Holger Manthey <holger.manthey@bertelsmann.de> - Initial build
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor