diff --git a/.gitignore b/.gitignore index 962668b..03c5544 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ utf8-string-0.3.6.tar.gz /utf8-string-0.3.7.tar.gz /utf8-string-0.3.8.tar.gz /utf8-string-1.0.1.1.tar.gz +/utf8-string-1.0.2.tar.gz diff --git a/ghc-utf8-string.spec b/ghc-utf8-string.spec index 4f835c6..bf1a33f 100644 --- a/ghc-utf8-string.spec +++ b/ghc-utf8-string.spec @@ -4,16 +4,17 @@ %global pkg_name utf8-string %global pkgver %{pkg_name}-%{version} +%bcond_without tests + Name: ghc-%{pkg_name} -Version: 1.0.1.1 -Release: 19%{?dist} +Version: 1.0.2 +Release: 1%{?dist} Summary: Support for reading and writing UTF8 Strings License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -21,6 +22,9 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof +%if %{with tests} +BuildRequires: ghc-HUnit-devel +%endif # End cabal-rpm deps %description @@ -66,7 +70,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -82,6 +85,10 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm install +%check +%cabal_test + + %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE @@ -104,6 +111,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Aug 5 2021 Jens Petersen - 1.0.2-1 +- update to 1.0.2 + * Thu Jul 22 2021 Fedora Release Engineering - 1.0.1.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild @@ -265,4 +275,3 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal * Fri May 29 2009 Zachary Oglesby - 0.3.4-1 - initial packaging for Fedora created by cabal2spec - diff --git a/sources b/sources index 3b743ab..73b8cc1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fe24e26bd4b09731af66ef27b18b5177 utf8-string-1.0.1.1.tar.gz +SHA512 (utf8-string-1.0.2.tar.gz) = b20b61e942a77848d12f9105f88790b3f02e3e2835b87e0ce1900b5ea1e97c4b055003603e435415e7fbbc9586f9c6ca2402f86cf5d2b7b6ced2ddcae3968d24 diff --git a/utf8-string-1.0.1.1.cabal b/utf8-string-1.0.1.1.cabal deleted file mode 100644 index 8dbad05..0000000 --- a/utf8-string-1.0.1.1.cabal +++ /dev/null @@ -1,30 +0,0 @@ -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