From 7ae1aca62c7c76365f9a4c5cd8af851578bc1f70a66584bc18ab663a0f216a69 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 21 Sep 2018 01:01:29 +0000 Subject: [PATCH 1/3] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-tar revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-tar?expand=0&rev=28 --- ghc-tar.spec | 2 + tar.cabal | 167 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 169 insertions(+) create mode 100644 tar.cabal diff --git a/ghc-tar.spec b/ghc-tar.spec index 8c06023..1f787a6 100644 --- a/ghc-tar.spec +++ b/ghc-tar.spec @@ -26,6 +26,7 @@ License: BSD-3-Clause 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#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-array-devel BuildRequires: ghc-bytestring-devel @@ -66,6 +67,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 diff --git a/tar.cabal b/tar.cabal new file mode 100644 index 0000000..c9b1323 --- /dev/null +++ b/tar.cabal @@ -0,0 +1,167 @@ +name: tar +version: 0.5.1.0 +x-revision: 1 +license: BSD3 +license-file: LICENSE +author: Duncan Coutts + Bjorn Bringert +maintainer: Duncan Coutts +bug-reports: https://github.com/haskell/tar/issues +copyright: 2007 Bjorn Bringert + 2008-2016 Duncan Coutts +category: Codec +synopsis: Reading, writing and manipulating ".tar" archive files. +description: This library is for working with \"@.tar@\" archive files. It + can read and write a range of common variations of archive + format including V7, POSIX USTAR and GNU formats. + . + It provides support for packing and unpacking portable + archives. This makes it suitable for distribution but not + backup because details like file ownership and exact + permissions are not preserved. + . + It also provides features for random access to archive + content using an index. +build-type: Simple +cabal-version: >=1.8 +extra-source-files: changelog.md +tested-with: GHC==7.0.4, GHC==7.2.2, GHC==7.4.2, GHC==7.6.3, + GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.1 + +source-repository head + type: git + location: https://github.com/haskell/tar.git + +flag old-time + default: False + +flag old-bytestring + default: False + +library + build-depends: base == 4.*, + filepath < 1.5, + array < 0.6, + containers >= 0.2 && < 0.7, + deepseq >= 1.1 && < 1.5 + + if flag(old-time) + build-depends: directory < 1.2, old-time < 1.2 + else + build-depends: directory >= 1.2 && < 1.4, time < 1.9 + + if flag(old-bytestring) + build-depends: bytestring-builder >= 0.10.4.0.2 && < 0.11, bytestring == 0.9.* + else + build-depends: bytestring == 0.10.* + + if !impl(ghc >= 8.0) + build-depends: semigroups == 0.18.* + + exposed-modules: + Codec.Archive.Tar + Codec.Archive.Tar.Entry + Codec.Archive.Tar.Check + Codec.Archive.Tar.Index + + other-modules: + Codec.Archive.Tar.Types + Codec.Archive.Tar.Read + Codec.Archive.Tar.Write + Codec.Archive.Tar.Pack + Codec.Archive.Tar.Unpack + Codec.Archive.Tar.Index.StringTable + Codec.Archive.Tar.Index.IntTrie + + other-extensions: + BangPatterns + CPP + DeriveDataTypeable + GeneralizedNewtypeDeriving + PatternGuards + ScopedTypeVariables + + ghc-options: -Wall -fno-warn-unused-imports + +test-suite properties + type: exitcode-stdio-1.0 + build-depends: base, + filepath, + array, + containers, + deepseq, + bytestring-handle, + QuickCheck == 2.*, + tasty >= 0.10 && <0.12, + tasty-quickcheck == 0.8.* + + if flag(old-time) + build-depends: directory < 1.2, old-time + else + build-depends: directory >= 1.2, time + + if flag(old-bytestring) + build-depends: bytestring-builder, bytestring >= 0.9 && <0.10 + else + build-depends: bytestring >= 0.10 + + if !impl(ghc >= 8.0) + build-depends: semigroups == 0.18.* + + hs-source-dirs: . test + + main-is: test/Properties.hs + cpp-options: -DTESTS + + other-modules: + Codec.Archive.Tar.Index + Codec.Archive.Tar.Index.StringTable + Codec.Archive.Tar.Index.IntTrie + + -- shared w/ lib:tar component + other-modules: + Codec.Archive.Tar + Codec.Archive.Tar.Check + Codec.Archive.Tar.Pack + Codec.Archive.Tar.Read + Codec.Archive.Tar.Types + Codec.Archive.Tar.Unpack + Codec.Archive.Tar.Write + + other-extensions: + CPP + BangPatterns, + DeriveDataTypeable + ScopedTypeVariables + + ghc-options: -fno-ignore-asserts + +benchmark bench + type: exitcode-stdio-1.0 + hs-source-dirs: . bench + main-is: bench/Main.hs + build-depends: base, + bytestring >= 0.10, + filepath, + directory >= 1.2, + array, + containers, + deepseq, + time, + criterion >= 1.0 + + if !impl(ghc >= 8.0) + build-depends: semigroups == 0.18.* + + -- shared w/ lib:tar component + other-modules: + Codec.Archive.Tar + Codec.Archive.Tar.Check + Codec.Archive.Tar.Index + Codec.Archive.Tar.Index.IntTrie + Codec.Archive.Tar.Index.StringTable + Codec.Archive.Tar.Pack + Codec.Archive.Tar.Read + Codec.Archive.Tar.Types + Codec.Archive.Tar.Unpack + Codec.Archive.Tar.Write From 8556b7dc81a5ebd6d00084e69d191668ad586d3957f3b1c577bcfc3864ff4cdb Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 18 Oct 2018 09:52:58 +0000 Subject: [PATCH 2/3] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-tar revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-tar?expand=0&rev=29 --- ghc-tar.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc-tar.spec b/ghc-tar.spec index 1f787a6..fa3110c 100644 --- a/ghc-tar.spec +++ b/ghc-tar.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # From cfeb0a04f096002163ac16a831ba3312baa2b96956c258b34a1ada50c41d4941 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 19 Oct 2018 13:17:22 +0000 Subject: [PATCH 3/3] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-tar revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-tar?expand=0&rev=30 --- ghc-tar.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghc-tar.changes b/ghc-tar.changes index 2f1ba85..0c5398d 100644 --- a/ghc-tar.changes +++ b/ghc-tar.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 19 13:14:47 UTC 2018 - Peter Simons + +- Update Cabal build instructions to support ghc-8.6.1. + ------------------------------------------------------------------- Wed Jul 18 14:26:43 UTC 2018 - psimons@suse.com