[packages/perl-Importer] - initial

arekm arekm at pld-linux.org
Sun Oct 30 23:04:06 CET 2016


commit bf162ad07433a396af6350e46600b9f5c871f02b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Oct 30 23:03:53 2016 +0100

    - initial

 perl-Importer.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
---
diff --git a/perl-Importer.spec b/perl-Importer.spec
new file mode 100644
index 0000000..65f4cfc
--- /dev/null
+++ b/perl-Importer.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Importer
+%include	/usr/lib/rpm/macros.perl
+Summary:	Importer - Alternative but compatible interface to modules that export symbols
+Name:		perl-Importer
+Version:	0.024
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/E/EX/EXODIST/Importer-%{version}.tar.gz
+# Source0-md5:	2d29c79e65e221105a23e28c239b688f
+URL:		http://search.cpan.org/dist/Importer/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module acts as a layer between Exporter and modules which consume
+exports. It is feature-compatible with Exporter, plus some much needed
+extras. You can use this to import symbols from any exporter that
+follows Exporters specification. The exporter modules themselves do
+not need to use or inherit from the Exporter module, they just need to
+set @EXPORT and/or other variables.
+
+%prep
+%setup -q -n %{pdir}-%{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}/Importer.pm
+%{_mandir}/man3/Importer.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Importer.git/commitdiff/bf162ad07433a396af6350e46600b9f5c871f02b



More information about the pld-cvs-commit mailing list