Accepting request 738684 from home:tinita:branches:devel:languages:perl

- Regenerate spec with newest cpanspec
   * Add PERL_USE_UNSAFE_INC
   * Add manual dependency perl(CGI)

OBS-URL: https://build.opensuse.org/request/show/738684
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-FormValidator-Simple?expand=0&rev=3
This commit is contained in:
Lars Vogdt
2019-10-16 06:14:18 +00:00
committed by Git OBS Bridge
parent d2b0387d7e
commit 94f1d08aca
3 changed files with 50 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-FormValidator-Simple
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -12,7 +12,7 @@
# 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/
#
@@ -20,11 +20,12 @@ Name: perl-FormValidator-Simple
Version: 0.29
Release: 0
%define cpan_name FormValidator-Simple
Summary: validation with simple chains of constraints
License: Artistic-1.0 or GPL-1.0+
Summary: Validation with simple chains of constraints
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/FormValidator-Simple/
Source: http://www.cpan.org/authors/id/L/LY/LYOKATO/%{cpan_name}-%{version}.tar.gz
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/L/LY/LYOKATO/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -56,6 +57,9 @@ Requires: perl(Tie::IxHash) >= 1.21
Requires: perl(UNIVERSAL::require) >= 0.1
Requires: perl(YAML) >= 0.39
%{perl_requires}
# MANUAL BEGIN
BuildRequires: perl(CGI)
# MANUAL END
%description
This module provides you a sweet way of form data validation with simple
@@ -67,18 +71,18 @@ code is borrowed from this plugin.
(Sledge is a MVC web application framework: http://sl.edge.jp [Japanese] )
The result object this module returns behaves like the
Data::FormValidator::Results manpage.
The result object this module returns behaves like
Data::FormValidator::Results.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
%{__make} test
make test
%install
%perl_make_install