File python-gertty.spec of Package python-gertty
#
# spec file for package python-gertty
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: python-gertty
Version: 1.4.0
Release: 0
Summary: Gertty is a console-based interface to the Gerrit Code Review system
License: Apache-2.0
Group: Development/Languages/Python
Url: http://www.openstack.org/
Source: https://files.pythonhosted.org/packages/source/g/gertty/gertty-%{version}.tar.gz
# dependencies from py2pack:
BuildRequires: python-GitPython >= 0.3.7
BuildRequires: python-PyYAML >= 3.1.0
BuildRequires: python-SQLAlchemy >= 1.0.4
BuildRequires: python-alembic >= 0.6.4
BuildRequires: python-devel
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: python-ordereddict
%endif
BuildRequires: python-pbr >= 0.11
BuildRequires: python-ply >= 3.4
BuildRequires: python-python-dateutil
BuildRequires: python-requests >= 2.5.3
BuildRequires: python-setuptools
BuildRequires: python-six
BuildRequires: python-urwid >= 1.2.1
BuildRequires: python-voluptuous >= 0.7
Requires: python-GitPython >= 0.3.7
Requires: python-PyYAML >= 3.1.0
Requires: python-SQLAlchemy >= 1.0.4
Requires: python-alembic >= 0.6.4
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
Requires: python-ordereddict
%endif
Requires: python-pbr >= 0.11
Requires: python-ply >= 3.4
Requires: python-python-dateutil
Requires: python-requests >= 2.5.3
Requires: python-six
Requires: python-urwid >= 1.2.1
Requires: python-voluptuous >= 0.7
# manually added dependencies:
BuildRequires: dos2unix
BuildRequires: python-sphinx
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
Gertty is a console-based interface to the Gerrit Code Review system.
As compared to the web interface, the main advantages are:
* Workflow -- the interface is designed to support a workflow similar
to reading network news or mail. In particular, it is designed to
deal with a large number of review requests across a large number
of projects.
* Offline Use -- Gertty syncs information about changes in subscribed
projects to a local database and local git repos. All review
operations are performed against that database and then synced back
to Gerrit.
* Speed -- user actions modify locally cached content and need not
wait for server interaction.
* Convenience -- because Gertty downloads all changes to local git
repos, a single command instructs it to checkout a change into that
repo for detailed examination or testing of larger changes.
%prep
%setup -q -n gertty-%{version}
%build
python setup.py build
dos2unix LICENSE # avoid rpmlint warnings
python setup.py build_sphinx
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -m 0644 -D build/sphinx/man/gertty.1 $RPM_BUILD_ROOT%{_mandir}/man1/gertty.1
%files
%defattr(-,root,root,-)
%doc LICENSE AUTHORS ChangeLog README.rst
%{_bindir}/gertty
%{_mandir}/man1/*
%{python_sitelib}/*
%{_datadir}/gertty
%changelog