[packages/perl-Exporter-Tiny] - new

qboosh qboosh at pld-linux.org
Wed Feb 4 18:43:20 CET 2015


commit 9ba706f82f83395c584ad68a904750139cf981d6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Feb 4 18:45:35 2015 +0100

    - new

 perl-Exporter-Tiny.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)
---
diff --git a/perl-Exporter-Tiny.spec b/perl-Exporter-Tiny.spec
new file mode 100644
index 0000000..106c3bd
--- /dev/null
+++ b/perl-Exporter-Tiny.spec
@@ -0,0 +1,78 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Exporter
+%define		pnam	Tiny
+%include	/usr/lib/rpm/macros.perl
+Summary:	Exporter::Tiny - an exporter with the features of Sub::Exporter but only core dependencies
+Summary(pl.UTF-8):	Exporter::Tiny - eksporter o możliwościach Sub::Exportera, ale bez dużych zależności
+Name:		perl-Exporter-Tiny
+Version:	0.042
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Exporter/Exporter-Tiny-%{version}.tar.gz
+# Source0-md5:	77ba432037f35bc9b84b717639075fc6
+URL:		http://search.cpan.org/dist/Exporter-Tiny/
+BuildRequires:	perl-ExtUtils-MakeMaker >= 6.17
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 installler 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.
+
+%description -l pl.UTF-8
+Exporter::Tiny obsługuje wiele z zewnętrznych możliwości modułu
+Sub::Exporter, w tym zmianę nazw importowanych funkcji przy użyciu
+opcji -as, -prefix i -suffix; jawne cele przy użyciu opcji into;
+alternatywne instalatory przy użyciu opcji installer. Jest natomiast
+napisany w około 40%% liczby linii kodu i bez żadnych zależności
+spoza głównej dystrybucji Perla.
+
+Interfejs wewnętrzny jest zbliżony do interfejsu modułu Exporter.pm z
+konfiguracją poprzez zmienne pakietu @EXPORT, @EXPORT_OK oraz
+%%EXPORT_TAGS.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CONTRIBUTING COPYRIGHT CREDITS Changes
+%{perl_vendorlib}/Exporter/Shiny.pm
+%{perl_vendorlib}/Exporter/Tiny.pm
+%{_mandir}/man3/Exporter::Shiny.3pm*
+%{_mandir}/man3/Exporter::Tiny.3pm*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Exporter-Tiny.git/commitdiff/9ba706f82f83395c584ad68a904750139cf981d6



More information about the pld-cvs-commit mailing list