Hello community, here is the log from the commit of package ghc-hackage-db for openSUSE:Factory checked in at 2017-09-15 21:03:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-hackage-db (Old) and /work/SRC/openSUSE:Factory/.ghc-hackage-db.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-hackage-db" Fri Sep 15 21:03:55 2017 rev:3 rq:523875 version:1.22 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-hackage-db/ghc-hackage-db.changes 2016-07-20 09:21:52.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-hackage-db.new/ghc-hackage-db.changes 2017-09-15 21:03:57.465598199 +0200 @@ -1,0 +2,5 @@ +Thu Aug 3 15:38:38 UTC 2017 - [email protected] + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +------------------------------------------------------------------- Old: ---- 1.cabal New: ---- hackage-db.cabal ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-hackage-db.spec ++++++ --- /var/tmp/diff_new_pack.73Ikhu/_old 2017-09-15 21:03:58.353473560 +0200 +++ /var/tmp/diff_new_pack.73Ikhu/_new 2017-09-15 21:03:58.353473560 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-hackage-db # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,12 +22,11 @@ Release: 0 Summary: Access Hackage's package database via Data.Map License: BSD-3-Clause -Group: System/Libraries -Url: https://hackage.haskell.org/package/%{pkg_name} +Group: Development/Libraries/Haskell +URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel @@ -35,8 +34,6 @@ BuildRequires: ghc-rpm-macros BuildRequires: ghc-tar-devel BuildRequires: ghc-utf8-string-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -# End cabal-rpm deps %description This module provides simple access to the Hackage database by means of @@ -58,7 +55,7 @@ %package devel Summary: Haskell %{pkg_name} library development files -Group: Development/Libraries/Other +Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} @@ -71,15 +68,12 @@ %setup -q -n %{pkg_name}-%{version} cp -p %{SOURCE1} %{pkg_name}.cabal - %build %ghc_lib_build - %install %ghc_lib_install - %post devel %ghc_pkg_recache @@ -87,10 +81,8 @@ %ghc_pkg_recache %files -f %{name}.files -%defattr(-,root,root,-) %doc LICENSE %files devel -f %{name}-devel.files -%defattr(-,root,root,-) %changelog ++++++ hackage-db.cabal ++++++ Name: hackage-db Version: 1.22 x-revision: 1 Copyright: Peter Simons License: BSD3 License-File: LICENSE Author: Peter Simons <[email protected]> Maintainer: Peter Simons <[email protected]> Homepage: http://github.com/peti/hackage-db Category: Distribution Synopsis: access Hackage's package database via Data.Map Cabal-Version: >= 1.6 Build-Type: Simple Tested-With: GHC >= 6.10.4 && <= 7.8.4 Description: This module provides simple access to the Hackage database by means of @Data.Map@. Suppose you wanted to implement a utility that queries the set of available versions for a given package, the following program would do the trick: . > import qualified Distribution.Hackage.DB as DB > import Distribution.Text ( display ) > import System.Environment ( getArgs ) > > main :: IO () > main = do > pkgs <- getArgs > db <- DB.readHackage > let getVersions name = maybe [] DB.keys (DB.lookup name db) > mapM_ (putStrLn . unwords . map display . getVersions) pkgs . When run, it would produce the following output: . > ./a.out containers deepseq cabal-install > 0.1.0.0 0.1.0.1 0.2.0.0 0.2.0.1 0.3.0.0 0.4.0.0 > 1.0.0.0 1.1.0.0 1.1.0.1 1.1.0.2 > 0.4.0 0.5.0 0.5.1 0.5.2 0.6.0 0.6.2 0.6.4 0.8.0 0.8.2 0.10.0 0.10.2 Source-Repository head Type: git Location: git://github.com/peti/hackage-db.git Library Build-Depends: base >= 3 && < 5, tar >= 0.4, Cabal, containers, directory, filepath, bytestring, utf8-string hs-source-dirs: src Exposed-Modules: Distribution.Hackage.DB.Unparsed Distribution.Hackage.DB.Parsed Distribution.Hackage.DB.Path Distribution.Hackage.DB
