commit 0d088c7d4a208459947d0d5f5c90b1100a8f68a5c80bde559091812476afd265 Author: Stephan Kulow Date: Wed Jan 19 13:39:47 2011 +0000 - initial package 0.32005 * created by cpanspec 1.78.03 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-FormHandler?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/HTML-FormHandler-0.32005.tar.bz2 b/HTML-FormHandler-0.32005.tar.bz2 new file mode 100644 index 0000000..c1ac0a5 --- /dev/null +++ b/HTML-FormHandler-0.32005.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:232f50ba75347d399368d813574e8be8a1f3e5ca8dd0ad3742bc0f8d18941d0c +size 123617 diff --git a/perl-HTML-FormHandler.changes b/perl-HTML-FormHandler.changes new file mode 100644 index 0000000..ab1aa62 --- /dev/null +++ b/perl-HTML-FormHandler.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Jan 19 13:38:50 UTC 2011 - coolo@novell.com + +- initial package 0.32005 + * created by cpanspec 1.78.03 + diff --git a/perl-HTML-FormHandler.spec b/perl-HTML-FormHandler.spec new file mode 100644 index 0000000..99ab463 --- /dev/null +++ b/perl-HTML-FormHandler.spec @@ -0,0 +1,135 @@ +# +# spec file for package perl-HTML-FormHandler (Version 0.32005) +# +# Copyright (c) 2010 SUSE LINUX Products 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-HTML-FormHandler +Version: 0.32005 +Release: 1 +License: GPL+ or Artistic +%define cpan_name HTML-FormHandler +Summary: HTML forms using Moose +Url: http://search.cpan.org/dist/HTML-FormHandler/ +Group: Development/Libraries/Perl +#Source: http://www.cpan.org/authors/id/G/GS/GSHANK/HTML-FormHandler-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildRequires: perl(aliased) +BuildRequires: perl(Carp) +BuildRequires: perl(DateTime) +BuildRequires: perl(DateTime::Format::Strptime) +BuildRequires: perl(Email::Valid) +BuildRequires: perl(File::ShareDir) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Moose) >= 0.90 +BuildRequires: perl(MooseX::Getopt) >= 0.16 +BuildRequires: perl(MooseX::Types) >= 0.20 +BuildRequires: perl(MooseX::Types::Common) +BuildRequires: perl(namespace::autoclean) >= 0.09 +BuildRequires: perl(Test::Differences) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Try::Tiny) +BuildRequires: perl +BuildRequires: perl-macros +Requires: perl(aliased) +Requires: perl(Carp) +Requires: perl(DateTime) +Requires: perl(DateTime::Format::Strptime) +Requires: perl(Email::Valid) +Requires: perl(File::ShareDir) +Requires: perl(File::Spec) +Requires: perl(Moose) >= 0.90 +Requires: perl(MooseX::Getopt) >= 0.16 +Requires: perl(MooseX::Types) >= 0.20 +Requires: perl(MooseX::Types::Common) +Requires: perl(namespace::autoclean) >= 0.09 +Requires: perl(Try::Tiny) +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%{perl_requires} + +%description +*** Although documentation in this file provides some overview, it is +mainly intended for API documentation. See the +HTML::FormHandler::Manual::Intro manpage for a more detailed introduction. + +HTML::FormHandler maintains a clean separation between form construction +and form rendering. It allows you to define your forms and fields in a +number of flexible ways. Although it provides renderers for HTML, you can +define custom renderers for any kind of presentation. + +HTML::FormHandler allows you to define form fields and validators. It can +be used for both database and non-database forms, and will automatically +update or create rows in a database. It can be used to process structured +data that doesn't come from an HTML form. + +One of its goals is to keep the controller/application program interface as +simple as possible, and to minimize the duplication of code. In most cases, +interfacing your controller to your form is only a few lines of code. + +With FormHandler you'll never spend hours trying to figure out how to make +a simple HTML change that would take one minute by hand. Because you CAN do +it by hand. Or you can automate HTML generation as much as you want, with +template widgets or pure Perl rendering classes, and stay completely in +control of what, where, and how much is done automatically. You can define +custom renderers and display your rendered forms however you want. + +You can split the pieces of your forms up into logical parts and compose +complete forms from FormHandler classes, roles, fields, collections of +validations, transformations and Moose type constraints. You can write +custom methods to process forms, add any attribute you like, use Moose +method modifiers. FormHandler forms are Perl classes, so there's a lot of +flexibility in what you can do. + +HTML::FormHandler provides rendering through roles which are applied to +form and field classes (although there's no reason you couldn't write a +renderer as an external object either). There are currently two flavors: +all-in-one solutions like the HTML::FormHandler::Render::Simple manpage and +the HTML::FormHandler::Render::Table manpage that contain methods for +rendering field widget classes, and the the HTML::FormHandler::Widget +manpage roles, which are more atomic roles which are automatically applied +to fields and form if a 'render' method does not already exist. See the +HTML::FormHandler::Manual::Rendering manpage for more details. (And you can +easily use hand-build forms - FormHandler doesn't care.) + +The typical application for FormHandler would be in a Catalyst, +DBIx::Class, Template Toolkit web application, but use is not limited to +that. FormHandler can be used in any Perl application. + +More Formhandler documentation and a tutorial can be found in the manual at +the HTML::FormHandler::Manual 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 + +%clean +%{__rm} -rf %{buildroot} + +%files -f %{name}.files +%defattr(644,root,root,755) +%doc Changes dist.ini LICENSE README TODO xt + +%changelog