2013-10-30 23:31:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package ghc-hslua
|
|
|
|
#
|
2016-07-17 01:26:32 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
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}
|
2015-09-13 14:48:19 +02:00
|
|
|
Version: 0.4.1
|
2013-10-30 23:32:43 +01:00
|
|
|
Release: 0
|
2013-10-30 23:31:22 +01:00
|
|
|
Summary: A Lua language interpreter embedding in Haskell
|
2015-05-02 12:02:18 +02:00
|
|
|
License: MIT
|
2016-10-06 20:15:04 +02:00
|
|
|
Group: Development/Languages/Other
|
2016-07-17 01:26:32 +02:00
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
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
|
|
|
|
BuildRequires: ghc-rpm-macros
|
2016-10-06 20:15:04 +02:00
|
|
|
BuildRequires: lua51-devel
|
2016-07-17 01:26:32 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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
|
|
|
|
%endif
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Scripting.Lua module is a wrapper of Lua language interpreter as described
|
2016-07-17 01:26:32 +02:00
|
|
|
in [lua.org](http://www.lua.org/).
|
|
|
|
|
|
|
|
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.
|
2013-10-30 23:31:22 +01:00
|
|
|
|
2016-07-17 01:26:32 +02:00
|
|
|
[Example programs](https://github.com/osa1/hslua/tree/master/examples).
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Group: Development/Libraries/Other
|
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}
|
2016-10-06 20:15:04 +02:00
|
|
|
Requires: lua51-devel
|
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
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2015-04-07 20:56:54 +02:00
|
|
|
|
2013-10-30 23:31:22 +01:00
|
|
|
%build
|
2016-07-17 01:26:32 +02:00
|
|
|
%define cabal_configure_options -fsystem-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
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYRIGHT
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
%defattr(-,root,root,-)
|
2016-07-17 01:26:32 +02:00
|
|
|
%doc CHANGELOG.md README.md examples
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%changelog
|