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

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
preamble: |-
BuildRequires: perl(CGI)
#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_build: |-
# rm unused.files
#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,10 @@
-------------------------------------------------------------------
Tue Oct 15 19:39:22 UTC 2019 - Tina Mueller <tina.mueller@suse.com>
- Regenerate spec with newest cpanspec
* Add PERL_USE_UNSAFE_INC
* Add manual dependency perl(CGI)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 14 20:52:08 UTC 2015 - coolo@suse.com Tue Apr 14 20:52:08 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-FormValidator-Simple # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 Version: 0.29
Release: 0 Release: 0
%define cpan_name FormValidator-Simple %define cpan_name FormValidator-Simple
Summary: validation with simple chains of constraints Summary: Validation with simple chains of constraints
License: Artistic-1.0 or GPL-1.0+ License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/FormValidator-Simple/ Url: https://metacpan.org/release/%{cpan_name}
Source: http://www.cpan.org/authors/id/L/LY/LYOKATO/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/L/LY/LYOKATO/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
@@ -56,6 +57,9 @@ Requires: perl(Tie::IxHash) >= 1.21
Requires: perl(UNIVERSAL::require) >= 0.1 Requires: perl(UNIVERSAL::require) >= 0.1
Requires: perl(YAML) >= 0.39 Requires: perl(YAML) >= 0.39
%{perl_requires} %{perl_requires}
# MANUAL BEGIN
BuildRequires: perl(CGI)
# MANUAL END
%description %description
This module provides you a sweet way of form data validation with simple 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] ) (Sledge is a MVC web application framework: http://sl.edge.jp [Japanese] )
The result object this module returns behaves like the The result object this module returns behaves like
Data::FormValidator::Results manpage. Data::FormValidator::Results.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} make %{?_smp_mflags}
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install