File git-extras.spec of Package git-extras
#
# spec file for package git-extras
#
# Copyright (c) 2020 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-extras
Version: 7.2.0
Release: 0
Summary: GIT utilities -- repo summary, repl, changelog population, author commit percentages and more
License: MIT
Group: Development/Tools/Version Control
URL: https://github.com/tj/%{name}
Source0: %{name}-%{version}.tar.zst
Requires: bash-completion
Requires: git
Conflicts: git-delta
Conflicts: git-mr
Conflicts: git-sync
BuildArch: noarch
%description
%{name} adds the following extra-commands to git:
alias, archive-file, bug, changelog, commits-since, contrib, count,
create-branch, delete-branch, delete-submodule, delete-tag, effort,
extras, feature, fresh-branch, gh-pages, graft, ignore, info,
local-commits, obliterate, promote, refactor, release, repl, setup,
squash, summary, touch, undo
For more information about the extra-commands, see the included
README.md, HTML, markdown or man-pages.
%prep
%setup -q
# remove `/usr/bin/env` from hashbang
sed -i -e "s/\/usr\/bin\/.*sh/\/bin\/bash/g" \
bin/*
%build
%install
%make_install PREFIX=%{_prefix} SYSCONFDIR=%{_sysconfdir}
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d \
html md
install -pm 0644 man/*.html html
install -pm 0644 man/*.md md
%files
%doc AUTHORS Commands.md History.md Readme.md html/ md/
%{_sysconfdir}/bash-completion
%license LICENSE
%{_bindir}/*
%{_mandir}/man*/*
%changelog