From ab4bc6f34e95c7ae042d04dabdffa0aa4ad88c7ef01f6ad6c57ceab8be1f245a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Dec 2017 19:52:25 +0000 Subject: [PATCH 01/10] osc copypac from project:devel:languages:haskell:lts:10 package:ghc-hslua revision:6, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=26 --- ghc-hslua.changes | 6 ++++++ ghc-hslua.spec | 36 ++++++++++++++++++++---------------- hslua-0.4.1.tar.gz | 3 --- hslua-0.9.3.tar.gz | 3 +++ 4 files changed, 29 insertions(+), 19 deletions(-) delete mode 100644 hslua-0.4.1.tar.gz create mode 100644 hslua-0.9.3.tar.gz diff --git a/ghc-hslua.changes b/ghc-hslua.changes index 0473ca8..896e61e 100644 --- a/ghc-hslua.changes +++ b/ghc-hslua.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 21 18:24:02 UTC 2017 - psimons@suse.com + +- Update to version 0.9.3. + A more detailed change log is not available. + ------------------------------------------------------------------- Thu Aug 17 09:35:36 UTC 2017 - dimstar@opensuse.org diff --git a/ghc-hslua.spec b/ghc-hslua.spec index 5e2892f..f51bab6 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -19,7 +19,7 @@ %global pkg_name hslua %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.4.1 +Version: 0.9.3 Release: 0 Summary: A Lua language interpreter embedding in Haskell License: MIT @@ -28,32 +28,36 @@ URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-exceptions-devel +BuildRequires: ghc-fail-devel +BuildRequires: ghc-mtl-devel BuildRequires: ghc-rpm-macros -BuildRequires: lua51-devel -%if %{with tests} -BuildRequires: ghc-HUnit-devel -BuildRequires: ghc-QuickCheck-devel -BuildRequires: ghc-hspec-contrib-devel -BuildRequires: ghc-hspec-devel -BuildRequires: ghc-quickcheck-instances-devel BuildRequires: ghc-text-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-quickcheck-instances-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-expected-failure-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-quickcheck-devel %endif %description -The Scripting.Lua module is a wrapper of Lua language interpreter as described -in [lua.org](http://www.lua.org/). +The Foreign.Lua module is a wrapper of Lua language interpreter as described on +. -This package contains full Lua interpreter version 5.1.5. If you want to link -it with system-wide Lua installation, use 'system-lua' flag. +This package contains a full Lua interpreter version 5.3.4. If you want to link +it with a system-wide Lua installation, use the 'system-lua' flag. -[Example programs](https://github.com/osa1/hslua/tree/master/examples). + are available in a +separate repository. %package devel Summary: Haskell %{pkg_name} library development files Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} -Requires: lua51-devel Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} @@ -64,7 +68,7 @@ This package provides the Haskell %{pkg_name} library development files. %setup -q -n %{pkg_name}-%{version} %build -%define cabal_configure_options -fsystem-lua --extra-include-dirs=$(pkg-config --variable=includedir lua) +%define cabal_configure_options -f-system-lua %ghc_lib_build %install @@ -83,6 +87,6 @@ This package provides the Haskell %{pkg_name} library development files. %doc COPYRIGHT %files devel -f %{name}-devel.files -%doc CHANGELOG.md README.md examples +%doc CHANGELOG.md README.md %changelog diff --git a/hslua-0.4.1.tar.gz b/hslua-0.4.1.tar.gz deleted file mode 100644 index 6caba09..0000000 --- a/hslua-0.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2df2b4f0566ef2244506f9830e0207fce3bece7c331129f69f446c722136173f -size 130342 diff --git a/hslua-0.9.3.tar.gz b/hslua-0.9.3.tar.gz new file mode 100644 index 0000000..f99b662 --- /dev/null +++ b/hslua-0.9.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15e9699297da1534824a537e05fd76c8b115f3c32e550eaec3277ce5902386d6 +size 226260 From 6e625f04041bcfa5e766d0137235970b71d2a8e1be316db43a7bad34e8e2109f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 9 Jan 2018 02:17:07 +0000 Subject: [PATCH 02/10] osc copypac from project:devel:languages:haskell:lts:10 package:ghc-hslua revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=27 --- ghc-hslua.changes | 6 ++++++ ghc-hslua.spec | 4 ++-- hslua-0.9.3.tar.gz | 3 --- hslua-0.9.5.tar.gz | 3 +++ 4 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 hslua-0.9.3.tar.gz create mode 100644 hslua-0.9.5.tar.gz diff --git a/ghc-hslua.changes b/ghc-hslua.changes index 896e61e..9d5f286 100644 --- a/ghc-hslua.changes +++ b/ghc-hslua.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 8 03:02:14 UTC 2018 - psimons@suse.com + +- Update to version 0.9.5. + A more detailed change log is not available. + ------------------------------------------------------------------- Thu Dec 21 18:24:02 UTC 2017 - psimons@suse.com diff --git a/ghc-hslua.spec b/ghc-hslua.spec index f51bab6..1e7d305 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-hslua # -# 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 hslua %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.9.3 +Version: 0.9.5 Release: 0 Summary: A Lua language interpreter embedding in Haskell License: MIT diff --git a/hslua-0.9.3.tar.gz b/hslua-0.9.3.tar.gz deleted file mode 100644 index f99b662..0000000 --- a/hslua-0.9.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15e9699297da1534824a537e05fd76c8b115f3c32e550eaec3277ce5902386d6 -size 226260 diff --git a/hslua-0.9.5.tar.gz b/hslua-0.9.5.tar.gz new file mode 100644 index 0000000..9de0883 --- /dev/null +++ b/hslua-0.9.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56040ace124f8d670e045fa6a9856587496a9c176b1a0b9678dc7b7bdc995fc8 +size 228260 From e5d6ca00d85f8780b264048dab937dc67c2d2a6ea2a775e9078733caa9674959 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 8 Mar 2018 02:17:59 +0000 Subject: [PATCH 03/10] osc copypac from project:devel:languages:haskell:lts:10 package:ghc-hslua revision:8, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=28 --- ghc-hslua.changes | 6 ++++++ ghc-hslua.spec | 2 +- hslua-0.9.5.1.tar.gz | 3 +++ hslua-0.9.5.tar.gz | 3 --- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 hslua-0.9.5.1.tar.gz delete mode 100644 hslua-0.9.5.tar.gz diff --git a/ghc-hslua.changes b/ghc-hslua.changes index 9d5f286..40d6f83 100644 --- a/ghc-hslua.changes +++ b/ghc-hslua.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 5 03:01:38 UTC 2018 - psimons@suse.com + +- Update hslua to version 0.9.5.1. + A more detailed change log is not available. + ------------------------------------------------------------------- Mon Jan 8 03:02:14 UTC 2018 - psimons@suse.com diff --git a/ghc-hslua.spec b/ghc-hslua.spec index 1e7d305..435fe90 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -19,7 +19,7 @@ %global pkg_name hslua %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.9.5 +Version: 0.9.5.1 Release: 0 Summary: A Lua language interpreter embedding in Haskell License: MIT diff --git a/hslua-0.9.5.1.tar.gz b/hslua-0.9.5.1.tar.gz new file mode 100644 index 0000000..cfd9db9 --- /dev/null +++ b/hslua-0.9.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:681ffb1775e948143c0dd4be3086259f2eda8a9f7b09ce94016150c57e9d74d0 +size 228252 diff --git a/hslua-0.9.5.tar.gz b/hslua-0.9.5.tar.gz deleted file mode 100644 index 9de0883..0000000 --- a/hslua-0.9.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56040ace124f8d670e045fa6a9856587496a9c176b1a0b9678dc7b7bdc995fc8 -size 228260 From 411fb668e5767342f158436bc90e47644c50c5117a41c06535ce830afbafe635 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 2 Apr 2018 14:57:12 +0000 Subject: [PATCH 04/10] osc copypac from project:devel:languages:haskell:lts:11 package:ghc-hslua revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=29 --- ghc-hslua.changes | 97 +---------------------------------------------- 1 file changed, 1 insertion(+), 96 deletions(-) diff --git a/ghc-hslua.changes b/ghc-hslua.changes index 40d6f83..2af9bcc 100644 --- a/ghc-hslua.changes +++ b/ghc-hslua.changes @@ -1,101 +1,6 @@ ------------------------------------------------------------------- -Mon Mar 5 03:01:38 UTC 2018 - psimons@suse.com +Wed Mar 14 16:55:46 UTC 2018 - psimons@suse.com - Update hslua to version 0.9.5.1. A more detailed change log is not available. -------------------------------------------------------------------- -Mon Jan 8 03:02:14 UTC 2018 - psimons@suse.com - -- Update to version 0.9.5. - A more detailed change log is not available. - -------------------------------------------------------------------- -Thu Dec 21 18:24:02 UTC 2017 - psimons@suse.com - -- Update to version 0.9.3. - A more detailed change log is not available. - -------------------------------------------------------------------- -Thu Aug 17 09:35:36 UTC 2017 - dimstar@opensuse.org - -- Fix build with the new lua package layout by specifying - --extra-include-dirs based on lua.pc. - -------------------------------------------------------------------- -Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com - -- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. - -------------------------------------------------------------------- -Sun Jul 10 17:22:35 UTC 2016 - psimons@suse.com - -- Update to version 0.4.1 revision 0 with cabal2obs. - -------------------------------------------------------------------- -Sun Sep 13 12:46:14 UTC 2015 - mimi.vx@gmail.com - -- update to 0.4.1 -* Bugfix: tolist wasn't popping elements of the list from stack. - -------------------------------------------------------------------- -Fri Aug 7 07:36:15 UTC 2015 - mimi.vx@gmail.com - -- update to 0.4.0 -* pushstring and tostring now uses ByteString instead of [Char]. -* StackValue [Char] instance is removed, StackValue ByteString is added. -* StackValue a => StackValue [a] instance is added. It pushes a Lua array to the stack. pushlist, - islist and tolist functions are added. -* Type errors in Haskell functions now propagated differently. See the Scripting.Lua - documentation for detailed explanation. This should fix segfaults reported several times. -* lua_error function is removed, it's never safe to call in Haskell. -* Pkgconf-based setup removed. Cabal is now using extra-libraries to link with Lua. -* luajit flag is added to link hslua with LuaJIT. - -------------------------------------------------------------------- -Tue Apr 21 11:57:18 UTC 2015 - mimi.vx@gmail.com - -- update to 0.3.13 -* `pushrawhsfunction` and `registerrawhsfunction` functions are added. -* `luaL_ref` and `luaL_unref` functions are added. - -------------------------------------------------------------------- -Tue Apr 7 16:55:39 UTC 2015 - peter.trommler@ohm-hochschule.de - -- update to 0.3.9 -- drop include-lua_neutralize_longjmp.patch -* fixed upstream - -------------------------------------------------------------------- -Wed Mar 26 15:48:38 UTC 2014 - peter.trommler@ohm-hochschule.de - -- fix license tag -* license file contradicts license tag in cabal file - -------------------------------------------------------------------- -Fri Nov 1 15:35:25 UTC 2013 - sbahling@suse.com - -- Proper lua-devel BuildRequires for SLE_11 - -------------------------------------------------------------------- -Mon Oct 21 20:44:15 UTC 2013 - sbahling@suse.com - -- include-lua_neutralize_longjmp.patch: - Include custom lua_neutralize_longjmp function when compiling - using system lua libraries. - -------------------------------------------------------------------- -Mon Oct 21 14:39:23 UTC 2013 - sbahling@suse.com - -- Use lua51. Pandoc needs 5.1 API. - -------------------------------------------------------------------- -Fri Oct 18 17:24:24 UTC 2013 - peter.trommler@ohm-hochschule.de - -- use system provided lua library - -------------------------------------------------------------------- -Sun Oct 6 17:38:11 UTC 2013 - sbahling@suse.com - -- Intial package - version 0.3.7 - From e3f5480c4624f09705cb67d3b840f6624bca8a7557eda7293a28314a43e0ebe6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 13 Apr 2018 13:44:16 +0000 Subject: [PATCH 05/10] osc copypac from project:devel:languages:haskell:lts:11 package:ghc-hslua revision:5, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=30 --- ghc-hslua.changes | 85 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/ghc-hslua.changes b/ghc-hslua.changes index 2af9bcc..07988ef 100644 --- a/ghc-hslua.changes +++ b/ghc-hslua.changes @@ -1,6 +1,89 @@ ------------------------------------------------------------------- -Wed Mar 14 16:55:46 UTC 2018 - psimons@suse.com +Thu Apr 12 08:32:16 UTC 2018 - psimons@suse.com - Update hslua to version 0.9.5.1. A more detailed change log is not available. +------------------------------------------------------------------- +Thu Aug 17 09:35:36 UTC 2017 - dimstar@opensuse.org + +- Fix build with the new lua package layout by specifying + --extra-include-dirs based on lua.pc. + +------------------------------------------------------------------- +Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +------------------------------------------------------------------- +Sun Jul 10 17:22:35 UTC 2016 - psimons@suse.com + +- Update to version 0.4.1 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Sun Sep 13 12:46:14 UTC 2015 - mimi.vx@gmail.com + +- update to 0.4.1 +* Bugfix: tolist wasn't popping elements of the list from stack. + +------------------------------------------------------------------- +Fri Aug 7 07:36:15 UTC 2015 - mimi.vx@gmail.com + +- update to 0.4.0 +* pushstring and tostring now uses ByteString instead of [Char]. +* StackValue [Char] instance is removed, StackValue ByteString is added. +* StackValue a => StackValue [a] instance is added. It pushes a Lua array to the stack. pushlist, + islist and tolist functions are added. +* Type errors in Haskell functions now propagated differently. See the Scripting.Lua + documentation for detailed explanation. This should fix segfaults reported several times. +* lua_error function is removed, it's never safe to call in Haskell. +* Pkgconf-based setup removed. Cabal is now using extra-libraries to link with Lua. +* luajit flag is added to link hslua with LuaJIT. + +------------------------------------------------------------------- +Tue Apr 21 11:57:18 UTC 2015 - mimi.vx@gmail.com + +- update to 0.3.13 +* `pushrawhsfunction` and `registerrawhsfunction` functions are added. +* `luaL_ref` and `luaL_unref` functions are added. + +------------------------------------------------------------------- +Tue Apr 7 16:55:39 UTC 2015 - peter.trommler@ohm-hochschule.de + +- update to 0.3.9 +- drop include-lua_neutralize_longjmp.patch +* fixed upstream + +------------------------------------------------------------------- +Wed Mar 26 15:48:38 UTC 2014 - peter.trommler@ohm-hochschule.de + +- fix license tag +* license file contradicts license tag in cabal file + +------------------------------------------------------------------- +Fri Nov 1 15:35:25 UTC 2013 - sbahling@suse.com + +- Proper lua-devel BuildRequires for SLE_11 + +------------------------------------------------------------------- +Mon Oct 21 20:44:15 UTC 2013 - sbahling@suse.com + +- include-lua_neutralize_longjmp.patch: + Include custom lua_neutralize_longjmp function when compiling + using system lua libraries. + +------------------------------------------------------------------- +Mon Oct 21 14:39:23 UTC 2013 - sbahling@suse.com + +- Use lua51. Pandoc needs 5.1 API. + +------------------------------------------------------------------- +Fri Oct 18 17:24:24 UTC 2013 - peter.trommler@ohm-hochschule.de + +- use system provided lua library + +------------------------------------------------------------------- +Sun Oct 6 17:38:11 UTC 2013 - sbahling@suse.com + +- Intial package - version 0.3.7 + From cf95c27ca8be931729773e229de68770598977b67c64b27a5a8e86a4f9baed3d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 26 Apr 2018 07:26:58 +0000 Subject: [PATCH 06/10] osc copypac from project:devel:languages:haskell:lts:11 package:ghc-hslua revision:6, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=31 --- ghc-hslua.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc-hslua.spec b/ghc-hslua.spec index 435fe90..e6353f7 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -84,7 +84,7 @@ This package provides the Haskell %{pkg_name} library development files. %ghc_pkg_recache %files -f %{name}.files -%doc COPYRIGHT +%license COPYRIGHT %files devel -f %{name}-devel.files %doc CHANGELOG.md README.md From cb5f64355a5784933c1a9b1042301d9a800a0a8b41b5b3ada47483d98b836e4a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 14 May 2018 13:17:06 +0000 Subject: [PATCH 07/10] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-hslua revision:1, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=32 --- ghc-hslua.changes | 89 -------------------------------------------- ghc-hslua.spec | 3 +- hslua-0.9.5.1.tar.gz | 3 -- hslua-0.9.5.2.tar.gz | 3 ++ 4 files changed, 4 insertions(+), 94 deletions(-) delete mode 100644 ghc-hslua.changes delete mode 100644 hslua-0.9.5.1.tar.gz create mode 100644 hslua-0.9.5.2.tar.gz diff --git a/ghc-hslua.changes b/ghc-hslua.changes deleted file mode 100644 index 07988ef..0000000 --- a/ghc-hslua.changes +++ /dev/null @@ -1,89 +0,0 @@ -------------------------------------------------------------------- -Thu Apr 12 08:32:16 UTC 2018 - psimons@suse.com - -- Update hslua to version 0.9.5.1. - A more detailed change log is not available. - -------------------------------------------------------------------- -Thu Aug 17 09:35:36 UTC 2017 - dimstar@opensuse.org - -- Fix build with the new lua package layout by specifying - --extra-include-dirs based on lua.pc. - -------------------------------------------------------------------- -Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com - -- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. - -------------------------------------------------------------------- -Sun Jul 10 17:22:35 UTC 2016 - psimons@suse.com - -- Update to version 0.4.1 revision 0 with cabal2obs. - -------------------------------------------------------------------- -Sun Sep 13 12:46:14 UTC 2015 - mimi.vx@gmail.com - -- update to 0.4.1 -* Bugfix: tolist wasn't popping elements of the list from stack. - -------------------------------------------------------------------- -Fri Aug 7 07:36:15 UTC 2015 - mimi.vx@gmail.com - -- update to 0.4.0 -* pushstring and tostring now uses ByteString instead of [Char]. -* StackValue [Char] instance is removed, StackValue ByteString is added. -* StackValue a => StackValue [a] instance is added. It pushes a Lua array to the stack. pushlist, - islist and tolist functions are added. -* Type errors in Haskell functions now propagated differently. See the Scripting.Lua - documentation for detailed explanation. This should fix segfaults reported several times. -* lua_error function is removed, it's never safe to call in Haskell. -* Pkgconf-based setup removed. Cabal is now using extra-libraries to link with Lua. -* luajit flag is added to link hslua with LuaJIT. - -------------------------------------------------------------------- -Tue Apr 21 11:57:18 UTC 2015 - mimi.vx@gmail.com - -- update to 0.3.13 -* `pushrawhsfunction` and `registerrawhsfunction` functions are added. -* `luaL_ref` and `luaL_unref` functions are added. - -------------------------------------------------------------------- -Tue Apr 7 16:55:39 UTC 2015 - peter.trommler@ohm-hochschule.de - -- update to 0.3.9 -- drop include-lua_neutralize_longjmp.patch -* fixed upstream - -------------------------------------------------------------------- -Wed Mar 26 15:48:38 UTC 2014 - peter.trommler@ohm-hochschule.de - -- fix license tag -* license file contradicts license tag in cabal file - -------------------------------------------------------------------- -Fri Nov 1 15:35:25 UTC 2013 - sbahling@suse.com - -- Proper lua-devel BuildRequires for SLE_11 - -------------------------------------------------------------------- -Mon Oct 21 20:44:15 UTC 2013 - sbahling@suse.com - -- include-lua_neutralize_longjmp.patch: - Include custom lua_neutralize_longjmp function when compiling - using system lua libraries. - -------------------------------------------------------------------- -Mon Oct 21 14:39:23 UTC 2013 - sbahling@suse.com - -- Use lua51. Pandoc needs 5.1 API. - -------------------------------------------------------------------- -Fri Oct 18 17:24:24 UTC 2013 - peter.trommler@ohm-hochschule.de - -- use system provided lua library - -------------------------------------------------------------------- -Sun Oct 6 17:38:11 UTC 2013 - sbahling@suse.com - -- Intial package - version 0.3.7 - diff --git a/ghc-hslua.spec b/ghc-hslua.spec index e6353f7..89cb3f7 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -19,7 +19,7 @@ %global pkg_name hslua %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.9.5.1 +Version: 0.9.5.2 Release: 0 Summary: A Lua language interpreter embedding in Haskell License: MIT @@ -68,7 +68,6 @@ This package provides the Haskell %{pkg_name} library development files. %setup -q -n %{pkg_name}-%{version} %build -%define cabal_configure_options -f-system-lua %ghc_lib_build %install diff --git a/hslua-0.9.5.1.tar.gz b/hslua-0.9.5.1.tar.gz deleted file mode 100644 index cfd9db9..0000000 --- a/hslua-0.9.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:681ffb1775e948143c0dd4be3086259f2eda8a9f7b09ce94016150c57e9d74d0 -size 228252 diff --git a/hslua-0.9.5.2.tar.gz b/hslua-0.9.5.2.tar.gz new file mode 100644 index 0000000..b3520c5 --- /dev/null +++ b/hslua-0.9.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e4d26f8a76cbfb219851f33d31417c4a3c8f193123367a0749f047103d8bbe5 +size 228293 From 7e1a52e132c7ad4a2965cc6fd4940cab5551863a4e53d17914b20ccfce0592fd Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 14 May 2018 15:20:34 +0000 Subject: [PATCH 08/10] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-hslua revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=33 --- ghc-hslua.changes | 83 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 ghc-hslua.changes diff --git a/ghc-hslua.changes b/ghc-hslua.changes new file mode 100644 index 0000000..0473ca8 --- /dev/null +++ b/ghc-hslua.changes @@ -0,0 +1,83 @@ +------------------------------------------------------------------- +Thu Aug 17 09:35:36 UTC 2017 - dimstar@opensuse.org + +- Fix build with the new lua package layout by specifying + --extra-include-dirs based on lua.pc. + +------------------------------------------------------------------- +Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +------------------------------------------------------------------- +Sun Jul 10 17:22:35 UTC 2016 - psimons@suse.com + +- Update to version 0.4.1 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Sun Sep 13 12:46:14 UTC 2015 - mimi.vx@gmail.com + +- update to 0.4.1 +* Bugfix: tolist wasn't popping elements of the list from stack. + +------------------------------------------------------------------- +Fri Aug 7 07:36:15 UTC 2015 - mimi.vx@gmail.com + +- update to 0.4.0 +* pushstring and tostring now uses ByteString instead of [Char]. +* StackValue [Char] instance is removed, StackValue ByteString is added. +* StackValue a => StackValue [a] instance is added. It pushes a Lua array to the stack. pushlist, + islist and tolist functions are added. +* Type errors in Haskell functions now propagated differently. See the Scripting.Lua + documentation for detailed explanation. This should fix segfaults reported several times. +* lua_error function is removed, it's never safe to call in Haskell. +* Pkgconf-based setup removed. Cabal is now using extra-libraries to link with Lua. +* luajit flag is added to link hslua with LuaJIT. + +------------------------------------------------------------------- +Tue Apr 21 11:57:18 UTC 2015 - mimi.vx@gmail.com + +- update to 0.3.13 +* `pushrawhsfunction` and `registerrawhsfunction` functions are added. +* `luaL_ref` and `luaL_unref` functions are added. + +------------------------------------------------------------------- +Tue Apr 7 16:55:39 UTC 2015 - peter.trommler@ohm-hochschule.de + +- update to 0.3.9 +- drop include-lua_neutralize_longjmp.patch +* fixed upstream + +------------------------------------------------------------------- +Wed Mar 26 15:48:38 UTC 2014 - peter.trommler@ohm-hochschule.de + +- fix license tag +* license file contradicts license tag in cabal file + +------------------------------------------------------------------- +Fri Nov 1 15:35:25 UTC 2013 - sbahling@suse.com + +- Proper lua-devel BuildRequires for SLE_11 + +------------------------------------------------------------------- +Mon Oct 21 20:44:15 UTC 2013 - sbahling@suse.com + +- include-lua_neutralize_longjmp.patch: + Include custom lua_neutralize_longjmp function when compiling + using system lua libraries. + +------------------------------------------------------------------- +Mon Oct 21 14:39:23 UTC 2013 - sbahling@suse.com + +- Use lua51. Pandoc needs 5.1 API. + +------------------------------------------------------------------- +Fri Oct 18 17:24:24 UTC 2013 - peter.trommler@ohm-hochschule.de + +- use system provided lua library + +------------------------------------------------------------------- +Sun Oct 6 17:38:11 UTC 2013 - sbahling@suse.com + +- Intial package - version 0.3.7 + From 93b07ebaebd60f3eba8c08f4958e9fe8a3cfd308471c445b4285b245d98379d7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 15 May 2018 18:23:57 +0000 Subject: [PATCH 09/10] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-hslua revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=34 --- ghc-hslua.changes | 143 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) diff --git a/ghc-hslua.changes b/ghc-hslua.changes index 0473ca8..d41f312 100644 --- a/ghc-hslua.changes +++ b/ghc-hslua.changes @@ -1,3 +1,146 @@ +------------------------------------------------------------------- +Mon May 14 17:02:11 UTC 2018 - psimons@suse.com + +- Update hslua to version 0.9.5.2. + - Provide Optional as a replacement for OrNil. Exports of the latter + have been fixed. + - Provide utility function `raiseError`: Its argument will be thrown as + an error in Lua. + - Add `modifyLuaError`: The function lives in Foreign.Lua.Error and + allows to alter error messages. This is most useful for amending + errors with additional information. + - Fixed a bug in `toList` which left a element on the stack if + deserializing that element lead to an error. This also affected the + FromLuaStack instance for lists. + - Fixed a bug in `pairsFromTable` which left a key-value pair on the + stack if either of them could not be read into the expected type. This + also affected the FromLuaStack instance for Map. + - Make Lua an instance of MonadMask: MonadMask from Control.Monad.Catch + allows to mask asynchronous exceptions. This allows to define a + finalizer for Lua operations. + - Add functions and constants to refer to stack indices: The functions + `nthFromBottom`, `nthFromTop` as well as the constants `stackTop` and + `stackBottom` have been introduced. Numeric constants are less clear, + and named constants can aid readability. + - Add type OrNil: This type can be used when dealing with optional + arguments to Lua functions. + - Add function absindex: it converts the acceptable index `idx` into an + equivalent absolute index (that is, one that does not depend on the + stack top). The function calls `lua_absindex` when compiled with Lua + 5.2 or later; for Lua 5.1, it is reimplemented in Haskell. + - Functions in `tasty` which have been deprecated have been replaced + with non-deprecated alternatives. + - Re-export more FunctionCalling helpers in `Foreign.Lua`: The typeclass + `ToHaskellFunction` and the helper function `toHaskellFunction` are + useful when working with functions. Importing them separately from + `Foreign.Lua.FunctionCalling` was an unnecessary burden; they are + therefor now re-exported by the main module. + - Export registry-relatd constants `refnil` and `noref`: The constants + are related to Lua's registry functions (`ref` and `unref`). + - Add helper to convert functions into CFunction: A new helper + `wrapHaskellFunction` is provided. It expects a + HaskellImportedFunction userdata (as produced by + `pushHaskellFunction`) on top of the stack and replaces it with a C + function. The new function converts error values generated with + `lerror` into Lua errors, i.e. it calls `lua_error`. + - Add utility function `setglobal'`: It works like `setglobal`, but + works with packages and nested tables (dot-notation only). + - Add cabal flag 'export-dynamic': Default behavior is to include all symbols in + the dynamic symbol table, as this enables users to load dynamic lua libraries. + However, it is sometimes desirable to disable, e.g., when compiling a fully + static binary. See jgm/pandoc#3986. + - Increase user-friendlyness of error messages: The error message returned by + `toHaskellFunction` hinted at the fact that the failing function is a Haskell + function. This is mostly unnecessary information and might have confused + users. + - Added cabal flag to allow fully safe garbage collection: Lua garbage + collection can occur in most of the API functions, even in those usually not + calling back into haskell and hence marked as optimizable. The effect of this + is that finalizers which call Haskell functions will cause the program to + hang. A new flag `allow-unsafe-gc` is introduced and enabled by default. + Disabling this flag will mark more C API functions as potentially calling back + into Haskell. This has a serious performance impact. + - `FromLuaStack` and `ToLuaStack` instances for lazy ByteStrings are added. + - None-string error messages are handled properly: Lua allows error messages to + be of any type, but the haskell error handlers expected string values. Tables, + booleans, and other non-string values are now handled as well and converted to + strings. + - Use newtype definitions instead of type aliases for LuaNumber and LuaInteger. + This makes it easier to ensure the correct numeric instances in situations + where Lua might have been compiled with 32-bit numbers. + - Instances of `FromLuaStack` and `ToLuaStack` for `Int` are removed. The + correctness of these instances cannot be guaranteed if Lua was compiled with a + non-standard integer type. + - The flag `lua_32bits` was added to allow users to compile Lua for 32-bit + systems. + - When reading a list, throw an error if the lua value isn't a table instead of + silently returning an empty list. + - Tuples from pairs to octuples have been made instances of `FromLuaStack` and + `ToLuaStack`. + - New functions `dostring` and `dofile` are provided to load and run strings and + files in a single step. + - `LuaStatus` was renamed to `Status`, the *Lua* prefix was removed from its + type constructors. + - The constructor `ErrFile` was added to `Status`. It is returned by `loadfile` + if the file cannot be read. + - Remove unused FFI bindings and unused types, including all functions unsafe to + use from within Haskell and the library functions added with 0.5.0. Users with + special requirements should define their own wrappers and raw bindings. + - The module *Foreign.Lua.Api.SafeBindings* was merge into + *Foreign.Lua.Api.RawBindings*. + - FFI bindings are changed to use newtypes where sensible, most notably + `StackIndex`, `NumArgs`, and `NumResults`, but also the newly introduced + newtypes `StatusCode`, `TypeCode`, and `LuaBool`. + - Add functions `tointegerx` and `tonumberx` which can be used to get and check + values from the stack in a single step. + - The signature of `concat` was changed from `Int -> Lua ()` to + `NumArgs -> Lua ()`. + - The signature of `loadfile` was changed from `String -> Lua Int` to + `String -> Lua Status`. + - The type `LTYPE` was renamed to `Type`, its constructors were renamed to + follow the pattern `Type`. `LuaRelation` was renamed to + `RelationalOperator`, the *Lua* prefix was removed from its constructors. + - Add function `tolist` to allow getting a generic list from the stack without + having to worry about the overlapping instance with `[Char]`. + * Supported Lua Versions now include Lua 5.2 and Lua 5.3. LuaJIT and Lua 5.1 + remain supported as well. + * Flag `use-pkgconfig` was added to allow discovery of library and include paths + via pkg-config. Setting a specific Lua version flag now implies `system-lua`. + (Sean Proctor) + * The module was renamed from `Scripting.Lua` to `Foreign.Lua`. The code is now + split over multiple sub-modules. Files processed with hsc2hs are restricted to + Foreign.Lua.Api. + * A `Lua` monad (reader monad over LuaState) is introduced. Functions which took + a LuaState as their first argument are changed into monadic functions within + that monad. + * Error handling has been redesigned completely. A new LuaException was + introduced and is thrown in unexpected situations. Errors in lua which are + leading to a `longjmp` are now caught with the help of additional C wrapper + functions. Those no longer lead to uncontrolled program termination but are + converted into a LuaException. + * `peek` no longer returns `Maybe a` but just `a`. A LuaException is thrown if + an error occurs (i.e. in situtations where Nothing would have been returned + previously). + * The `StackValue` typeclass has been split into `FromLuaStack` and + `ToLuaStack`. Instances not satisfying the law `x == push x *> peek (-1)` have + been dropped. + * Documentation of API functions was improved. Most docstrings have been copied + from the official Lua manual, enriched with proper markup and links, and + changed to properly describe hslua specifics when necessary. + * Example programs have been moved to a separate repository. + * Unused files were removed. (Sean Proctor) + * New raw functions for `luaopen_base`, `luaopen_package`, `luaopen_string`, + `luaopen_table`, `luaopen_math`, `luaopen_io`, `luaopen_os`, `luaopen_debug` + and their high-level wrappers (with names `openbase`, `opentable` etc.) + implemented. + * Remove custom versions of `loadfile` and `loadstring`. + * Drop support for GHC versions < 7.8, avoid compiler warnings. + * Ensure no symbols are stripped when linking the bundled lua interpreter. + * Simplify `tostring` function definition. (Sean Proctor) + * Explicitly deprecate `strlen`. (Sean Proctor) + * Add links to lua documentation for functions wrapping the official lua C API. + (Sean Proctor). + ------------------------------------------------------------------- Thu Aug 17 09:35:36 UTC 2017 - dimstar@opensuse.org From 2d5f8cf9244d8b11b81b1bae97d5cc0db84a2113c742e093f9d4c92e67269ae6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 15 May 2018 18:42:31 +0000 Subject: [PATCH 10/10] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-hslua revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=35 --- ghc-hslua.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/ghc-hslua.spec b/ghc-hslua.spec index 89cb3f7..d91b2a0 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -68,6 +68,7 @@ This package provides the Haskell %{pkg_name} library development files. %setup -q -n %{pkg_name}-%{version} %build +%define cabal_configure_options -f-system-lua %ghc_lib_build %install