forked from pool/ghc-hslua
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
This commit is contained in:
commit
a733fdaaf6
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
_service
Normal file
3
_service
Normal file
@ -0,0 +1,3 @@
|
||||
<services>
|
||||
<service name="download_files" mode="localonly" />
|
||||
</services>
|
22
ghc-hslua.changes
Normal file
22
ghc-hslua.changes
Normal file
@ -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
|
||||
|
90
ghc-hslua.spec
Normal file
90
ghc-hslua.spec
Normal file
@ -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
|
3
hslua-0.3.7.tar.gz
Normal file
3
hslua-0.3.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:58ecc765213577ac1ccac0a1970d76cf1ce26b3588fa30ee6ebbc5d4cf12bae0
|
||||
size 127655
|
16
include-lua_neutralize_longjmp.patch
Normal file
16
include-lua_neutralize_longjmp.patch
Normal file
@ -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,
|
Loading…
Reference in New Issue
Block a user