[packages/perl-Data-Validate-Domain] new, version 0.10

glen glen at pld-linux.org
Sat Dec 6 19:55:24 CET 2014


commit 1766cc9ab4bdccd5e48d62e6a5cd7731e5ca9080
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Dec 6 20:55:03 2014 +0200

    new, version 0.10

 perl-Data-Validate-Domain.spec | 62 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
---
diff --git a/perl-Data-Validate-Domain.spec b/perl-Data-Validate-Domain.spec
new file mode 100644
index 0000000..2cd634e
--- /dev/null
+++ b/perl-Data-Validate-Domain.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define		pdir	Data
+%define		pnam	Validate-Domain
+%include	/usr/lib/rpm/macros.perl
+Summary:	Domain validation methods Perl module
+Name:		perl-Data-Validate-Domain
+Version:	0.10
+Release:	1
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+Source0:	http://search.cpan.org/CPAN/authors/id/N/NE/NEELY/Data-Validate-Domain-%{version}.tar.gz
+# Source0-md5:	1331c0f47c024a83c610f8598490423a
+URL:		http://search.cpan.org/dist/Data-Validate-Domain
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+BuildRequires:	perl(Exporter)
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Net::Domain::TLD) >= 1.62
+BuildRequires:	perl(Test::More)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module collects domain validation routines to make input
+validation, and untainting easier and more readable.
+
+All functions return an untainted value if the test passes, and undef
+if it fails. This means that you should always check for a defined
+status explicitly. Don't assume the return will be true. (e.g.
+is_username('0'))
+
+The value to test is always the first (and often only) argument.
+
+%prep
+%setup -q -n Data-Validate-Domain-%{version}
+
+find lib -name "*.pm" -exec chmod -c a-x {} +
+
+%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}/Data/Validate/Domain.pm
+%{_mandir}/man3/Data::Validate::Domain.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Data-Validate-Domain.git/commitdiff/1766cc9ab4bdccd5e48d62e6a5cd7731e5ca9080



More information about the pld-cvs-commit mailing list