osc copypac from project:devel:languages:haskell:lts:10 package:ghc-hslua-module-text revision:4, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua-module-text?expand=0&rev=2
This commit is contained in:
Peter Simons 2018-03-13 02:19:49 +00:00 committed by Git OBS Bridge
parent 77f294dd5a
commit dffaaaa678
2 changed files with 43 additions and 0 deletions

View File

@ -26,6 +26,7 @@ License: MIT
Group: Development/Libraries/Haskell
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-hslua-devel
BuildRequires: ghc-rpm-macros
@ -52,6 +53,7 @@ files.
%prep
%setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build

41
hslua-module-text.cabal Normal file
View File

@ -0,0 +1,41 @@
name: hslua-module-text
version: 0.1.2.1
x-revision: 1
synopsis: Lua module for text
description: UTF-8 aware subset of Lua's `string` module.
homepage: https://github.com/hslua/hslua-module-test
license: MIT
license-file: LICENSE
author: Albert Krewinkel
maintainer: albert+hslua@zeitkraut.de
copyright: © 2017 Albert Krewinkel
category: Foreign
build-type: Simple
extra-source-files: ChangeLog.md
test/hstext-test.lua
cabal-version: >=1.10
source-repository head
type: git
location: https://github.com/hslua/hslua-module-text.git
library
exposed-modules: Foreign.Lua.Module.Text
build-depends: base >= 4.7 && < 5
, hslua >= 0.9 && < 0.10
, text >= 1 && < 1.3
hs-source-dirs: src
default-language: Haskell2010
test-suite test-hslua
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: test-hslua-module-text.hs
hs-source-dirs: test
ghc-options: -Wall -threaded
build-depends: base
, hslua
, hslua-module-text
, tasty
, tasty-hunit
, text