git-annex/git-annex.spec

208 lines
7.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package git-annex
#
Accepting request 947556 from home:bnavigator:branches:devel:languages:haskell - Update to git-annex version 8.20211231 * Improved support for using git-annex in a read-only repository, git-annex branch information from remotes that cannot be merged into the git-annex branch will now not crash it, but will be merged in memory. * addurl, youtube-dl: When --check-raw prevents downloading an url, still continue with any downloads that come after it, rather than erroring out. * Fix locking problems when annex.pidlock is set and concurrency is enabled eg with -J. * Improve error message display when autoinit fails due to eg, a permissions problem. * export: Avoid unncessarily re-exporting non-annexed files that were already exported. * Improve git command queue flushing so that eg, addurl of several large files that take time to download will update the index for each file, rather than deferring the index updates to the end. * sync: Better error message when unable to export to a remote because remote.name.annex-tracking-branch is configured to a ref that does not exist. * Fix build with ghc 9.0.1 * Fix build with old versions of feed library. - git-annex 8.20211123 was released with these changes: * Bugfix: When -J was enabled, getting files could leak an ever-growing number of git cat-file processes. * Support git's new "ort" resolver, which became the default in git 2.34.0, and broke the test suite and automatic merge resolution of a conflict between an annexed file and a non-annexed file. * importfeed: Display url before starting youtube-dl download. - Move to _service checking out the upstream source directly - Avoid compiling and linking the binary a second time in the install phase and a third time in the check phase OBS-URL: https://build.opensuse.org/request/show/947556 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/git-annex?expand=0&rev=50
2022-02-03 15:09:13 +01:00
# Copyright (c) 2022 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.20221212
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
BuildRequires: bash-completion
BuildRequires: chrpath
BuildRequires: curl
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-DAV-devel
BuildRequires: ghc-IfElse-devel
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-SafeSemaphore-devel
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-ansi-terminal-devel
BuildRequires: ghc-async-devel
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-aws-devel
BuildRequires: ghc-blaze-builder-devel
BuildRequires: ghc-bloomfilter-devel
BuildRequires: ghc-byteable-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-case-insensitive-devel
BuildRequires: ghc-clientsession-devel
BuildRequires: ghc-concurrent-output-devel
BuildRequires: ghc-conduit-devel
BuildRequires: ghc-connection-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-criterion-devel
BuildRequires: ghc-crypto-api-devel
BuildRequires: ghc-cryptonite-devel
BuildRequires: ghc-data-default-devel
BuildRequires: ghc-dbus-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-disk-free-space-devel
BuildRequires: ghc-dlist-devel
BuildRequires: ghc-edit-distance-devel
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-fdo-notify-devel
BuildRequires: ghc-feed-devel
BuildRequires: ghc-filepath-bytestring-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-free-devel
BuildRequires: ghc-git-lfs-devel
BuildRequires: ghc-hinotify-devel
BuildRequires: ghc-http-client-devel
BuildRequires: ghc-http-client-restricted-devel
BuildRequires: ghc-http-client-tls-devel
BuildRequires: ghc-http-conduit-devel
BuildRequires: ghc-http-types-devel
BuildRequires: ghc-magic-devel
BuildRequires: ghc-memory-devel
BuildRequires: ghc-microlens-devel
BuildRequires: ghc-monad-control-devel
BuildRequires: ghc-monad-logger-devel
BuildRequires: ghc-mountpoints-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-network-bsd-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-info-devel
BuildRequires: ghc-network-multicast-devel
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-optparse-applicative-devel
BuildRequires: ghc-path-pieces-devel
BuildRequires: ghc-persistent-devel
BuildRequires: ghc-persistent-sqlite-devel
BuildRequires: ghc-persistent-template-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-regex-tdfa-devel
BuildRequires: ghc-resourcet-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-sandi-devel
BuildRequires: ghc-securemem-devel
BuildRequires: ghc-shakespeare-devel
BuildRequires: ghc-socks-devel
BuildRequires: ghc-split-devel
BuildRequires: ghc-stm-chans-devel
BuildRequires: ghc-stm-devel
BuildRequires: ghc-tagsoup-devel
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-quickcheck-devel
BuildRequires: ghc-tasty-rerun-devel
BuildRequires: ghc-template-haskell-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-torrent-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-unix-compat-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-unliftio-core-devel
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-utf8-string-devel
BuildRequires: ghc-uuid-devel
BuildRequires: ghc-vector-devel
BuildRequires: ghc-wai-devel
BuildRequires: ghc-wai-extra-devel
BuildRequires: ghc-warp-devel
BuildRequires: ghc-warp-tls-devel
BuildRequires: ghc-yesod-core-devel
BuildRequires: ghc-yesod-devel
BuildRequires: ghc-yesod-form-devel
BuildRequires: ghc-yesod-static-devel
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, with a dozen
cloud storage providers 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
%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-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
%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}
%{_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