8a719e4
Name:           repo
bab05aa
Version:        2.45
8a719e4
Release:        %autorelease
8a719e4
Summary:        Repository management tool built on top of git
8a719e4
46d87f3
License:        Apache-2.0
8a719e4
URL:            https://gerrit.googlesource.com/git-repo
8a719e4
Source0:        %{url}/+archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
8a719e4
8a719e4
BuildArch:      noarch
8a719e4
8a719e4
BuildRequires:  python3-devel
845fd65
BuildRequires:  python3-pytest
8a719e4
BuildRequires:  git
8a719e4
BuildRequires:  gnupg2
8a719e4
BuildRequires:  tree
8a719e4
8a719e4
Requires:       git
8a719e4
Requires:       gnupg2
8a719e4
8a719e4
%description
8a719e4
Repo is a tool built on top of Git. Repo helps manage many Git repositories,
8a719e4
does the uploads to revision control systems, and automates parts of the
8a719e4
development workflow. Repo is not meant to replace Git, only to make it easier
8a719e4
to work with Git.
8a719e4
8a719e4
%prep
8a719e4
%autosetup -c %{name}-%{version}
8a719e4
8a719e4
%generate_buildrequires
8a719e4
%pyproject_buildrequires -t
8a719e4
8a719e4
%build
8a719e4
# repo is an unusual tool because it downloads all of its own Python modules
8a719e4
# at runtime using GPG-signed git tags, and stores those files as part of the
8a719e4
# project that it is working with. This package just provides the wrapper
8a719e4
# script, which provides the GPG signing keys for verifying that the correct
8a719e4
# Python code was downloaded, so there's nothing to actually build.
8a719e4
8a719e4
%install
8a719e4
install -Dpm0755 -t %{buildroot}%{_bindir} %{name}
8a719e4
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 man/%{name}*.1
8a719e4
install -Dpm0644 completion.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
8a719e4
8a719e4
%check
845fd65
%{py3_test_envvars} %{python3} -c 'import pytest; pytest.main()'
8a719e4
8a719e4
%files
8a719e4
%license LICENSE
8a719e4
%doc README.md docs/*.md
8a719e4
%{_bindir}/%{name}
8a719e4
%{_mandir}/man1/%{name}*.1*
8a719e4
%dir %{_datadir}/bash-completion
8a719e4
%dir %{_datadir}/bash-completion/completions
8a719e4
%{_datadir}/bash-completion/completions/%{name}
8a719e4
8a719e4
%changelog
8a719e4
%autochangelog