[packages/ruby-ffi] up to 1.9.18
glen
glen at pld-linux.org
Mon Apr 24 22:29:22 CEST 2017
commit 93b363d505a12398076008a63ec9d15cc7c973a3
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Apr 24 23:02:57 2017 +0300
up to 1.9.18
ruby-ffi-platform.patch | 10 +++++-----
ruby-ffi.spec | 13 +++++--------
2 files changed, 10 insertions(+), 13 deletions(-)
---
diff --git a/ruby-ffi.spec b/ruby-ffi.spec
index 138d1c5..828d99f 100644
--- a/ruby-ffi.spec
+++ b/ruby-ffi.spec
@@ -7,15 +7,15 @@
Summary: FFI Extensions for Ruby
Summary(pl.UTF-8): Rozszerzenia FFI dla języka Ruby
Name: ruby-%{pkgname}
-Version: 1.9.6
-Release: 3
+Version: 1.9.18
+Release: 1
License: BSD
Group: Development/Languages
Source0: http://rubygems.org/gems/%{pkgname}-%{version}.gem
-# Source0-md5: 8606c263037322ae957e1959245841be
+# Source0-md5: 37284a51e5464443f7122b388329a2a0
Patch0: %{name}-platform.patch
Patch1: failed-tests.patch
-URL: http://wiki.github.com/ffi/ffi
+URL: https://wiki.github.com/ffi/ffi
BuildRequires: libffi-devel >= %{ffi_req}
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
@@ -47,14 +47,11 @@ stronie <http://wiki.github.com/ffi/ffi/why-use-ffi>.
%prep
%setup -q -n %{pkgname}-%{version}
%patch0 -p1
-%patch1 -p1
+#%patch1 -p1
# be sure to use system ffi
%{__rm} -r ext/ffi_c/libffi
-# drop bundled blobs (compiled for osx)
-%{__rm} spec/ffi/fixtures/*.o
-
# drop not our targets
%{__rm} -r lib/ffi/platform/*-{aix,cygwin,darwin,gnu,*bsd,solaris,windows}
# provide only definitions for package architecture
diff --git a/ruby-ffi-platform.patch b/ruby-ffi-platform.patch
index 33795dd..4d18441 100644
--- a/ruby-ffi-platform.patch
+++ b/ruby-ffi-platform.patch
@@ -1,11 +1,11 @@
---- ffi-1.9.3/lib/ffi/platform.rb.orig 2014-08-23 20:46:27.278379695 +0200
-+++ ffi-1.9.3/lib/ffi/platform.rb 2014-08-24 08:34:55.736595784 +0200
-@@ -84,7 +84,7 @@
- IS_OPENBSD = is_os("openbsd")
+--- ffi-1.9.18/lib/ffi/platform.rb~ 2017-04-24 22:55:45.000000000 +0300
++++ ffi-1.9.18/lib/ffi/platform.rb 2017-04-24 22:56:19.872279857 +0300
+@@ -90,7 +90,7 @@
+ IS_SOLARIS = is_os("solaris")
IS_WINDOWS = is_os("windows")
IS_BSD = IS_MAC || IS_FREEBSD || IS_NETBSD || IS_OPENBSD
- CONF_DIR = File.join(File.dirname(__FILE__), 'platform', NAME)
+ CONF_DIR = File.join(RbConfig::CONFIG["vendorarchdir"], 'ffi', 'platform', NAME)
+
public
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-ffi.git/commitdiff/e8f068f9a16bfa85b78bc801ec415a00c47438cd
More information about the pld-cvs-commit
mailing list