diff --git a/JuicyPixels.cabal b/JuicyPixels.cabal new file mode 100644 index 0000000..2f5c86e --- /dev/null +++ b/JuicyPixels.cabal @@ -0,0 +1,92 @@ +Name: JuicyPixels +Version: 3.2.8 +x-revision: 1 +Synopsis: Picture loading/serialization (in png, jpeg, bitmap, gif, tga, tiff and radiance) +Description: + <> + . + This library can load and store images in PNG,Bitmap, Jpeg, Radiance, Tiff and Gif images. + +homepage: https://github.com/Twinside/Juicy.Pixels +License: BSD3 +License-file: LICENSE +Author: Vincent Berthoux +Maintainer: vincent.berthoux@gmail.com +Category: Codec, Graphics, Image +Stability: Stable +Build-type: Simple + +-- Constraint on the version of Cabal needed to build this package. +Cabal-version: >= 1.10 + +extra-source-files: changelog, docimages/*.png, docimages/*.svg, README.md +extra-doc-files: docimages/*.png, docimages/*.svg + +Source-Repository head + Type: git + Location: git://github.com/Twinside/Juicy.Pixels.git + +Source-Repository this + Type: git + Location: git://github.com/Twinside/Juicy.Pixels.git + Tag: v3.2.8 + +Flag Mmap + Description: Enable the file loading via mmap (memory map) + Default: False + +Library + hs-source-dirs: src + Default-Language: Haskell2010 + Exposed-modules: Codec.Picture, + Codec.Picture.Bitmap, + Codec.Picture.Gif, + Codec.Picture.Png, + Codec.Picture.Jpg, + Codec.Picture.HDR, + Codec.Picture.Tga, + Codec.Picture.Tiff, + Codec.Picture.Metadata, + Codec.Picture.Metadata.Exif, + Codec.Picture.Saving, + Codec.Picture.Types, + Codec.Picture.ColorQuant + + Ghc-options: -O3 -Wall + Build-depends: base >= 4.5 && < 5, + bytestring >= 0.9 && < 0.11, + mtl >= 1.1 && < 2.3, + binary >= 0.5 && < 0.9, + zlib >= 0.5.3.1 && < 0.7, + transformers >= 0.2, + vector >= 0.10 && < 0.13, + primitive >= 0.4 && < 0.7, + deepseq >= 1.1 && < 1.5, + containers >= 0.4.2 && < 0.6 + + if flag(Mmap) + Build-depends: mmap + CC-Options: "-DWITH_MMAP_BYTESTRING" + + -- Modules not exported by this package. + Other-modules: Codec.Picture.Jpg.DefaultTable, + Codec.Picture.Jpg.Metadata, + Codec.Picture.Jpg.FastIdct, + Codec.Picture.Jpg.FastDct, + Codec.Picture.Jpg.Types, + Codec.Picture.Jpg.Common, + Codec.Picture.Jpg.Progressive, + Codec.Picture.Gif.LZW, + Codec.Picture.Gif.LZWEncoding, + Codec.Picture.Png.Export, + Codec.Picture.Png.Type, + Codec.Picture.Png.Metadata, + Codec.Picture.Tiff.Metadata, + Codec.Picture.Tiff.Types, + Codec.Picture.BitWriter, + Codec.Picture.InternalHelper, + Codec.Picture.VectorByteConversion + + Install-Includes: src/Codec/Picture/ConvGraph.hs + Include-Dirs: src/Codec/Picture + diff --git a/ghc-JuicyPixels.changes b/ghc-JuicyPixels.changes index 8c6bcf6..1e3f09e 100644 --- a/ghc-JuicyPixels.changes +++ b/ghc-JuicyPixels.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jan 8 21:13:08 UTC 2017 - psimons@suse.com + +- Update to version 3.2.8 revision 1 with cabal2obs. + ------------------------------------------------------------------- Thu Sep 15 06:38:32 UTC 2016 - psimons@suse.com diff --git a/ghc-JuicyPixels.spec b/ghc-JuicyPixels.spec index c818ea1..b9e7198 100644 --- a/ghc-JuicyPixels.spec +++ b/ghc-JuicyPixels.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-JuicyPixels # -# 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 @@ -25,6 +25,7 @@ License: BSD-3-Clause 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 +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-bytestring-devel @@ -55,6 +56,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build