commit ghc-hruby for openSUSE:Factory

2018-01-24 Thread root
Hello community,

here is the log from the commit of package ghc-hruby for openSUSE:Factory 
checked in at 2018-01-24 15:32:05

Comparing /work/SRC/openSUSE:Factory/ghc-hruby (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hruby.new (New)


Package is "ghc-hruby"

Wed Jan 24 15:32:05 2018 rev:4 rq:568726 version:0.3.5.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hruby/ghc-hruby.changes  2017-08-31 
21:03:26.632570847 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hruby.new/ghc-hruby.changes 2018-01-24 
15:32:15.709430590 +0100
@@ -1,0 +2,12 @@
+Mon Jan  1 10:19:10 UTC 2018 - psim...@suse.com
+
+- Update to version 0.3.5.1.
+  A more detailed change log is not available.
+
+---
+Thu Dec 21 19:12:56 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.5.
+  A more detailed change log is not available.
+
+---

Old:

  hruby-0.3.4.4.tar.gz

New:

  hruby-0.3.5.1.tar.gz



Other differences:
--
++ ghc-hruby.spec ++
--- /var/tmp/diff_new_pack.EGpnm0/_old  2018-01-24 15:32:16.365399913 +0100
+++ /var/tmp/diff_new_pack.EGpnm0/_new  2018-01-24 15:32:16.365399913 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-hruby
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %global pkg_name hruby
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.4.4
+Version:0.3.5.1
 Release:0
 Summary:Embed a Ruby intepreter in your Haskell program !
 License:BSD-3-Clause
@@ -36,7 +36,7 @@
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-unordered-containers-devel
 BuildRequires:  ghc-vector-devel
-BuildRequires:  ruby2.4-devel
+BuildRequires:  ruby-devel
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 %endif
@@ -50,7 +50,7 @@
 Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
-Requires:   ruby2.4-devel
+Requires:   ruby-devel
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
 

++ hruby-0.3.4.4.tar.gz -> hruby-0.3.5.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hruby-0.3.4.4/Foreign/Ruby/Bindings.hsc 
new/hruby-0.3.5.1/Foreign/Ruby/Bindings.hsc
--- old/hruby-0.3.4.4/Foreign/Ruby/Bindings.hsc 2016-05-10 17:12:55.0 
+0200
+++ new/hruby-0.3.5.1/Foreign/Ruby/Bindings.hsc 2017-12-14 10:49:43.0 
+0100
@@ -97,6 +97,9 @@
 foreign import ccall   safe "rb_funcall"c_rb_funcall_3 
 :: RValue -> RID -> Int -> RValue -> RValue -> RValue -> IO RValue
 foreign import ccall   safe "rb_funcall"c_rb_funcall_4 
 :: RValue -> RID -> Int -> RValue -> RValue -> RValue -> RValue -> IO 
RValue
 foreign import ccall   safe "rb_funcall"c_rb_funcall_5 
 :: RValue -> RID -> Int -> RValue -> RValue -> RValue -> RValue -> RValue 
-> IO RValue
+#ifdef RUBY2
+foreign import ccall   safe "rb_funcall_with_block" 
c_rb_funcall_with_block :: RValue -> RID -> Int -> Ptr RValue -> RValue -> 
IO RValue
+#endif
 foreign import ccall unsafe "rb_gv_get" c_rb_gv_get
 :: CString -> IO RValue
 foreign import ccall unsafe "rb_intern" c_rb_intern
 :: CString -> IO RID
 foreign import ccall unsafe "rb_id2name"rb_id2name 
 :: RID -> IO CString
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hruby-0.3.4.4/hruby.cabal 
new/hruby-0.3.5.1/hruby.cabal
--- old/hruby-0.3.4.4/hruby.cabal   2017-07-21 14:39:55.0 +0200
+++ new/hruby-0.3.5.1/hruby.cabal   2017-12-26 16:07:42.0 +0100
@@ -2,7 +2,7 @@
 --  see http://haskell.org/cabal/users-guide/
 
 name:hruby
-version: 0.3.4.4
+version: 0.3.5.1
 synopsis:Embed a Ruby intepreter in your Haskell program !
 description: This doesn't work with Ruby 1.9. Everything you need 
should be in Foreign.Ruby.Safe.
 license: BSD3




commit ghc-hruby for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package ghc-hruby for openSUSE:Factory 
checked in at 2017-08-31 21:03:25

Comparing /work/SRC/openSUSE:Factory/ghc-hruby (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hruby.new (New)


Package is "ghc-hruby"

Thu Aug 31 21:03:25 2017 rev:3 rq:517545 version:0.3.4.4

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hruby/ghc-hruby.changes  2017-07-23 
12:15:51.235421078 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hruby.new/ghc-hruby.changes 2017-08-31 
21:03:26.632570847 +0200
@@ -1,0 +2,11 @@
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---
+Thu Jul 27 14:07:31 UTC 2017 - psim...@suse.com
+
+- Update to version 0.3.4.4. This change makes the previously added
+  "add-ruby-2.4-support.patch" obsolete.
+
+---

Old:

  add-ruby-2.4-support.patch
  hruby-0.3.4.3.tar.gz

New:

  hruby-0.3.4.4.tar.gz



Other differences:
--
++ ghc-hruby.spec ++
--- /var/tmp/diff_new_pack.q5SxoX/_old  2017-08-31 21:03:27.636429803 +0200
+++ /var/tmp/diff_new_pack.q5SxoX/_new  2017-08-31 21:03:27.656426993 +0200
@@ -19,14 +19,13 @@
 %global pkg_name hruby
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.4.3
+Version:0.3.4.4
 Release:0
 Summary:Embed a Ruby intepreter in your Haskell program !
 License:BSD-3-Clause
-Group:  Development/Languages/Other
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Patch1: 
https://github.com/bartavelle/hruby/commit/ab6e3492ad1db9aa1236e2b61738cd63a69996ce.patch#/add-ruby-2.4-support.patch
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
@@ -38,7 +37,6 @@
 BuildRequires:  ghc-unordered-containers-devel
 BuildRequires:  ghc-vector-devel
 BuildRequires:  ruby2.4-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 %endif
@@ -49,7 +47,7 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires:   ruby2.4-devel
@@ -61,7 +59,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-%patch1 -p1
 
 %build
 %ghc_lib_build
@@ -79,10 +76,8 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 
 %changelog

++ hruby-0.3.4.3.tar.gz -> hruby-0.3.4.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hruby-0.3.4.3/Setup.hs new/hruby-0.3.4.4/Setup.hs
--- old/hruby-0.3.4.3/Setup.hs  2017-01-23 11:23:07.0 +0100
+++ new/hruby-0.3.4.4/Setup.hs  2017-07-21 14:39:42.0 +0200
@@ -32,7 +32,7 @@
 evalRuby exp = do
 let getruby [] = return (ExitFailure 3, "beuh", undefined)
 getruby (x:xs) = readProcessWithExitCode x ["-e", exp] "" `catch` \ (_ 
:: IOException) -> getruby xs
-(exitCode, out, err) <- getruby [ "ruby2.1", "ruby2.0", "ruby2", 
"ruby1.8", "ruby"]
+(exitCode, out, err) <- getruby [ "ruby.ruby2.4", "ruby2.4", "ruby2.1", 
"ruby2.0", "ruby2", "ruby1.8", "ruby"]
 return $ if exitCode == ExitSuccess
then Just out
else Nothing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hruby-0.3.4.3/hruby.cabal 
new/hruby-0.3.4.4/hruby.cabal
--- old/hruby-0.3.4.3/hruby.cabal   2017-01-23 11:24:29.0 +0100
+++ new/hruby-0.3.4.4/hruby.cabal   2017-07-21 14:39:55.0 +0200
@@ -2,7 +2,7 @@
 --  see http://haskell.org/cabal/users-guide/
 
 name:hruby
-version: 0.3.4.3
+version: 0.3.4.4
 synopsis:Embed a Ruby intepreter in your Haskell program !
 description: This doesn't work with Ruby 1.9. Everything you need 
should be in Foreign.Ruby.Safe.
 license: BSD3




commit ghc-hruby for openSUSE:Factory

2017-07-23 Thread root
Hello community,

here is the log from the commit of package ghc-hruby for openSUSE:Factory 
checked in at 2017-07-23 12:15:41

Comparing /work/SRC/openSUSE:Factory/ghc-hruby (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-hruby.new (New)


Package is "ghc-hruby"

Sun Jul 23 12:15:41 2017 rev:2 rq:511931 version:0.3.4.3

Changes:

--- /work/SRC/openSUSE:Factory/ghc-hruby/ghc-hruby.changes  2017-04-12 
18:07:00.744043073 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-hruby.new/ghc-hruby.changes 2017-07-23 
12:15:51.235421078 +0200
@@ -1,0 +2,6 @@
+Tue Jul 18 08:10:02 UTC 2017 - psim...@suse.com
+
+- Apply "add-ruby-2.4-support.patch" from upstream to add support
+  for Ruby version 2.4.x (the new default version in Factory).
+
+---

New:

  add-ruby-2.4-support.patch



Other differences:
--
++ ghc-hruby.spec ++
--- /var/tmp/diff_new_pack.cNMlmk/_old  2017-07-23 12:15:52.639222784 +0200
+++ /var/tmp/diff_new_pack.cNMlmk/_new  2017-07-23 12:15:52.639222784 +0200
@@ -26,6 +26,7 @@
 Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+Patch1: 
https://github.com/bartavelle/hruby/commit/ab6e3492ad1db9aa1236e2b61738cd63a69996ce.patch#/add-ruby-2.4-support.patch
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
@@ -36,7 +37,7 @@
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-unordered-containers-devel
 BuildRequires:  ghc-vector-devel
-BuildRequires:  ruby2.2-devel
+BuildRequires:  ruby2.4-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
@@ -51,7 +52,7 @@
 Group:  Development/Libraries/Other
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
-Requires:   ruby2.2-devel
+Requires:   ruby2.4-devel
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
 
@@ -60,6 +61,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+%patch1 -p1
 
 %build
 %ghc_lib_build

++ add-ruby-2.4-support.patch ++
>From ab6e3492ad1db9aa1236e2b61738cd63a69996ce Mon Sep 17 00:00:00 2001
From: bartavelle 
Date: Fri, 21 Jul 2017 08:01:36 +0200
Subject: [PATCH] Tentative auto detection of ruby2.4

---
 Setup.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Setup.hs b/Setup.hs
index fcbb77b..eda96cf 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -32,7 +32,7 @@ evalRuby :: String-- expression to evaluate
 evalRuby exp = do
 let getruby [] = return (ExitFailure 3, "beuh", undefined)
 getruby (x:xs) = readProcessWithExitCode x ["-e", exp] "" `catch` \ (_ 
:: IOException) -> getruby xs
-(exitCode, out, err) <- getruby [ "ruby2.1", "ruby2.0", "ruby2", 
"ruby1.8", "ruby"]
+(exitCode, out, err) <- getruby [ "ruby.ruby2.4", "ruby2.4", "ruby2.1", 
"ruby2.0", "ruby2", "ruby1.8", "ruby"]
 return $ if exitCode == ExitSuccess
then Just out
else Nothing