[packages/perl-Params-ValidationCompiler] - initial

arekm arekm at pld-linux.org
Sun Oct 30 22:43:11 CET 2016


commit 6ca96b6d39907bd283324f81c23a74ae92440c6d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Oct 30 22:42:56 2016 +0100

    - initial

 perl-Params-ValidationCompiler.spec | 67 +++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
---
diff --git a/perl-Params-ValidationCompiler.spec b/perl-Params-ValidationCompiler.spec
new file mode 100644
index 0000000..a958501
--- /dev/null
+++ b/perl-Params-ValidationCompiler.spec
@@ -0,0 +1,67 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Params
+%define		pnam	ValidationCompiler
+%include	/usr/lib/rpm/macros.perl
+Summary:	Params::ValidationCompiler - Build an optimized subroutine parameter validator once, use it forever
+Name:		perl-Params-ValidationCompiler
+Version:	0.13
+Release:	1
+License:	artistic_2
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Params/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	e654da776110d5e821c43b2f30f03d68
+URL:		http://search.cpan.org/dist/Params-ValidationCompiler/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Eval-Closure
+BuildRequires:	perl-Exception-Class
+BuildRequires:	perl(Test2::Bundle::Extended)
+BuildRequires:	perl(Test2::Plugin::NoWarnings)
+BuildRequires:	perl(Test2::Require::Module)
+BuildRequires:	perl(Test::Without::Module)
+BuildRequires:	perl-Specio >= 0.14
+BuildRequires:	perl-Test-Simple >= 1.302015
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is very alpha. The module name could change. Everything could
+change. You have been warned.
+
+Create a customized, optimized, non-lobotomized, uncompromised, and thoroughly
+specialized parameter checking subroutine.
+
+%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 eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes INSTALL
+#%{perl_vendorlib}/Params/*.pm
+#%{perl_vendorlib}/Params/ValidationCompiler
+#%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Params-ValidationCompiler.git/commitdiff/6ca96b6d39907bd283324f81c23a74ae92440c6d



More information about the pld-cvs-commit mailing list