[rubygem-factory_girl/f12/master] Initial import

Michal Fojtik mfojtik at fedoraproject.org
Tue Oct 19 11:18:54 UTC 2010


commit 38d5814bc102621f7d682aaaa93a68a5b13d1d0b
Author: Michal Fojtik <mfojtik at redhat.com>
Date:   Tue Oct 19 13:18:49 2010 +0200

    Initial import

 .gitignore                |    2 +
 rubygem-factory_girl.spec |   95 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    2 +
 3 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9eb9e87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/factory_girl-1.3.2.gem
+/rubygem-factory_girl-fix-gemspec-loading.patch
diff --git a/rubygem-factory_girl.spec b/rubygem-factory_girl.spec
new file mode 100644
index 0000000..5aa74e5
--- /dev/null
+++ b/rubygem-factory_girl.spec
@@ -0,0 +1,95 @@
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname factory_girl
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+Summary: Framework and DSL for defining and using model instance factories
+Name: rubygem-%{gemname}
+Version: 1.3.2
+Release: 3%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://thoughtbot.com/projects/factory_girl
+Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
+Patch0: %{name}-fix-gemspec-loading.patch
+Requires: rubygems
+Requires: ruby(abi) = 1.8
+BuildRequires: rubygems
+BuildRequires: rubygem(rake)
+BuildRequires: rubygem(cucumber) >= 0.9.0
+BuildRequires: rubygem(rspec)
+BuildRequires: rubygem(rcov)
+BuildRequires: rubygem(activerecord) >= 2.3.5
+BuildRequires: rubygem(sqlite3-ruby) >= 1.2.4
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+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}
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T 
+mkdir -p ./%{gemdir}
+gem install \
+	--local \
+	--install-dir ./%{gemdir} \
+	-V --force --rdoc \
+	%{SOURCE0}
+pushd .%{geminstdir}
+%patch0
+popd
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+cp -va ./%{gemdir}/* %{buildroot}%{gemdir}
+
+%check
+pushd %{buildroot}/%{geminstdir}
+rake features --trace
+popd
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%{geminstdir}/lib
+%doc %{geminstdir}/README.rdoc
+%doc %{geminstdir}/LICENSE
+%doc %{geminstdir}/Changelog
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%defattr(-, root, root, -)
+%{gemdir}/doc/%{gemname}-%{version}
+%{geminstdir}/features
+%{geminstdir}/spec
+%{geminstdir}/Rakefile
+%{geminstdir}/CONTRIBUTION_GUIDELINES.rdoc
+
+
+%changelog
+* Thu Oct 14 2010 Michal Fojtik <mfojtik at redhat.com> - 1.3.2-3
+- Replaced path with path macro
+
+* Wed Oct 13 2010 Michal Fojtik <mfojtik at redhat.com> - 1.3.2-2
+- Rakefile fixing moved to a separate patch
+- Fixed unneeded Requires
+- Fixed directory ownership on doc subpackage
+- README and LICENSE moved back to main package
+
+* Sat Oct 02 2010 Michal Fojtik <mfojtik at redhat.com> - 1.3.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..e6a2719 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+b278fe7856a35eec51b797f69413fb29  factory_girl-1.3.2.gem
+d2e12b6457b0d02041bee6962f11ccc3  rubygem-factory_girl-fix-gemspec-loading.patch


More information about the scm-commits mailing list