Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding in dependencies to make mock build succeed.

  • Loading branch information...
commit 5d836e04db8077254c2b61d6623d138d57acd1bd 1 parent 56b0ee0
authored
23  rubygem-fakefs.spec
... ...
@@ -1,20 +1,21 @@
1 1
 # Generated from fakefs-0.2.1.gem by gem2rpm -*- rpm-spec -*-
2  
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
3  
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
4  
-%define gemname fakefs
5  
-%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
  2
+%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
  3
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
  4
+%global gemname fakefs
  5
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
6 6
 
7 7
 Summary: A fake filesystem. Use it in your tests
8 8
 Name: rubygem-%{gemname}
9 9
 Version: 0.2.1
10 10
 Release: 1%{?dist}
11 11
 Group: Development/Languages
12  
-License: GPLv2+ or Ruby
  12
+License: MIT
13 13
 URL: http://github.com/defunkt/fakefs
14 14
 Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
15  
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  15
+Requires: ruby(abi) = 1.8
16 16
 Requires: rubygems
17 17
 BuildRequires: rubygems
  18
+BuildRequires: rubygem(rake)
18 19
 BuildArch: noarch
19 20
 Provides: rubygem(%{gemname}) = %{version}
20 21
 
@@ -32,15 +33,19 @@ mkdir -p %{buildroot}%{gemdir}
32 33
 gem install --local --install-dir %{buildroot}%{gemdir} \
33 34
             --force --rdoc %{SOURCE0}
34 35
 
  36
+%check
  37
+pushd %{buildroot}%{gemdir}/gems/%{gemname}-%{version}/
  38
+rake test
  39
+rake spec
  40
+popd
  41
+
35 42
 %clean
36 43
 rm -rf %{buildroot}
37 44
 
38 45
 %files
39 46
 %defattr(-, root, root, -)
40  
-%{gemdir}/gems/%{gemname}-%{version}/
  47
+%{geminstdir}/
41 48
 %doc %{gemdir}/doc/%{gemname}-%{version}
42  
-%doc %{geminstdir}/LICENSE
43  
-%doc %{geminstdir}/README.markdown
44 49
 %{gemdir}/cache/%{gemname}-%{version}.gem
45 50
 %{gemdir}/specifications/%{gemname}-%{version}.gemspec
46 51
 
4  rubygem-libxml.spec
@@ -16,7 +16,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16 16
 Requires: rubygems
17 17
 BuildRequires: rubygems
18 18
 BuildRequires: ruby-devel
19  
-BuildRequires: zlib
  19
+BuildRequires: zlib-devel
  20
+BuildRequires: libxml2
  21
+BuildRequires: libxml2-devel
20 22
 
21 23
 Provides: rubygem(%{gemname}) = %{version}
22 24
 

0 notes on commit 5d836e0

Please sign in to comment.
Something went wrong with that request. Please try again.