Project import/rubygem-ffi - Diff 6664232718...5d76dd25e8

... ... --- a/.abf.yml
... ... +++ b/.abf.yml
... ... @@ -1,2 +1,4 @@
1
sources:
1
removed_sources:
2 2
  ffi-1.0.11.gem: f889bc8ed5a6a4b013f6146bba4cd534218fafe0
3
sources:
4
  ffi-1.9.18.gem: 2d92e5efb7753c02d277cba9ad333bb9d51998b0
view file @ 5d76dd25e8
... ... --- a/rubygem-ffi.spec
... ... +++ b/rubygem-ffi.spec
... ... @@ -1,17 +1,17 @@
1
%define oname ffi
1
%define rbname ffi
2 2
3
Name:       rubygem-%{oname}
4
Version:    1.0.11
5
Release:	7
3
Name:       rubygem-%{rbname}
4
Version:    1.9.18
5
Release:    1
6 6
Summary:    A ruby extension for programmatically loading dynamic libraries
7 7
Group:      Development/Ruby
8 8
License:    LGPLv3
9 9
URL:        http://wiki.github.com/ffi/ffi
10
Source0:    http://rubygems.org/gems/%{oname}-%{version}.gem
10
Source0:    http://rubygems.org/gems/%{rbname}-%{version}.gem
11 11
Requires:   rubygems
12 12
BuildRequires: rubygems
13
BuildRequires: ruby-devel
14
Provides:   rubygem(%{oname}) = %{version}
13
BuildRequires: pkgconfig(ruby)
14
Provides:   rubygem(%{rbname}) = %{version}
15 15
16 16
%description
17 17
Ruby-FFI is a ruby extension for programmatically loading dynamic
... ... @@ -20,37 +20,35 @@ from Ruby code. Moreover, a Ruby-FFI extension works without changes
20 20
on Ruby and JRuby. Discover why should you write your next extension
21 21
using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].
22 22
23
%files
24
%doc COPYING LICENSE 
25
%{ruby_gemdir}/gems/%{rbname}-%{version}/lib/
26
%{ruby_gemdir}/specifications/%{rbname}-%{version}.gemspec
27
%{ruby_sitearchdir}/ffi_c.so
28
29
#------------------------------------------------------
30
%package        doc
31
Summary:        Documentation for %{name}
32
Group:          Books/Computer books
33
BuildArch:      noarch
34
Requires:       %{name} = %{EVRD}
35
36
%description    doc
37
Documents, RDoc & RI documentation for %{name}.
23 38
39
%files          doc
40
%{ruby_gemdir}/doc/%{rbname}-%{version}/ri
41
%{ruby_gemdir}/doc/%{rbname}-%{version}/rdoc
42
43
#-------------------------------------------------------------
24 44
%prep
45
%setup -q
25 46
26 47
%build
27
mkdir -p .%{ruby_gemdir}
28
gem install -V --local --install-dir .%{ruby_gemdir} \
29
               --force --rdoc %{SOURCE0}
48
%gem_build 
30 49
31 50
%install
32
mkdir -p %{buildroot}%{ruby_gemdir}
33
cp -r .%{ruby_gemdir}/* %{buildroot}%{ruby_gemdir}
34
35
rm -rf %{buildroot}%{ruby_gemdir}/gems/%{oname}-%{version}/ext/
51
%gem_install 
36 52
37
#install arch dependant files in sitearchdir
38
mkdir -p %{buildroot}%{ruby_sitearchdir}
39
mv %{buildroot}%{ruby_gemdir}/gems/%{oname}-%{version}/lib/*.so %{buildroot}%{ruby_sitearchdir}
40 53
41
%files
42
%dir %{ruby_gemdir}/gems/%{oname}-%{version}/
43
%{ruby_gemdir}/gems/%{oname}-%{version}/gen/
44
%{ruby_gemdir}/gems/%{oname}-%{version}/lib/
45
%{ruby_gemdir}/gems/%{oname}-%{version}/spec/
46
%{ruby_gemdir}/gems/%{oname}-%{version}/tasks/
47
%doc %{ruby_gemdir}/gems/%{oname}-%{version}/History.txt
48
%doc %{ruby_gemdir}/gems/%{oname}-%{version}/LICENSE
49
%doc %{ruby_gemdir}/gems/%{oname}-%{version}/Rakefile
50
%doc %{ruby_gemdir}/gems/%{oname}-%{version}/README.rdoc
51
%doc %{ruby_gemdir}/doc/%{oname}-%{version}
52
%{ruby_gemdir}/cache/%{oname}-%{version}.gem
53
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec
54
%{ruby_sitearchdir}/ffi_c.so
55
%{ruby_gemdir}/extensions/*/*/%{oname}-%{version}
56 54