From 77af04b7ac7068dafa5882dd591f9a0ed61d255a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 16 Feb 2019 13:13:25 +0800 Subject: [PATCH] use revised .cabal --- ghc-utf8-string.spec | 10 +++++++--- utf8-string-1.0.1.1.cabal | 30 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 utf8-string-1.0.1.1.cabal diff --git a/ghc-utf8-string.spec b/ghc-utf8-string.spec index ae25855..6f85877 100644 --- a/ghc-utf8-string.spec +++ b/ghc-utf8-string.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.1 +# generated by cabal-rpm-0.12.5 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name utf8-string @@ -6,12 +6,13 @@ Name: ghc-%{pkg_name} Version: 1.0.1.1 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Support for reading and writing UTF8 Strings License: BSD 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 @@ -42,7 +43,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkgver} -cabal-tweak-dep-ver base '< 4.9' '< 4.11' +cp -p %{SOURCE1} %{pkg_name}.cabal %build @@ -70,6 +71,9 @@ cabal-tweak-dep-ver base '< 4.9' '< 4.11' %changelog +* Sat Feb 16 2019 Jens Petersen - 1.0.1.1-10 +- use revised .cabal file + * Thu Jan 31 2019 Fedora Release Engineering - 1.0.1.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/utf8-string-1.0.1.1.cabal b/utf8-string-1.0.1.1.cabal new file mode 100644 index 0000000..8dbad05 --- /dev/null +++ b/utf8-string-1.0.1.1.cabal @@ -0,0 +1,30 @@ +Name: utf8-string +Version: 1.0.1.1 +x-revision: 3 +Author: Eric Mertens +Maintainer: emertens@galois.com +License: BSD3 +License-file: LICENSE +Homepage: http://github.com/glguy/utf8-string/ +Synopsis: Support for reading and writing UTF8 Strings +Description: A UTF8 layer for Strings. The utf8-string + package provides operations for encoding UTF8 + strings to Word8 lists and back, and for reading and + writing UTF8 without truncation. +Category: Codec +Build-type: Simple +cabal-version: >= 1.2 +Extra-Source-Files: CHANGELOG.markdown +Tested-With: GHC==7.0.4, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.2 + +library + Ghc-options: -W -O2 + + build-depends: base >= 4.3 && < 5, bytestring >= 0.9 + + Extensions: CPP + Exposed-modules: Codec.Binary.UTF8.String + Codec.Binary.UTF8.Generic + Data.String.UTF8 + Data.ByteString.UTF8 + Data.ByteString.Lazy.UTF8