packages: perl-Module-Implementation/perl-Module-Implementation.spec (NEW)=?UTF-8?Q?=20?=...

qboosh qboosh at pld-linux.org
Tue May 29 18:04:44 CEST 2012


Author: qboosh                       Date: Tue May 29 16:04:44 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/perl-Module-Implementation:
   perl-Module-Implementation.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-Module-Implementation/perl-Module-Implementation.spec
diff -u /dev/null packages/perl-Module-Implementation/perl-Module-Implementation.spec:1.1
--- /dev/null	Tue May 29 18:04:44 2012
+++ packages/perl-Module-Implementation/perl-Module-Implementation.spec	Tue May 29 18:04:39 2012
@@ -0,0 +1,86 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Module
+%define		pnam	Implementation
+%include	/usr/lib/rpm/macros.perl
+Summary:	Module::Implementation - loads one of several alternate underlying implementations for a module
+Summary(pl.UTF-8):	Module::Implementation - wczytywanie jednej z kilku alternatywnych implementacji modułu
+Name:		perl-Module-Implementation
+Version:	0.06
+Release:	1
+License:	Artistic v2
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	748f3540162fc52222d761fab3efb266
+URL:		http://search.cpan.org/dist/Module-Implementation/
+BuildRequires:	perl-ExtUtils-MakeMaker >= 6.30
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Module-Runtime >= 0.012
+BuildRequires:	perl-Try-Tiny
+BuildRequires:	perl-Test-Fatal
+BuildRequires:	perl-Test-Requires
+BuildRequires:	perl-Test-Simple >= 0.88
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module abstracts out the process of choosing one of several
+underlying implementations for a module. This can be used to provide
+XS and pure Perl implementations of a module, or it could be used to
+load an implementation for a given OS or any other case of needing to
+provide multiple implementations.
+
+This module is only useful when you know all the implementations ahead
+of time. If you want to load arbitrary implementations then you
+probably want something like a plugin system, not this module.
+
+%description -l pl.UTF-8
+Ten moduł abstrahuje proces wyboru jednego z kilku różnych
+implementacji modułu. Może być wykorzystany do zapewneinia
+implementacji XS oraz czysto perlowej jakiegoś modułu, albo wczytania
+implementacji dla danego systemu operacyjnego, albo w innym przypadku
+wymagającym wielu implementacji.
+
+Moduł jest przydatny tylko jeśli z góry znane są wszystkie
+implementacje. Jeśli mają być wczytywane dowolne implementacje,
+lepiej użyć systemu wtyczek.
+
+%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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Module/Implementation.pm
+%{_mandir}/man3/Module::Implementation.3pm*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/05/29 16:04:39  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list