From 60ae8b96372807c8d5dd971df3f436d5204a73a044ef07bc25e3c8b9bae0133e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 10 Dec 2024 11:25:56 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-tar revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-tar?expand=0&rev=74 --- .gitattributes | 23 +++++++ .gitignore | 1 + ghc-tar.changes | 20 ++++++ ghc-tar.spec | 133 ++++++++++++++++++++++++++++++++++++++++ tar-0.5.1.1.tar.gz | 3 + tar-0.6.3.0.tar.gz | 3 + tar.cabal | 147 +++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 330 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-tar.changes create mode 100644 ghc-tar.spec create mode 100644 tar-0.5.1.1.tar.gz create mode 100644 tar-0.6.3.0.tar.gz create mode 100644 tar.cabal diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-tar.changes b/ghc-tar.changes new file mode 100644 index 0000000..82d1a99 --- /dev/null +++ b/ghc-tar.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Wed Jun 26 20:38:18 UTC 2024 - Peter Simons + +- Update tar to version 0.6.3.0 revision 1. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/tar-0.6.3.0/src/changelog.md + +------------------------------------------------------------------- +Wed Dec 20 20:30:38 UTC 2023 - Peter Simons + +- Update tar to version 0.5.1.1 revision 10. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Wed Sep 27 20:48:39 UTC 2023 - Peter Simons + +- Add tar at version 0.5.1.1 revision 9. + diff --git a/ghc-tar.spec b/ghc-tar.spec new file mode 100644 index 0000000..73bd4a0 --- /dev/null +++ b/ghc-tar.spec @@ -0,0 +1,133 @@ +# +# spec file for package ghc-tar +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name tar +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.6.3.0 +Release: 0 +Summary: Reading, writing and manipulating ".tar" archive files +License: BSD-3-Clause +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-array-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-os-string-devel +BuildRequires: ghc-os-string-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-time-devel +BuildRequires: ghc-time-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-file-embed-devel +BuildRequires: ghc-file-embed-prof +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-prof +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-tasty-quickcheck-prof +BuildRequires: ghc-temporary-devel +BuildRequires: ghc-temporary-prof +%endif + +%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. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%package -n ghc-%{pkg_name}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + +%prep +%autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files +%doc README.md changelog.md + +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog diff --git a/tar-0.5.1.1.tar.gz b/tar-0.5.1.1.tar.gz new file mode 100644 index 0000000..fcb0716 --- /dev/null +++ b/tar-0.5.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b384449f62b2b0aa3e6d2cb1004b8060b01f21ec93e7b63e7af6d8fad8a9f1de +size 39155 diff --git a/tar-0.6.3.0.tar.gz b/tar-0.6.3.0.tar.gz new file mode 100644 index 0000000..59dec67 --- /dev/null +++ b/tar-0.6.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50bb660feec8a524416d6934251b996eaa7e39d49ae107ad505ab700d43f6814 +size 54502 diff --git a/tar.cabal b/tar.cabal new file mode 100644 index 0000000..cee71d9 --- /dev/null +++ b/tar.cabal @@ -0,0 +1,147 @@ +cabal-version: 2.2 +name: tar +version: 0.6.3.0 +x-revision: 1 +license: BSD-3-Clause +license-file: LICENSE +author: Duncan Coutts + Bjorn Bringert +maintainer: Bodigrim +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 +extra-source-files: + test/data/long-filepath.tar + test/data/long-symlink.tar + test/data/symlink.tar +extra-doc-files: changelog.md + README.md +tested-with: GHC==9.10.1, GHC==9.8.2, GHC==9.6.5, GHC==9.4.8, GHC==9.2.8, GHC==9.0.2, + GHC==8.10.7, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4 + +source-repository head + type: git + location: https://github.com/haskell/tar.git + +library + default-language: Haskell2010 + build-depends: tar-internal + + reexported-modules: + Codec.Archive.Tar, + Codec.Archive.Tar.Entry, + Codec.Archive.Tar.Check, + Codec.Archive.Tar.Index + +library tar-internal + default-language: Haskell2010 + build-depends: base >= 4.11 && < 5, + array < 0.6, + bytestring >= 0.10 && < 0.13, + containers >= 0.2 && < 0.8, + deepseq >= 1.1 && < 1.6, + directory >= 1.3.1 && < 1.4, + filepath < 1.6, + os-string >= 2.0 && < 2.1, + time < 1.15, + transformers < 0.7, + + exposed-modules: + Codec.Archive.Tar + Codec.Archive.Tar.Entry + Codec.Archive.Tar.Check + Codec.Archive.Tar.Check.Internal + Codec.Archive.Tar.Index + Codec.Archive.Tar.LongNames + Codec.Archive.Tar.Types + Codec.Archive.Tar.Read + Codec.Archive.Tar.Write + Codec.Archive.Tar.Pack + Codec.Archive.Tar.PackAscii + Codec.Archive.Tar.Unpack + Codec.Archive.Tar.Index.StringTable + Codec.Archive.Tar.Index.IntTrie + Codec.Archive.Tar.Index.Internal + Codec.Archive.Tar.Index.Utils + + other-extensions: + BangPatterns + CPP + DeriveDataTypeable + GeneralizedNewtypeDeriving + PatternGuards + ScopedTypeVariables + + ghc-options: -Wall -fno-warn-unused-imports + +test-suite properties + type: exitcode-stdio-1.0 + default-language: Haskell2010 + build-depends: base < 5, + array, + bytestring >= 0.10, + containers, + deepseq, + directory >= 1.2, + file-embed, + filepath, + QuickCheck == 2.*, + tar-internal, + tasty >= 0.10 && <1.6, + tasty-quickcheck >= 0.8 && <1, + temporary < 1.4, + time + if impl(ghc < 9.0) + build-depends: bytestring-handle < 0.2 + + hs-source-dirs: test + + main-is: Properties.hs + + other-modules: + Codec.Archive.Tar.Tests + Codec.Archive.Tar.Index.Tests + Codec.Archive.Tar.Index.IntTrie.Tests + Codec.Archive.Tar.Index.StringTable.Tests + Codec.Archive.Tar.Pack.Tests + Codec.Archive.Tar.Types.Tests + Codec.Archive.Tar.Unpack.Tests + + other-extensions: + CPP + BangPatterns, + DeriveDataTypeable + ScopedTypeVariables + + ghc-options: -fno-ignore-asserts + +benchmark bench + type: exitcode-stdio-1.0 + default-language: Haskell2010 + hs-source-dirs: bench + main-is: Main.hs + build-depends: base < 5, + tar, + bytestring >= 0.10, + filepath, + directory >= 1.2, + array, + containers, + deepseq, + temporary < 1.4, + time, + tasty-bench < 0.4