Hello community, here is the log from the commit of package ghc-torrent for openSUSE:Factory checked in at 2016-12-06 14:26:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-torrent (Old) and /work/SRC/openSUSE:Factory/.ghc-torrent.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-torrent" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-torrent/ghc-torrent.changes 2016-07-24 19:52:43.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-torrent.new/ghc-torrent.changes 2016-12-06 14:26:06.000000000 +0100 @@ -1,0 +2,5 @@ +Mon Nov 14 09:29:58 UTC 2016 - psim...@suse.com + +- Update to version 10000.0.1 with cabal2obs. + +------------------------------------------------------------------- Old: ---- torrent-10000.0.0.tar.gz New: ---- torrent-10000.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-torrent.spec ++++++ --- /var/tmp/diff_new_pack.FOcy0t/_old 2016-12-06 14:26:07.000000000 +0100 +++ /var/tmp/diff_new_pack.FOcy0t/_new 2016-12-06 14:26:07.000000000 +0100 @@ -18,15 +18,14 @@ %global pkg_name torrent Name: ghc-%{pkg_name} -Version: 10000.0.0 +Version: 10000.0.1 Release: 0 Summary: BitTorrent file parser and generater License: BSD-3-Clause -Group: System/Libraries +Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-bencode-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-bytestring-devel @@ -35,7 +34,6 @@ BuildRequires: ghc-rpm-macros BuildRequires: ghc-syb-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build -# End cabal-rpm deps %description BitTorrent file parser and generater. @@ -54,15 +52,12 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %post devel %ghc_pkg_recache ++++++ torrent-10000.0.0.tar.gz -> torrent-10000.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/torrent-10000.0.0/CHANGELOG new/torrent-10000.0.1/CHANGELOG --- old/torrent-10000.0.0/CHANGELOG 2014-12-19 20:57:13.000000000 +0100 +++ new/torrent-10000.0.1/CHANGELOG 2016-11-11 20:08:50.000000000 +0100 @@ -1,3 +1,9 @@ +haskell-torrent (10000.0.1) unstable; urgency=medium + + * Added showTorrent. + + -- Joey Hess <i...@joeyh.name> Fri, 11 Nov 2016 15:06:46 -0400 + haskell-torrent (10000.0.0) unstable; urgency=medium * Taking over upstream maintenance of this package. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/torrent-10000.0.0/src/Data/Torrent.hs new/torrent-10000.0.1/src/Data/Torrent.hs --- old/torrent-10000.0.0/src/Data/Torrent.hs 2014-12-19 20:57:13.000000000 +0100 +++ new/torrent-10000.0.1/src/Data/Torrent.hs 2016-11-11 20:08:50.000000000 +0100 @@ -1,3 +1,7 @@ +-- | BitTorrent metainfo files +-- +-- <http://www.bittorrent.org/beps/bep_0003.html> + {-# LANGUAGE DeriveDataTypeable #-} module Data.Torrent @@ -7,6 +11,7 @@ , readTorrent , serializeTorrent , torrentSize + , showTorrent ) where import Data.BEncode @@ -115,3 +120,12 @@ [ ("length", BInt (fileLength file)) , ("path", BList (map BString $ filePath file)) ] + +-- | generates a torrent file +-- +-- Due to lexographical ordering requirements of BEncoded data, this +-- should generate the same ByteString that readTorrent read to generate +-- the Torrent. However, torrent files may contain extensions and +-- nonstandard fields that prevent that from holding for all torrent files. +showTorrent :: Torrent -> ByteString +showTorrent = bPack . serializeTorrent diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/torrent-10000.0.0/torrent.cabal new/torrent-10000.0.1/torrent.cabal --- old/torrent-10000.0.0/torrent.cabal 2014-12-19 20:57:13.000000000 +0100 +++ new/torrent-10000.0.1/torrent.cabal 2016-11-11 20:08:50.000000000 +0100 @@ -1,5 +1,5 @@ Name: torrent -Version: 10000.0.0 +Version: 10000.0.1 Cabal-Version: >= 1.6 Maintainer: Joey Hess <i...@joeyh.name> Author: Lemmih <lem...@gmail.com> @@ -12,7 +12,7 @@ Synopsis: BitTorrent file parser and generater Library - GHC-Options: -Wall + GHC-Options: -Wall -fno-warn-tabs Hs-Source-Dirs: src Exposed-Modules: Data.Torrent