automatic update OBS-URL: https://build.opensuse.org/request/show/296535 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-FormValidator-Simple?expand=0&rev=2
93 lines
3.2 KiB
RPMSpec
93 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package perl-FormValidator-Simple
|
|
#
|
|
# 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-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+
|
|
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
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::Accessor) >= 0.22
|
|
BuildRequires: perl(Class::Data::Accessor) >= 0.03
|
|
BuildRequires: perl(Class::Data::Inheritable) >= 0.04
|
|
BuildRequires: perl(Class::Inspector) >= 1.13
|
|
BuildRequires: perl(Date::Calc) >= 5.4
|
|
BuildRequires: perl(DateTime::Format::Strptime) >= 1.07
|
|
BuildRequires: perl(Email::Valid) >= 0.15
|
|
BuildRequires: perl(Email::Valid::Loose) >= 0.04
|
|
BuildRequires: perl(List::MoreUtils) >= 0.16
|
|
BuildRequires: perl(Mail::Address)
|
|
BuildRequires: perl(Tie::IxHash) >= 1.21
|
|
BuildRequires: perl(UNIVERSAL::require) >= 0.1
|
|
BuildRequires: perl(YAML) >= 0.39
|
|
Requires: perl(Class::Accessor) >= 0.22
|
|
Requires: perl(Class::Data::Accessor) >= 0.03
|
|
Requires: perl(Class::Data::Inheritable) >= 0.04
|
|
Requires: perl(Class::Inspector) >= 1.13
|
|
Requires: perl(Date::Calc) >= 5.4
|
|
Requires: perl(DateTime::Format::Strptime) >= 1.07
|
|
Requires: perl(Email::Valid) >= 0.15
|
|
Requires: perl(Email::Valid::Loose) >= 0.04
|
|
Requires: perl(List::MoreUtils) >= 0.16
|
|
Requires: perl(Mail::Address)
|
|
Requires: perl(Tie::IxHash) >= 1.21
|
|
Requires: perl(UNIVERSAL::require) >= 0.1
|
|
Requires: perl(YAML) >= 0.39
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module provides you a sweet way of form data validation with simple
|
|
constraints chains. You can write constraints on single line for each input
|
|
data.
|
|
|
|
This idea is based on Sledge::Plugin::Validator, and most of validation
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc Changes README
|
|
|
|
%changelog
|