[rubygem-simple_form] Initial import (#859994).

Imre Farkas ifarkas at fedoraproject.org
Tue Oct 9 11:36:50 UTC 2012


commit 0f056430bf3224dce1cfb62a556d9d81e7cc9ebc
Author: Imre Farkas <ifarkas at redhat.com>
Date:   Tue Oct 9 13:36:37 2012 +0200

    Initial import (#859994).

 .gitignore               |    1 +
 rubygem-simple_form.spec |  112 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c3625ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/simple_form-2.0.3.gem
diff --git a/rubygem-simple_form.spec b/rubygem-simple_form.spec
new file mode 100644
index 0000000..90fde07
--- /dev/null
+++ b/rubygem-simple_form.spec
@@ -0,0 +1,112 @@
+%global gem_name simple_form
+
+Name: rubygem-%{gem_name}
+Version: 2.0.3
+Release: 1%{?dist}
+Summary: Flexible and powerful components to create forms
+
+Group: Development/Languages
+License: MIT
+URL: https://github.com/plataformatec/%{gem_name}
+Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
+
+Provides: rubygem(%{gem_name}) = %{version}
+BuildArch: noarch
+BuildRequires: rubygems-devel
+# Test suite needs the following dependencies
+BuildRequires: rubygem(mocha)
+BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(railties)
+BuildRequires: rubygem(tzinfo)
+
+%if 0%{?fedora} > 16
+Requires: ruby(abi) = 1.9.1
+%else
+Requires: ruby(abi) = 1.8
+%endif
+
+Requires: rubygems
+Requires: rubygem(activemodel) >= 3.0
+Requires: rubygem(actionpack) >= 3.0
+
+
+%description
+SimpleForm aims to be as flexible as possible while helping you with powerful
+components to create your forms. The basic goal of SimpleForm is to not touch
+your way of defining the layout, letting you find the better design for your
+eyes.
+
+
+%package doc
+BuildArch: noarch
+Requires: %{name} = %{version}-%{release}
+Summary: Documentation for %{name}
+
+
+%description doc
+This package contains documentation %{name}
+
+%prep
+gem unpack %{SOURCE0}
+%setup -q -D -T -n  %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+
+%build
+mkdir -p .%{gem_dir}
+
+# Create the gem as gem install only works on a gem file
+LANG=en_US.utf8 gem build %{gem_name}.gemspec
+
+# gem install compiles any C extensions and installs into a directory
+# We set that to be a local directory so that we can move it into the
+# buildroot in %%install
+gem install -V \
+         --local \
+         --install-dir ./%{gem_dir} \
+         --bindir ./%{_bindir} \
+         --force \
+         --rdoc \
+         %{gem_name}-%{version}.gem
+
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
+
+# Removing file which is not under source control. For further details check out:
+# https://github.com/plataformatec/simple_form/issues/673
+rm %{buildroot}%{gem_instdir}/test/form_builder/general_test.rb.orig
+
+
+%check
+# Get rid of Bundler.
+sed -i "/require 'bundler\/setup'/d" test/test_helper.rb
+# The following test cases require rubygem-country_select which is not packaged
+# for Fedora, so commenting it out
+sed -i "/require 'country_select'/d" test/test_helper.rb
+sed -i '103,106 s|^|#|' test/form_builder/general_test.rb
+sed -i '113,116 s|^|#|' test/form_builder/general_test.rb
+sed -i '5,17 s|^|#|' test/inputs/priority_input_test.rb
+sed -i '38,42 s|^|#|' test/inputs/priority_input_test.rb
+find ./test -name *_test.rb | xargs testrb -Itest
+
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+%doc %{gem_instdir}/MIT-LICENSE
+%doc %{gem_instdir}/README.md
+%exclude %{gem_cache}
+%{gem_spec}
+
+
+%files doc
+%{gem_instdir}/test
+%doc %{gem_instdir}/CHANGELOG.md
+%doc %{gem_docdir}
+
+
+%changelog
+* Fri Sep 21 2012 Imre Farkas <ifarkas at redhat.com> - 2.0.3-1
+- Initial package
diff --git a/sources b/sources
index e69de29..6633200 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+06509183b771c9151730d6629a3d3326  simple_form-2.0.3.gem


More information about the scm-commits mailing list