# Generated from form_input-1.3.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name form_input Name: rubygem-%{gem_name} Version: 1.3.0 Release: 1%{?dist} Summary: Form helper which sanitizes, transforms, validates and encapsulates web request input License: MIT URL: https://github.com/raxoft/form_input Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0.0 # BuildRequires: rubygem(bacon) >= 1.2 # BuildRequires: rubygem(bacon) < 2 # BuildRequires: rubygem(rack-test) >= 0.6 # BuildRequires: rubygem(rack-test) < 1 # BuildRequires: rubygem(r18n-core) >= 2.0 # BuildRequires: rubygem(r18n-core) < 3 BuildArch: noarch %description This gem allows you to describe your forms using a simple DSL and then takes care of sanitizing, transforming, and validating the input for you, providing you with the ready-to-use input in a model-like structure. Both simple forms as well as multi-step forms are supported. Includes handy accessors for automatically building the forms and reporting error messages using a templating engine of your choice. Localization support with builtin inflection rules can be enabled, too. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # bacon -a popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.yardopts %license %{gem_instdir}/LICENSE %{gem_instdir}/example %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/form_input.gemspec %{gem_instdir}/test %changelog * Mon Aug 23 2021 mockbuilder - 1.3.0-1 - Initial package