Name: git-phab Version: 2.0.0 Release: 1%{?dist} Summary: Git subcommand to integrate with phabricator License: GPLv2+ URL: https://phabricator.freedesktop.org/diffusion/GITPHAB/ # git clone https://phabricator.freedesktop.org/diffusion/GITPHAB/git-phab.git # cd git-phab # export VERSION=2.0.0 # git archive --format=tar.gz --prefix=git-phab-$VERSION/ $VERSION -o git-phab-$VERSION.tar.gz Source0: %{name}-%{version}.tar.gz Patch0: 0001-setup.py-don-t-setup_require-pre-commit.patch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: %{_bindir}/a2x Requires: python3-GitPython >= 2.0.0 Requires: python3-appdirs Requires: python3-argcomplete Requires: python3-phabricator BuildArch: noarch %description %{summary}. %prep %autosetup %build %py3_build a2x --doctype manpage --format manpage %{name}.txt %install %py3_install install -m 0644 -p -D -t %{buildroot}%{_mandir}/man1/ %{name}.1 %files %license COPYING %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{python3_sitelib}/%(n=%{name}; echo ${n//-/_})-*.egg-info/ %changelog * Sat Jan 07 2017 Igor Gnatenko - 2.0.0-1 - Initial package