From ec5a449d7d50c5418b904107978d083a654f89a6 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 8 Jun 2020 00:12:51 +0800 Subject: [PATCH] update to 0.6.1.1 --- .gitignore | 1 + ghc-bencode.spec | 30 ++++++++++++++++++++++-------- sources | 2 +- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index bb3288b..faa2158 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /bencode-0.6.0.0.tar.gz +/bencode-0.6.1.1.tar.gz diff --git a/ghc-bencode.spec b/ghc-bencode.spec index 396ad5d..bc59cd0 100644 --- a/ghc-bencode.spec +++ b/ghc-bencode.spec @@ -4,10 +4,12 @@ %global pkg_name bencode %global pkgver %{pkg_name}-%{version} +%bcond_without tests + Name: ghc-%{pkg_name} -Version: 0.6.0.0 -Release: 13%{?dist} -Summary: Parser and printer for bencoded data +Version: 0.6.1.1 +Release: 1%{?dist} +Summary: Parsers and printers for bencoded data License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} @@ -23,14 +25,18 @@ BuildRequires: ghc-binary-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-parsec-prof +BuildRequires: ghc-transformers-prof +BuildRequires: ghc-transformers-compat-prof +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-hspec-devel +%endif # End cabal-rpm deps %description -Parser and printer for bencoded data. - -Bencode (pronounced like B encode) is the encoding used by the peer-to-peer -file sharing system BitTorrent for storing and transmitting loosely structured -data. +Parsers and printers for bencoded data. Bencode (pronounced like B encode) is +the encoding used by the peer-to-peer file sharing system BitTorrent for +storing and transmitting loosely structured data. %package devel @@ -85,6 +91,10 @@ This package provides the Haskell %{pkg_name} profiling library. # End cabal-rpm install +%check +%cabal_test + + %if 0%{?fedora} < 31 || 0%{?rhel} < 8 %post devel %ghc_pkg_recache @@ -102,6 +112,7 @@ This package provides the Haskell %{pkg_name} profiling library. %files devel -f %{name}-devel.files +%doc README.md %if %{with haddock} @@ -116,6 +127,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Sun Jun 07 2020 Jens Petersen - 0.6.1.1-1 +- update to 0.6.1.1 + * Tue Jan 28 2020 Fedora Release Engineering - 0.6.0.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 5a9eb7e..31523ba 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bencode-0.6.0.0.tar.gz) = be05a5a086d095e8ed79318c7b0a6e5e29f2483f8c9cbfe768c339353d473f8eb5c3060aaed9d60675bdfd13686e02b2261939ca6d34cc9488318daf2cc664d1 +SHA512 (bencode-0.6.1.1.tar.gz) = e2f4c312923412a47cbea62caf6e001e30418946165405f2cd9d77f06c13ff2846b352e28ca6cbbfce3bf236fb42f0b108442b17e2b0e8bac702af6d6a114f09