|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
# generated by cabal-rpm-2.1.0 --subpackage
|
|
|
|
|
# generated by cabal-rpm-2.1.2 --subpackage
|
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
|
|
|
|
|
|
|
|
|
%bcond_with system_lua
|
|
|
|
@ -6,24 +6,36 @@
|
|
|
|
|
%global pkg_name hslua
|
|
|
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%global hsluaaeson hslua-aeson-2.2.1
|
|
|
|
|
%global hsluaclasses hslua-classes-2.2.0
|
|
|
|
|
%global subpkgs %{hsluaaeson} %{hsluaclasses}
|
|
|
|
|
%global hsluacore hslua-core-2.3.1
|
|
|
|
|
%global hsluamarshalling hslua-marshalling-2.3.0
|
|
|
|
|
%global hsluaobjectorientation hslua-objectorientation-2.3.0
|
|
|
|
|
%global hsluapackaging hslua-packaging-2.3.0
|
|
|
|
|
%global lua_hs lua-2.3.1
|
|
|
|
|
%global hsluaaeson hslua-aeson-2.3.0.1
|
|
|
|
|
%global hsluaclasses hslua-classes-2.3.0
|
|
|
|
|
%global hsluatyping hslua-typing-0.1.0
|
|
|
|
|
%global subpkgs %{lua_hs} %{hsluacore} %{hsluamarshalling} %{hsluatyping} %{hsluaobjectorientation} %{hsluapackaging} %{hsluaaeson} %{hsluaclasses}
|
|
|
|
|
|
|
|
|
|
# testsuite missing deps: hslua-aeson hslua-classes lua-arbitrary quickcheck-instances tasty-hslua
|
|
|
|
|
# testsuite missing deps: lua-arbitrary quickcheck-instances tasty-hslua
|
|
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
|
Version: 2.2.1
|
|
|
|
|
Version: 2.3.0
|
|
|
|
|
# can only be reset when all subpkgs bumped
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: Bindings to Lua, an embeddable scripting language
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
|
# Begin cabal-rpm sources:
|
|
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
|
|
Source1: https://hackage.haskell.org/package/%{hsluaaeson}/%{hsluaaeson}.tar.gz
|
|
|
|
|
Source2: https://hackage.haskell.org/package/%{hsluaclasses}/%{hsluaclasses}.tar.gz
|
|
|
|
|
Source1: https://hackage.haskell.org/package/%{hsluacore}/%{hsluacore}.tar.gz
|
|
|
|
|
Source2: https://hackage.haskell.org/package/%{hsluamarshalling}/%{hsluamarshalling}.tar.gz
|
|
|
|
|
Source3: https://hackage.haskell.org/package/%{hsluaobjectorientation}/%{hsluaobjectorientation}.tar.gz
|
|
|
|
|
Source4: https://hackage.haskell.org/package/%{hsluapackaging}/%{hsluapackaging}.tar.gz
|
|
|
|
|
Source5: https://hackage.haskell.org/package/%{lua_hs}/%{lua_hs}.tar.gz
|
|
|
|
|
Source6: https://hackage.haskell.org/package/%{hsluaaeson}/%{hsluaaeson}.tar.gz
|
|
|
|
|
Source7: https://hackage.haskell.org/package/%{hsluaclasses}/%{hsluaclasses}.tar.gz
|
|
|
|
|
Source8: https://hackage.haskell.org/package/%{hsluatyping}/%{hsluatyping}.tar.gz
|
|
|
|
|
# End cabal-rpm sources
|
|
|
|
|
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
@ -35,10 +47,11 @@ BuildRequires: ghc-containers-devel
|
|
|
|
|
BuildRequires: ghc-exceptions-devel
|
|
|
|
|
#BuildRequires: ghc-hslua-aeson-devel
|
|
|
|
|
#BuildRequires: ghc-hslua-classes-devel
|
|
|
|
|
BuildRequires: ghc-hslua-core-devel
|
|
|
|
|
BuildRequires: ghc-hslua-marshalling-devel
|
|
|
|
|
BuildRequires: ghc-hslua-objectorientation-devel
|
|
|
|
|
BuildRequires: ghc-hslua-packaging-devel
|
|
|
|
|
#BuildRequires: ghc-hslua-core-devel
|
|
|
|
|
#BuildRequires: ghc-hslua-marshalling-devel
|
|
|
|
|
#BuildRequires: ghc-hslua-objectorientation-devel
|
|
|
|
|
#BuildRequires: ghc-hslua-packaging-devel
|
|
|
|
|
#BuildRequires: ghc-hslua-typing-devel
|
|
|
|
|
BuildRequires: ghc-mtl-devel
|
|
|
|
|
BuildRequires: ghc-text-devel
|
|
|
|
|
%if %{with ghc_prof}
|
|
|
|
@ -48,10 +61,11 @@ BuildRequires: ghc-containers-prof
|
|
|
|
|
BuildRequires: ghc-exceptions-prof
|
|
|
|
|
#BuildRequires: ghc-hslua-aeson-prof
|
|
|
|
|
#BuildRequires: ghc-hslua-classes-prof
|
|
|
|
|
BuildRequires: ghc-hslua-core-prof
|
|
|
|
|
BuildRequires: ghc-hslua-marshalling-prof
|
|
|
|
|
BuildRequires: ghc-hslua-objectorientation-prof
|
|
|
|
|
BuildRequires: ghc-hslua-packaging-prof
|
|
|
|
|
#BuildRequires: ghc-hslua-core-prof
|
|
|
|
|
#BuildRequires: ghc-hslua-marshalling-prof
|
|
|
|
|
#BuildRequires: ghc-hslua-objectorientation-prof
|
|
|
|
|
#BuildRequires: ghc-hslua-packaging-prof
|
|
|
|
|
#BuildRequires: ghc-hslua-typing-prof
|
|
|
|
|
BuildRequires: ghc-mtl-prof
|
|
|
|
|
BuildRequires: ghc-text-prof
|
|
|
|
|
%endif
|
|
|
|
@ -72,13 +86,16 @@ BuildRequires: ghc-vector-prof
|
|
|
|
|
%if %{with system_lua}
|
|
|
|
|
BuildRequires: lua-devel
|
|
|
|
|
%else
|
|
|
|
|
Provides: bundled(lua) = 5.3.6
|
|
|
|
|
Provides: bundled(lua) = 5.4.4
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
HsLua provides bindings, wrappers, types, and helper functions to bridge
|
|
|
|
|
Haskell and Lua.
|
|
|
|
|
|
|
|
|
|
It builds upon the lua package, which allows to bundle a Lua interpreter
|
|
|
|
|
with a Haskell program.
|
|
|
|
|
|
|
|
|
|
Example programs are available in <https://github.com/hslua/hslua-examples>.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
@ -124,8 +141,14 @@ This package provides the Haskell %{pkg_name} profiling library.
|
|
|
|
|
%global main_version %{version}
|
|
|
|
|
|
|
|
|
|
%if %{defined ghclibdir}
|
|
|
|
|
%ghc_lib_subpackage -l MIT %{hsluacore}
|
|
|
|
|
%ghc_lib_subpackage -l MIT %{hsluamarshalling}
|
|
|
|
|
%ghc_lib_subpackage -l MIT %{hsluaobjectorientation}
|
|
|
|
|
%ghc_lib_subpackage -l MIT %{hsluapackaging}
|
|
|
|
|
%ghc_lib_subpackage -l MIT %{lua_hs}
|
|
|
|
|
%ghc_lib_subpackage -l MIT %{hsluaaeson}
|
|
|
|
|
%ghc_lib_subpackage -l MIT %{hsluaclasses}
|
|
|
|
|
%ghc_lib_subpackage -l MIT %{hsluatyping}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global version %{main_version}
|
|
|
|
@ -133,7 +156,7 @@ This package provides the Haskell %{pkg_name} profiling library.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
# Begin cabal-rpm setup:
|
|
|
|
|
%setup -q -n %{pkgver} -a1 -a2
|
|
|
|
|
%setup -q -n %{pkgver} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8
|
|
|
|
|
# End cabal-rpm setup
|
|
|
|
|
%if %{with system_lua}
|
|
|
|
|
cabal-tweak-flag system-lua True
|
|
|
|
@ -177,6 +200,18 @@ rm -r cbits/lua-5.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jul 23 2023 Jens Petersen <petersen@redhat.com> - 2.3.0-3
|
|
|
|
|
- https://hackage.haskell.org/package/hslua-2.3.0/changelog
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 26 2023 Jens Petersen <petersen@redhat.com> - 2.2.1-1
|
|
|
|
|
- https://hackage.haskell.org/package/hslua-2.2.1/changelog
|
|
|
|
|
- refresh to cabal-rpm-2.1.0 with SPDX migration
|
|
|
|
|