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
|
|
|
#
|
2013-01-08 20:21:45 +00:00
|
|
|
# Copyright (c) 2013 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
|
2013-10-31 18:38:38 +00:00
|
|
|
Version: 1.9.3
|
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-11-21 06:34:09 +00:00
|
|
|
Requires: ruby >= 1.8.7
|
|
|
|
BuildRequires: ruby-devel >= 1.8.7
|
2013-04-12 07:55:05 +00:00
|
|
|
BuildRequires: rubygem(rdoc) > 3.10
|
2012-11-21 06:34:09 +00:00
|
|
|
# MANUAL
|
|
|
|
BuildRequires: libffi-devel
|
2012-07-28 16:24:08 +00:00
|
|
|
Url: http://wiki.github.com/ffi/ffi
|
2013-03-23 08:04:37 +00:00
|
|
|
Source: http://rubygems.org/gems/%{mod_full_name}.gem
|
2012-11-21 06:34:09 +00:00
|
|
|
Summary: Ruby FFI
|
2013-10-31 18:38:38 +00:00
|
|
|
License: BSD
|
2012-07-28 16:24:08 +00:00
|
|
|
Group: Development/Languages/Ruby
|
2011-08-24 12:33:04 +00:00
|
|
|
|
2009-08-18 19:53:11 +00:00
|
|
|
%description
|
2012-11-21 06:34:09 +00:00
|
|
|
Ruby FFI library
|
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
|
2013-10-31 18:38:38 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE
|
|
|
|
ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/COPYING %buildroot/%{_docdir}/%{name}/COPYING
|
|
|
|
ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md
|
2009-08-18 19:53:11 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-10-31 18:38:38 +00:00
|
|
|
%{_docdir}/%{name}
|
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
|