2013-10-30 23:31:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package ghc-hslua
|
|
|
|
#
|
2020-09-04 17:10:40 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-10-30 23:31:22 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-18 11:49:41 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-30 23:31:22 +01:00
|
|
|
#
|
|
|
|
|
2015-05-02 12:02:18 +02:00
|
|
|
|
2013-10-30 23:31:22 +01:00
|
|
|
%global pkg_name hslua
|
2016-07-17 01:26:32 +02:00
|
|
|
%bcond_with tests
|
|
|
|
Name: ghc-%{pkg_name}
|
2020-10-20 11:15:31 +02:00
|
|
|
Version: 1.3.0
|
2013-10-30 23:32:43 +01:00
|
|
|
Release: 0
|
2018-10-18 11:49:41 +02:00
|
|
|
Summary: Bindings to Lua, an embeddable scripting language
|
2015-05-02 12:02:18 +02:00
|
|
|
License: MIT
|
2017-08-17 14:47:38 +02:00
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2016-07-17 01:26:32 +02:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
2013-10-30 23:31:22 +01:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2016-07-17 01:26:32 +02:00
|
|
|
BuildRequires: ghc-bytestring-devel
|
2017-12-21 20:52:25 +01:00
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-exceptions-devel
|
|
|
|
BuildRequires: ghc-mtl-devel
|
2016-07-17 01:26:32 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2017-12-21 20:52:25 +01:00
|
|
|
BuildRequires: ghc-text-devel
|
2020-12-18 13:52:14 +01:00
|
|
|
# GHC dont support i586
|
|
|
|
%ifarch %{ix86}
|
|
|
|
ExclusiveArch: i586 i686
|
|
|
|
ExclusiveArch: i686
|
|
|
|
%{expand:%%global optflags %(echo "%{optflags}"|sed -e s/i586/i686/) -march=i686 -mtune=generic}
|
|
|
|
%endif
|
2016-07-17 01:26:32 +02:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
BuildRequires: ghc-quickcheck-instances-devel
|
2017-12-21 20:52:25 +01:00
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
BuildRequires: ghc-tasty-hunit-devel
|
|
|
|
BuildRequires: ghc-tasty-quickcheck-devel
|
2016-07-17 01:26:32 +02:00
|
|
|
%endif
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%description
|
2018-10-18 11:49:41 +02:00
|
|
|
HsLua provides bindings, wrappers, types, and helper functions to bridge
|
|
|
|
Haskell and <https://www.lua.org/ Lua>.
|
2016-07-17 01:26:32 +02:00
|
|
|
|
2020-10-20 11:15:31 +02:00
|
|
|
This package contains a full Lua interpreter version 5.3.6. If you want to link
|
2017-12-21 20:52:25 +01:00
|
|
|
it with a system-wide Lua installation, use the 'system-lua' flag.
|
2013-10-30 23:31:22 +01:00
|
|
|
|
2017-12-21 20:52:25 +01:00
|
|
|
<https://github.com/hslua/hslua-examples Example programs> are available in a
|
|
|
|
separate repository.
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
2016-07-17 01:26:32 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-10-30 23:32:43 +01:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
2015-04-07 20:56:54 +02:00
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
%prep
|
2020-09-04 17:10:40 +02:00
|
|
|
%autosetup -n %{pkg_name}-%{version}
|
2015-04-07 20:56:54 +02:00
|
|
|
|
2013-10-30 23:31:22 +01:00
|
|
|
%build
|
2018-05-15 20:42:31 +02:00
|
|
|
%define cabal_configure_options -f-system-lua
|
2013-10-30 23:31:22 +01:00
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
2016-07-17 01:26:32 +02:00
|
|
|
%check
|
2016-10-06 20:15:04 +02:00
|
|
|
%cabal_test
|
2016-07-17 01:26:32 +02:00
|
|
|
|
2013-10-30 23:31:22 +01:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2018-10-18 11:49:41 +02:00
|
|
|
%license LICENSE
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2017-12-21 20:52:25 +01:00
|
|
|
%doc CHANGELOG.md README.md
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%changelog
|