osc copypac from project:devel:languages:haskell:ghc-9.8.x package:git-annex revision:10, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/git-annex?expand=0&rev=92
This commit is contained in:
Peter Simons 2024-07-19 12:40:34 +00:00 committed by Git OBS Bridge
commit 59b5c3127b
8 changed files with 2185 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,137 @@
From 58b3b46b517358295c7041a92ce135e7c8013eec Mon Sep 17 00:00:00 2001
From: Peter Simons <simons@cryp.to>
Date: Thu, 10 Aug 2023 15:39:56 +0200
Subject: [PATCH] persistent >= 2.12.0.1 includes the code from
persistent-template
persistent-template has been deprecated.
---
Database/ContentIdentifier.hs | 2 --
Database/Export.hs | 3 ---
Database/Fsck.hs | 3 ---
Database/ImportFeed.hs | 3 ---
Database/Keys/SQL.hs | 3 ---
git-annex.cabal | 3 +--
6 files changed, 1 insertion(+), 16 deletions(-)
diff --git a/Database/ContentIdentifier.hs b/Database/ContentIdentifier.hs
index bbf67dcfb1..3a399f7765 100644
--- a/Database/ContentIdentifier.hs
+++ b/Database/ContentIdentifier.hs
@@ -12,10 +12,8 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DataKinds, FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
-#if MIN_VERSION_persistent_template(2,8,0)
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE StandaloneDeriving #-}
-#endif
module Database.ContentIdentifier (
ContentIdentifierHandle,
diff --git a/Database/Export.hs b/Database/Export.hs
index 2f0da8b231..6de86c7925 100644
--- a/Database/Export.hs
+++ b/Database/Export.hs
@@ -5,17 +5,14 @@
- Licensed under the GNU AGPL version 3 or higher.
-}
-{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes, TypeFamilies, TypeOperators, TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings, GADTs, FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses, GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DataKinds, FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
-#if MIN_VERSION_persistent_template(2,8,0)
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE StandaloneDeriving #-}
-#endif
module Database.Export (
ExportHandle,
diff --git a/Database/Fsck.hs b/Database/Fsck.hs
index cce5528100..2ff4eb6bb5 100644
--- a/Database/Fsck.hs
+++ b/Database/Fsck.hs
@@ -5,7 +5,6 @@
- Licensed under the GNU AGPL version 3 or higher.
-}
-{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes, TypeFamilies, TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings, GADTs, FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses, GeneralizedNewtypeDeriving #-}
@@ -13,10 +12,8 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeOperators #-}
-#if MIN_VERSION_persistent_template(2,8,0)
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE StandaloneDeriving #-}
-#endif
module Database.Fsck (
FsckHandle,
diff --git a/Database/ImportFeed.hs b/Database/ImportFeed.hs
index 2d44b0b9ea..84cd24bdab 100644
--- a/Database/ImportFeed.hs
+++ b/Database/ImportFeed.hs
@@ -6,17 +6,14 @@
- Licensed under the GNU AGPL version 3 or higher.
-}
-{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes, TypeFamilies, TypeOperators, TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings, GADTs, FlexibleContexts, EmptyDataDecls #-}
{-# LANGUAGE MultiParamTypeClasses, GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DataKinds, FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
-#if MIN_VERSION_persistent_template(2,8,0)
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE StandaloneDeriving #-}
-#endif
module Database.ImportFeed (
ImportFeedDbHandle,
diff --git a/Database/Keys/SQL.hs b/Database/Keys/SQL.hs
index 2e40e39db3..6b36cd09d5 100644
--- a/Database/Keys/SQL.hs
+++ b/Database/Keys/SQL.hs
@@ -5,17 +5,14 @@
- Licensed under the GNU AGPL version 3 or higher.
-}
-{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes, TypeFamilies, TypeOperators, TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings, GADTs, FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses, GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RankNTypes, ScopedTypeVariables #-}
{-# LANGUAGE DataKinds, FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
-#if MIN_VERSION_persistent_template(2,8,0)
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE StandaloneDeriving #-}
-#endif
module Database.Keys.SQL where
diff --git a/git-annex.cabal b/git-annex.cabal
index 31e66f9f27..7bf1a8ae0c 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -247,8 +247,7 @@ Executable git-annex
time (>= 1.5.0),
old-locale,
persistent-sqlite (>= 2.8.1),
- persistent (>= 2.8.1),
- persistent-template,
+ persistent (>= 2.12.0.2),
unliftio-core,
microlens,
aeson,
--
2.42.0

10
_constraints Normal file
View File

@ -0,0 +1,10 @@
<constraints>
<hardware>
<disk>
<size unit="G">5</size>
</disk>
<memory>
<size unit="G">5</size>
</memory>
</hardware>
</constraints>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de1cdfe5c984d644a7db04c2bd17b750f5411f542c5fe24eaac84fc4c59cf233
size 9293897

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a71bb166fe3c50bb828f0857dd593d2fe1751e4aecd31676cffe2574d1bd9fa3
size 9361062

1701
git-annex.changes Normal file

File diff suppressed because it is too large Load Diff

307
git-annex.spec Normal file
View File

@ -0,0 +1,307 @@
#
# spec file for package git-annex
#
# 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/
#
Name: git-annex
Version: 10.20240701
Release: 0
Summary: Manage files with git, without checking their contents into git
License: AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
URL: https://hackage.haskell.org/package/%{name}
Source0: https://github.com/opensuse-haskell/git-annex/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: 0001-persistent-2.12.0.1-include-the-code-from-persistent.patch
BuildRequires: bash-completion
BuildRequires: chrpath
BuildRequires: curl
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-Cabal-prof
BuildRequires: ghc-DAV-devel
BuildRequires: ghc-DAV-prof
BuildRequires: ghc-IfElse-devel
BuildRequires: ghc-IfElse-prof
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-QuickCheck-prof
BuildRequires: ghc-SafeSemaphore-devel
BuildRequires: ghc-SafeSemaphore-prof
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-aeson-prof
BuildRequires: ghc-ansi-terminal-devel
BuildRequires: ghc-ansi-terminal-prof
BuildRequires: ghc-async-devel
BuildRequires: ghc-async-prof
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-attoparsec-prof
BuildRequires: ghc-aws-devel
BuildRequires: ghc-aws-prof
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-blaze-builder-devel
BuildRequires: ghc-blaze-builder-prof
BuildRequires: ghc-bloomfilter-devel
BuildRequires: ghc-bloomfilter-prof
BuildRequires: ghc-byteable-devel
BuildRequires: ghc-byteable-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-case-insensitive-devel
BuildRequires: ghc-case-insensitive-prof
BuildRequires: ghc-clientsession-devel
BuildRequires: ghc-clientsession-prof
BuildRequires: ghc-concurrent-output-devel
BuildRequires: ghc-concurrent-output-prof
BuildRequires: ghc-conduit-devel
BuildRequires: ghc-conduit-prof
BuildRequires: ghc-containers-devel
BuildRequires: ghc-containers-prof
BuildRequires: ghc-criterion-devel
BuildRequires: ghc-criterion-prof
BuildRequires: ghc-crypto-api-devel
BuildRequires: ghc-crypto-api-prof
BuildRequires: ghc-crypton-devel
BuildRequires: ghc-crypton-prof
BuildRequires: ghc-data-default-devel
BuildRequires: ghc-data-default-prof
BuildRequires: ghc-dbus-devel
BuildRequires: ghc-dbus-prof
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-directory-devel
BuildRequires: ghc-directory-prof
BuildRequires: ghc-disk-free-space-devel
BuildRequires: ghc-disk-free-space-prof
BuildRequires: ghc-dlist-devel
BuildRequires: ghc-dlist-prof
BuildRequires: ghc-edit-distance-devel
BuildRequires: ghc-edit-distance-prof
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-exceptions-prof
BuildRequires: ghc-fdo-notify-devel
BuildRequires: ghc-fdo-notify-prof
BuildRequires: ghc-feed-devel
BuildRequires: ghc-feed-prof
BuildRequires: ghc-filepath-bytestring-devel
BuildRequires: ghc-filepath-bytestring-prof
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-free-devel
BuildRequires: ghc-free-prof
BuildRequires: ghc-git-lfs-devel
BuildRequires: ghc-git-lfs-prof
BuildRequires: ghc-hinotify-devel
BuildRequires: ghc-hinotify-prof
BuildRequires: ghc-http-client-devel
BuildRequires: ghc-http-client-prof
BuildRequires: ghc-http-client-restricted-devel
BuildRequires: ghc-http-client-restricted-prof
BuildRequires: ghc-http-client-tls-devel
BuildRequires: ghc-http-client-tls-prof
BuildRequires: ghc-http-conduit-devel
BuildRequires: ghc-http-conduit-prof
BuildRequires: ghc-http-types-devel
BuildRequires: ghc-http-types-prof
BuildRequires: ghc-magic-devel
BuildRequires: ghc-magic-prof
BuildRequires: ghc-memory-devel
BuildRequires: ghc-memory-prof
BuildRequires: ghc-microlens-devel
BuildRequires: ghc-microlens-prof
BuildRequires: ghc-monad-control-devel
BuildRequires: ghc-monad-control-prof
BuildRequires: ghc-monad-logger-devel
BuildRequires: ghc-monad-logger-prof
BuildRequires: ghc-mountpoints-devel
BuildRequires: ghc-mountpoints-prof
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-network-bsd-devel
BuildRequires: ghc-network-bsd-prof
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-info-devel
BuildRequires: ghc-network-info-prof
BuildRequires: ghc-network-multicast-devel
BuildRequires: ghc-network-multicast-prof
BuildRequires: ghc-network-prof
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-network-uri-prof
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-old-locale-prof
BuildRequires: ghc-optparse-applicative-devel
BuildRequires: ghc-optparse-applicative-prof
BuildRequires: ghc-path-pieces-devel
BuildRequires: ghc-path-pieces-prof
BuildRequires: ghc-persistent-devel
BuildRequires: ghc-persistent-prof
BuildRequires: ghc-persistent-sqlite-devel
BuildRequires: ghc-persistent-sqlite-prof
BuildRequires: ghc-process-devel
BuildRequires: ghc-process-prof
BuildRequires: ghc-random-devel
BuildRequires: ghc-random-prof
BuildRequires: ghc-regex-tdfa-devel
BuildRequires: ghc-regex-tdfa-prof
BuildRequires: ghc-resourcet-devel
BuildRequires: ghc-resourcet-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-sandi-devel
BuildRequires: ghc-sandi-prof
BuildRequires: ghc-securemem-devel
BuildRequires: ghc-securemem-prof
BuildRequires: ghc-shakespeare-devel
BuildRequires: ghc-shakespeare-prof
BuildRequires: ghc-socks-devel
BuildRequires: ghc-socks-prof
BuildRequires: ghc-split-devel
BuildRequires: ghc-split-prof
BuildRequires: ghc-stm-chans-devel
BuildRequires: ghc-stm-chans-prof
BuildRequires: ghc-stm-devel
BuildRequires: ghc-stm-prof
BuildRequires: ghc-tagsoup-devel
BuildRequires: ghc-tagsoup-prof
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-hunit-prof
BuildRequires: ghc-tasty-prof
BuildRequires: ghc-tasty-quickcheck-devel
BuildRequires: ghc-tasty-quickcheck-prof
BuildRequires: ghc-tasty-rerun-devel
BuildRequires: ghc-tasty-rerun-prof
BuildRequires: ghc-template-haskell-devel
BuildRequires: ghc-template-haskell-prof
BuildRequires: ghc-text-devel
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-devel
BuildRequires: ghc-time-prof
BuildRequires: ghc-torrent-devel
BuildRequires: ghc-torrent-prof
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-transformers-prof
BuildRequires: ghc-unbounded-delays-devel
BuildRequires: ghc-unbounded-delays-prof
BuildRequires: ghc-unix-compat-devel
BuildRequires: ghc-unix-compat-prof
BuildRequires: ghc-unix-devel
BuildRequires: ghc-unix-prof
BuildRequires: ghc-unliftio-core-devel
BuildRequires: ghc-unliftio-core-prof
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-unordered-containers-prof
BuildRequires: ghc-utf8-string-devel
BuildRequires: ghc-utf8-string-prof
BuildRequires: ghc-uuid-devel
BuildRequires: ghc-uuid-prof
BuildRequires: ghc-vector-devel
BuildRequires: ghc-vector-prof
BuildRequires: ghc-wai-devel
BuildRequires: ghc-wai-extra-devel
BuildRequires: ghc-wai-extra-prof
BuildRequires: ghc-wai-prof
BuildRequires: ghc-warp-devel
BuildRequires: ghc-warp-prof
BuildRequires: ghc-warp-tls-devel
BuildRequires: ghc-warp-tls-prof
BuildRequires: ghc-yesod-core-devel
BuildRequires: ghc-yesod-core-prof
BuildRequires: ghc-yesod-devel
BuildRequires: ghc-yesod-form-devel
BuildRequires: ghc-yesod-form-prof
BuildRequires: ghc-yesod-prof
BuildRequires: ghc-yesod-static-devel
BuildRequires: ghc-yesod-static-prof
BuildRequires: git-core
BuildRequires: gpg2
BuildRequires: lsof
BuildRequires: rsync
Requires(post): desktop-file-utils
Requires(post): hicolor-icon-theme
Requires(postun): desktop-file-utils
Requires(postun): hicolor-icon-theme
Recommends: curl
Recommends: gpg2
Recommends: lsof
Recommends: rsync
Recommends: ssh
Suggests: %{name}-bash-completion
ExcludeArch: %{ix86}
%description
Git-annex allows managing files with git, without checking the file contents
into git. While that may seem paradoxical, it is useful when dealing with files
larger than git can currently easily handle, whether due to limitations in
memory, time, or disk space.
It can store large files in many places, from local hard drives, to a large
number of cloud storage services, including S3, WebDAV, and rsync, and many
other usable via plugins. Files can be stored encrypted with gpg, so that the
cloud storage provider cannot see your data. git-annex keeps track of where
each file is stored, so it knows how many copies are available, and has many
facilities to ensure your data is preserved.
git-annex can also be used to keep a folder in sync between computers, noticing
when files are changed, and automatically committing them to git and
transferring them to other computers. The git-annex webapp makes it easy to set
up and use git-annex this way.
%package bash-completion
Summary: Bash completion for git-annex
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
%description bash-completion
Optional dependency offering bash completion for git-annex
%prep
%autosetup -p1
%build
%define cabal_configure_options -ftestsuite
%ghc_bin_build
%check
%make_build DESTDIR=%{buildroot} BUILDER=./Setup test
%install
%ghc_bin_install
make DESTDIR=%{buildroot} BUILDER=./Setup install-bins install-mans install-completions install-desktop
rm %{buildroot}%{_datadir}/fish/vendor_completions.d/git-annex.fish
rm %{buildroot}%{_datadir}/zsh/site-functions/_git-annex
%files
%license COPYRIGHT
%doc CHANGELOG NEWS README
%{_bindir}/%{name}
%{_bindir}/%{name}-shell
%{_bindir}/git-remote-tor-annex
%{_bindir}/git-remote-annex
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/16x16
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_sysconfdir}/xdg/autostart/git-annex.desktop
%{_mandir}/man1/git-annex*.1%{?ext_man}
%{_mandir}/man1/git-remote-tor-annex.1%{?ext_man}
%{_mandir}/man1/git-remote-annex.1%{?ext_man}
%{_datadir}/applications/git-annex.desktop
%{_datadir}/icons/hicolor/16x16/apps/git-annex.png
%{_datadir}/icons/hicolor/scalable/apps/git-annex.svg
%files bash-completion
%{_datadir}/bash-completion/completions/git-annex
%changelog