File repo.spec of Package repo

#
# spec file for package repo
#
# 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 ingo.goeppert+opensuse@mailbox.org
#

Name:          repo
Version:       2.13.8
Release:       0
Summary:       The Multiple Git Repository Tool
License:       Apache-2.0
Group:         Development
Source:        git-%{name}-%{version}.tar.xz
URL:           https://gerrit.googlesource.com/git-repo
BuildArch:     noarch
Requires:      git
Requires:      python3 >= 3.6

%description
Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to
revision control systems, and automates parts of the development  workflow. Repo is not meant to
replace Git, only to make it easier to work with  Git.  The repo command is an executable Python
script that you can put anywhere in your path.

%prep
%setup -q -n git-repo-%{version}
# fix shebang
sed -i -E "s|#!/usr/bin/env python3|#!/usr/bin/python3|" %{name}
# remove unnecessary document
rm -f docs/windows.md

%build
# nothing to build

%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}

%files
%defattr(-,root,root)
%doc README.md docs/*.md
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by