commit a733fdaaf64c1b877f2ba0506b14604c761032dfb94ddf9821c5cd82ee8f28b0 Author: Scott Bahling Date: Wed Oct 30 22:31:22 2013 +0000 osc copypac from project:devel:languages:haskell:pandoc package:ghc-hslua revision:5 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..76e23bd --- /dev/null +++ b/_service @@ -0,0 +1,3 @@ + + + diff --git a/ghc-hslua.changes b/ghc-hslua.changes new file mode 100644 index 0000000..7a6ed49 --- /dev/null +++ b/ghc-hslua.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +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 new file mode 100644 index 0000000..50507ae --- /dev/null +++ b/ghc-hslua.spec @@ -0,0 +1,90 @@ +# +# spec file for package ghc-hslua +# +# Copyright (c) 2013 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 +# 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/ +# + +%global pkg_name hslua + +Name: ghc-hslua +Version: 0.3.7 +Release: 1 +Summary: A Lua language interpreter embedding in Haskell +Group: System/Libraries + +License: BSD-3-Clause +Url: http://hackage.haskell.org/package/%{pkg_name} +Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +Patch1: include-lua_neutralize_longjmp.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-mtl-devel +# End cabal-rpm deps +BuildRequires: pkgconfig +BuildRequires: lua51-devel + +%description +The Scripting.Lua module is a wrapper of Lua language interpreter as described +in www.lua.org. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Group: Development/Libraries/Other +Provides: %{name}-static = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +Requires: %{name} = %{version}-%{release} +Requires: lua51-devel + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%prep +%setup -q -n %{pkg_name}-%{version} +%patch1 -p1 + + +%build +%define cabal_configure_options -f system-lua +%ghc_lib_build + + +%install +%ghc_lib_install + + +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache + + +%files -f %{name}.files +%defattr(-,root,root,-) +%doc COPYRIGHT + + +%files devel -f %{name}-devel.files +%defattr(-,root,root,-) + + +%changelog diff --git a/hslua-0.3.7.tar.gz b/hslua-0.3.7.tar.gz new file mode 100644 index 0000000..68e8c1a --- /dev/null +++ b/hslua-0.3.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58ecc765213577ac1ccac0a1970d76cf1ce26b3588fa30ee6ebbc5d4cf12bae0 +size 127655 diff --git a/include-lua_neutralize_longjmp.patch b/include-lua_neutralize_longjmp.patch new file mode 100644 index 0000000..49e054b --- /dev/null +++ b/include-lua_neutralize_longjmp.patch @@ -0,0 +1,16 @@ +Make sure to include the custom lua_neutralize_longjmp function +when using the system lua library. + +diff -Nrup a/hslua.cabal b/hslua.cabal +--- a/hslua.cabal 2013-10-05 13:24:23.000000000 +0200 ++++ b/hslua.cabal 2013-10-21 21:51:56.031113660 +0200 +@@ -30,7 +30,8 @@ Library + Exposed-modules: Scripting.Lua, Scripting.Lua.ConfigFile + Hs-source-dirs: src + if flag(system-lua) +- Pkgconfig-depends: lua ++ Pkgconfig-depends: lua ++ C-sources: src/ntrljmp.c + else + C-sources: src/lapi.c, src/lauxlib.c, src/lbaselib.c, src/lcode.c, + src/ldblib.c, src/ldebug.c, src/ldo.c, src/ldump.c, src/lfunc.c,