Blob Blame History Raw
Name:           repo
Version:        2.29.1
Release:        %autorelease
Summary:        Repository management tool built on top of git

License:        ASL 2.0
Source0:        %{url}/+archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  git
BuildRequires:  gnupg2
BuildRequires:  sed
BuildRequires:  tree

Requires:       git
Requires:       gnupg2

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.

%autosetup -c %{name}-%{version}

%pyproject_buildrequires -t

# Fix shebang
sed -i 's:#!/usr/bin/env python:#!/usr/bin/python3:' %{name}

# repo is an unusual tool because it downloads all of its own Python modules
# at runtime using GPG-signed git tags, and stores those files as part of the
# project that it is working with. This package just provides the wrapper
# script, which provides the GPG signing keys for verifying that the correct
# Python code was downloaded, so there's nothing to actually build.

install -Dpm0755 -t %{buildroot}%{_bindir} %{name}
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 man/%{name}*.1
install -Dpm0644 completion.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}


%license LICENSE
%doc docs/*.md
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions