8
0

Accepting request 913802 from devel:languages:perl:autoupdate

- updated to 0.15
   see /usr/share/doc/packages/perl-Data-Validate-Domain/Changes
  0.15     2021-08-21
      - Reject domains with 254 or more characters. Domains are limited to 255
        octets, but in practice this means they're actually limited to 253
        characters. See
        https://devblogs.microsoft.com/oldnewthing/20120412-00/?p=7873 for a
        more detailed explanation of this. Implemented by Felipe Gaspar. Fixes
        GitHub #5. PR #13.

OBS-URL: https://build.opensuse.org/request/show/913802
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Validate-Domain?expand=0&rev=6
This commit is contained in:
2021-08-23 14:09:12 +00:00
committed by Git OBS Bridge
parent f7b7d9cb35
commit 4bd0efd5c3
4 changed files with 32 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Data-Validate-Domain
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,22 +12,20 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Data-Validate-Domain
Version: 0.14
Release: 0
%define cpan_name Data-Validate-Domain
Name: perl-Data-Validate-Domain
Version: 0.15
Release: 0
Summary: Domain and host name validation
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Data-Validate-Domain/
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Net::Domain::TLD) >= 1.74
@@ -40,14 +38,15 @@ Requires: perl(Net::Domain::TLD) >= 1.74
This module offers a few subroutines for validating domain and host names.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -55,7 +54,7 @@ This module offers a few subroutines for validating domain and host names.
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CONTRIBUTING.md LICENSE README.md
%doc azure-pipelines.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md precious.toml README.md
%license LICENSE
%changelog