From d3b265ffc55a03339f76354dca88d53e71c7a02e2048b70349b6112d6fa631dc Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 28 Mar 2012 13:30:52 +0000 Subject: [PATCH] - Spec file cleanup: * Factory preparation OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-ffi?expand=0&rev=12 --- rubygem-ffi.changes | 6 ++++++ rubygem-ffi.spec | 32 +++++++++++++------------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/rubygem-ffi.changes b/rubygem-ffi.changes index 1f0f7a6..b47072f 100644 --- a/rubygem-ffi.changes +++ b/rubygem-ffi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 28 13:30:52 UTC 2012 - saschpe@suse.de + +- Spec file cleanup: + * Factory preparation + ------------------------------------------------------------------- Wed Aug 24 12:36:46 UTC 2011 - fcastelli@novell.com diff --git a/rubygem-ffi.spec b/rubygem-ffi.spec index ddb264c..5681742 100644 --- a/rubygem-ffi.spec +++ b/rubygem-ffi.spec @@ -1,7 +1,7 @@ # # spec file for package rubygem-ffi # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,29 +15,24 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: rubygem-ffi Version: 1.0.9 Release: 0 +License: MIT +Summary: Ruby-FFI is a ruby extension for programmatically loading dynamic libraries, binding functions within them, and calling those functions from Ruby code +Url: http://wiki.github.com/ffi/ffi +Group: Development/Languages/Ruby %define mod_name ffi %define mod_full_name %{mod_name}-%{version} -# -Group: Development/Languages/Ruby -License: MIT -# -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: %{mod_full_name}.gem BuildRequires: libffi-devel BuildRequires: rubygems_with_buildroot_patch +Provides: rubygem-%{mod_name}-1 = %{version} +Provides: rubygem-%{mod_name}-1_0 = %{version} +Provides: rubygem-%{mod_name}-1_0_9 = %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build %rubygems_requires -Provides: rubygem-%{mod_name}-1 = %{version}-%{release} -Provides: rubygem-%{mod_name}-1_0 = %{version}-%{release} -Provides: rubygem-%{mod_name}-1_0_9 = %{version}-%{release} -# -Url: http://wiki.github.com/ffi/ffi -Source: %{mod_full_name}.gem -# -Summary: Ruby-FFI is a ruby extension for programmatically loading dynamic libraries, binding functions within them, and calling those functions from Ruby code %description Ruby-FFI is a ruby extension for programmatically loading dynamic libraries, binding functions within them, and calling those functions @@ -49,6 +44,7 @@ using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi]. Summary: RDoc documentation for %{mod_name} Group: Development/Languages/Ruby Requires: %{name} = %{version} + %description doc Documentation generated at gem installation time. Usually in RDoc and RI formats. @@ -57,18 +53,16 @@ Usually in RDoc and RI formats. Summary: Test suite for %{mod_name} Group: Development/Languages/Ruby Requires: %{name} = %{version} + %description testsuite Test::Unit or RSpec files, useful for developers. %prep %build %install -%gem_install %{S:0} +%gem_install %{SOURCE0} %gem_cleanup -%clean -%{__rm} -rf %{buildroot} - %files %defattr(-,root,root,-) %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem