From c1728c29ea46fcb40112529781d0311825b06271 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Thu, 21 Feb 2013 17:50:17 -0700 Subject: Initial package --- .gitignore | 1 + rubygem-factory_girl.spec | 101 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 103 insertions(+) create mode 100644 .gitignore create mode 100644 rubygem-factory_girl.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fb043ce --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/factory_girl-1.3.3.gem diff --git a/rubygem-factory_girl.spec b/rubygem-factory_girl.spec new file mode 100644 index 0000000..31b3f04 --- /dev/null +++ b/rubygem-factory_girl.spec @@ -0,0 +1,101 @@ +# Generated from factory_girl-1.3.3.gem by gem2rpm -*- rpm-spec -*- +%global gem_name factory_girl +%if 0%{?el6} +%global rubyabi 1.8 +%else +%global rubyabi 1.9.1 +%endif + +Summary: factory_girl provides a framework and DSL for defining and using model instance factories +Name: rubygem-%{gem_name} +Version: 1.3.3 +Release: 1%{?dist} +Group: Development/Languages +License: MIT +URL: http://thoughtbot.com/projects/factory_girl +Source0: %{gem_name}-%{version}.gem +Requires: ruby(abi) = %{rubyabi} +Requires: ruby(rubygems) +BuildRequires: ruby(abi) = %{rubyabi} +%if 0%{?el6} +BuildRequires: ruby(rubygems) +%else +BuildRequires: rubygems-devel +%endif +%if 0%{?el6} +# rubygem(rr) is not yet available on EL6 +%else +BuildRequires: rubygem(rspec) +BuildRequires: rubygem(rspec-core) +BuildRequires: rubygem(rr) +%endif +BuildArch: noarch +Provides: rubygem(%{gem_name}) = %{version} + +# macros for RHEL6 compatibility: +%{!?gem_dir: %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)} +%{!?gem_instdir: %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}} +%{!?gem_libdir: %global gem_libdir %{gem_instdir}/lib} +%{!?gem_cache: %global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem} +%{!?gem_spec: %global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec} +%{!?gem_docdir: %global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}} +%{!?gem_extdir: %global gem_extdir %{_libdir}/gems/exts/%{gem_name}-%{version}} + +%description +factory_girl provides a framework and DSL for defining and +using factories - less error-prone, more explicit, and +all-around easier to work with than fixtures. + + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name} + +%prep +%setup -q -c -T +mkdir -p .%{gem_dir} +gem install --local --install-dir .%{gem_dir} \ + --force %{SOURCE0} + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} + %if 0%{?el6} + # rr is not available in EL 6 + %else + rspec spec + %endif +popd + + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.rdoc +%doc %{gem_instdir}/CONTRIBUTION_GUIDELINES.rdoc +%doc %{gem_instdir}/Changelog +%{gem_instdir}/features +%{gem_instdir}/spec +%{gem_instdir}/Rakefile + + +%changelog +* Thu Feb 21 2013 ktdreyer@ktdreyer.com - 1.3.3-1 +- Initial package, created with gem2rpm 0.8.1 diff --git a/sources b/sources new file mode 100644 index 0000000..4a65990 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +caccc3403c6321de46512048901bfb88 factory_girl-1.3.3.gem -- cgit