8
0

Accepting request 305880 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/305880
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Validate-Domain?expand=0&rev=2
This commit is contained in:
Stephan Kulow
2015-05-08 09:04:19 +00:00
committed by Git OBS Bridge
parent 65c10d495b
commit 08d8e08188
5 changed files with 75 additions and 42 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be17fbc945c8ab3faac8870bed99704c023919863e583c56b43e9df05ef7a39a
size 7988

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f2ae0830f423a46080b185ffc2428c9a37278167a8d19bfdeec26d977b43822c
size 26678

23
cpanspec.yml Normal file
View File

@@ -0,0 +1,23 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 8 08:14:29 UTC 2015 - coolo@suse.com
- updated to 0.11
see /usr/share/doc/packages/perl-Data-Validate-Domain/Changes
-------------------------------------------------------------------
Wed May 04 20:01:32 CET 2011 - pascal.bleser@opensuse.org

View File

@@ -1,56 +1,60 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Data-Validate-Domain
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Data-Validate-Domain
Version: 0.10
Version: 0.11
Release: 0
Summary: Domain validation methods
Source: http://search.cpan.org/CPAN/authors/id/N/NE/NEELY/Data-Validate-Domain-%{version}.tar.gz
URL: http://search.cpan.org/dist/Data-Validate-Domain
%define cpan_name Data-Validate-Domain
Summary: Domain and host name validation
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(Net::Domain::TLD) >= 1.62
Requires: perl(Net::Domain::TLD) >= 1.62
%if 0%{?suse_version} >= 1120
Url: http://search.cpan.org/dist/Data-Validate-Domain/
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Net::Domain::TLD)
BuildRequires: perl(Test::More) >= 0.96
Requires: perl(Net::Domain::TLD)
%{perl_requires}
%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.
This module offers a few subroutines for validating domain and host names.
%prep
%setup -q -n "Data-Validate-Domain-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%setup -q -n %{cpan_name}-%{version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Data
%dir %{perl_vendorlib}/Data/Validate
%{perl_vendorlib}/Data/Validate/Domain.pm
%doc %{perl_man3dir}/Data::Validate::Domain.%{perl_man3ext}%{ext_man}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README.md
%changelog