From affc6c0b596ff85e94156077e1f18e1ca9f131ca Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 29 Jul 2018 00:53:28 +0900 Subject: [PATCH] revise .cabal --- ghc-hslua-module-text.spec | 9 ++++++-- hslua-module-text-0.1.2.1.cabal | 41 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 hslua-module-text-0.1.2.1.cabal diff --git a/ghc-hslua-module-text.spec b/ghc-hslua-module-text.spec index c43315d..d20cb55 100644 --- a/ghc-hslua-module-text.spec +++ b/ghc-hslua-module-text.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.3 +# generated by cabal-rpm-0.12.5 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name hslua-module-text @@ -8,12 +8,13 @@ Name: ghc-%{pkg_name} Version: 0.1.2.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Lua module for text License: MIT Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros @@ -48,6 +49,7 @@ files. %prep %setup -q -n %{pkgver} +cp -p %{SOURCE1} %{pkg_name}.cabal %build @@ -79,6 +81,9 @@ files. %changelog +* Sat Jul 28 2018 Jens Petersen - 0.1.2.1-6 +- revise .cabal + * Fri Jul 13 2018 Fedora Release Engineering - 0.1.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/hslua-module-text-0.1.2.1.cabal b/hslua-module-text-0.1.2.1.cabal new file mode 100644 index 0000000..a4e2ff2 --- /dev/null +++ b/hslua-module-text-0.1.2.1.cabal @@ -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