2009-08-18 19:53:11 +00:00
|
|
|
#
|
2011-05-22 19:18:39 +00:00
|
|
|
# spec file for package rubygem-ffi
|
2009-08-18 19:53:11 +00:00
|
|
|
#
|
2012-03-28 13:30:52 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-08-18 19:53:11 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-04-17 11:50:10 +00:00
|
|
|
|
2009-08-18 19:53:11 +00:00
|
|
|
Name: rubygem-ffi
|
2012-08-09 14:52:50 +00:00
|
|
|
Version: 1.1.5
|
2009-08-18 19:53:11 +00:00
|
|
|
Release: 0
|
|
|
|
%define mod_name ffi
|
2011-09-18 00:24:19 +00:00
|
|
|
%define mod_full_name %{mod_name}-%{version}
|
2012-07-28 16:24:08 +00:00
|
|
|
|
2012-03-28 13:30:52 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-07-28 16:24:08 +00:00
|
|
|
BuildRequires: ruby-macros >= 1
|
2012-08-09 14:52:50 +00:00
|
|
|
BuildRequires: rubygem(rdoc) > 3.10
|
2012-07-28 16:24:08 +00:00
|
|
|
Url: http://wiki.github.com/ffi/ffi
|
|
|
|
Source: %{mod_full_name}.gem
|
2012-08-03 13:58:09 +00:00
|
|
|
Summary: Ruby-FFI is a ruby extension for programmatically loading dynamic
|
2012-07-28 16:24:08 +00:00
|
|
|
License: LGPL-3.0
|
|
|
|
Group: Development/Languages/Ruby
|
2012-08-03 13:58:38 +00:00
|
|
|
# MANUAL
|
|
|
|
BuildRequires: libffi-devel
|
2011-08-24 12:33:04 +00:00
|
|
|
|
2009-08-18 19:53:11 +00:00
|
|
|
%description
|
2009-12-17 10:16:27 +00:00
|
|
|
Ruby-FFI is a ruby extension for programmatically loading dynamic
|
|
|
|
libraries, binding functions within them, and calling those functions
|
|
|
|
from Ruby code. Moreover, a Ruby-FFI extension works without changes
|
|
|
|
on Ruby and JRuby. Discover why should you write your next extension
|
2010-06-11 16:41:58 +00:00
|
|
|
using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].
|
2009-08-18 19:53:11 +00:00
|
|
|
|
2011-05-22 19:18:39 +00:00
|
|
|
%package doc
|
|
|
|
Summary: RDoc documentation for %{mod_name}
|
|
|
|
Group: Development/Languages/Ruby
|
|
|
|
Requires: %{name} = %{version}
|
2012-03-28 13:30:52 +00:00
|
|
|
|
2011-05-22 19:18:39 +00:00
|
|
|
%description doc
|
|
|
|
Documentation generated at gem installation time.
|
|
|
|
Usually in RDoc and RI formats.
|
|
|
|
|
|
|
|
%package testsuite
|
|
|
|
Summary: Test suite for %{mod_name}
|
|
|
|
Group: Development/Languages/Ruby
|
|
|
|
Requires: %{name} = %{version}
|
2012-03-28 13:30:52 +00:00
|
|
|
|
2011-05-22 19:18:39 +00:00
|
|
|
%description testsuite
|
|
|
|
Test::Unit or RSpec files, useful for developers.
|
|
|
|
|
2009-08-18 19:53:11 +00:00
|
|
|
%prep
|
2012-07-28 16:24:08 +00:00
|
|
|
#gem_unpack
|
|
|
|
#if you need patches, apply them here and replace the # with a % sign in the surrounding lines
|
|
|
|
#gem_build
|
|
|
|
|
2009-08-18 19:53:11 +00:00
|
|
|
%build
|
2012-07-28 16:24:08 +00:00
|
|
|
|
2009-08-18 19:53:11 +00:00
|
|
|
%install
|
2012-07-28 16:24:08 +00:00
|
|
|
%gem_install -f
|
2009-12-17 10:16:27 +00:00
|
|
|
%gem_cleanup
|
2009-08-18 19:53:11 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2011-09-18 00:24:19 +00:00
|
|
|
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
|
|
|
|
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
|
|
|
|
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
|
|
|
|
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec
|
2011-05-22 19:18:39 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
2011-09-18 00:24:19 +00:00
|
|
|
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/
|
2009-08-18 19:53:11 +00:00
|
|
|
|
2011-05-22 19:18:39 +00:00
|
|
|
%files testsuite
|
|
|
|
%defattr(-,root,root,-)
|
2011-09-18 00:24:19 +00:00
|
|
|
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
|
2011-05-22 19:18:39 +00:00
|
|
|
|
2009-08-18 19:53:11 +00:00
|
|
|
%changelog
|