This commit is contained in:
Jens Petersen 2020-03-30 00:33:58 +08:00
parent 9126896135
commit 80efdaa02b
3 changed files with 88 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/git-repair-1.20200102.tar.gz

86
git-repair.spec Normal file
View File

@ -0,0 +1,86 @@
# generated by cabal-rpm-2.0.2
# https://fedoraproject.org/wiki/Packaging:Haskell
Name: git-repair
Version: 1.20200102
Release: 1%{?dist}
Summary: Repairs a damanged git repisitory
License: AGPLv3
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-IfElse-static
BuildRequires: ghc-QuickCheck-static
BuildRequires: ghc-async-static
BuildRequires: ghc-attoparsec-static
BuildRequires: ghc-base-static
BuildRequires: ghc-bytestring-static
BuildRequires: ghc-containers-static
BuildRequires: ghc-data-default-static
BuildRequires: ghc-deepseq-static
BuildRequires: ghc-directory-static
BuildRequires: ghc-exceptions-static
BuildRequires: ghc-filepath-static
BuildRequires: ghc-filepath-bytestring-static
BuildRequires: ghc-hslogger-static
BuildRequires: ghc-mtl-static
BuildRequires: ghc-network-static
BuildRequires: ghc-network-uri-static
BuildRequires: ghc-optparse-applicative-static
BuildRequires: ghc-process-static
BuildRequires: ghc-split-static
BuildRequires: ghc-text-static
BuildRequires: ghc-time-static
BuildRequires: ghc-transformers-static
BuildRequires: ghc-unix-static
BuildRequires: ghc-unix-compat-static
BuildRequires: ghc-utf8-string-static
# End cabal-rpm deps
BuildRequires: git-core
Requires: git-core
%description
Git-repair can repair various forms of damage to git repositories.
It is a complement to git fsck, which finds problems, but does not fix them.
As well as avoiding the need to rm -rf a damaged repository and re-clone, using
git-repair can help rescue commits you've made to the damaged repository and
not yet pushed out.
%prep
# Begin cabal-rpm setup:
%setup -q
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_bin_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_bin_install
# End cabal-rpm install
%files
# Begin cabal-rpm files:
%license COPYRIGHT
%doc CHANGELOG TODO
%{_bindir}/%{name}
# End cabal-rpm files
%changelog
* Wed Feb 19 2020 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.20200102-1
- spec file generated by cabal-rpm-2.0.2

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (git-repair-1.20200102.tar.gz) = 50502d1afe4d0ad40ef18018ae8fa04be94f9b29f47e09e470e3b320c05a734a7a5b9ab84bf4b971b9cbf78902b99dac72a38dcbf09d3e4c3362109205137c53