03aa162
# Python2 macros for EPEL
03aa162
%if 0%{?rhel} && 0%{?rhel} <= 6
5f5d4bb
%{!?__python2: %global __python2 /usr/bin/python3}
03aa162
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib())")}
03aa162
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
03aa162
%endif
03aa162
03aa162
%global pypi_name gertty
03aa162
03aa162
03aa162
Name:           python-gertty
5f5d4bb
Version:        1.6.0
a84f39d
Release:        16%{?dist}
03aa162
Summary:        Gertty is a console-based interface to the Gerrit Code Review system
03aa162
03aa162
License:        ASL 2.0 
03aa162
URL:            https://pypi.python.org/pypi/gertty
03aa162
Source0:        https://pypi.python.org/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz 
9fd8233
Patch0:         fix_setup.cfg.patch
03aa162
03aa162
BuildArch:      noarch
03aa162
5f5d4bb
BuildRequires:  python3-setuptools
5f5d4bb
BuildRequires:  python3-devel
5f5d4bb
BuildRequires:  python3-requests
5f5d4bb
BuildRequires:  python3-pbr
03aa162
0cdcc90
0cdcc90
0cdcc90
%global _description\
0cdcc90
Gertty is a console-based interface to the Gerrit Code Review system. As\
0cdcc90
compared to the web interface, the main advantages are: (a) Work flow -- the\
0cdcc90
interface is designed to support a work flow similar to reading network news or\
0cdcc90
mail. In particular, it is designed to deal with a large number of review\
0cdcc90
requests across a large number of projects. (b) Offline Use -- Gertty syncs\
0cdcc90
information about changes in subscribed projects to a local database and local\
0cdcc90
git repositories. All review operations are performed against that database\
0cdcc90
and then synced back to Gerrit. (c) Speed -- user actions modify locally\
0cdcc90
cached content and need not wait for server interaction. (d) Convenience --\
0cdcc90
because Gertty downloads all changes to local git repositories, a single\
0cdcc90
command instructs it to checkout a change into that repositories for detailed\
0cdcc90
examination or testing of larger changes.
0cdcc90
0cdcc90
%description %_description
0cdcc90
5f5d4bb
%package -n python3-gertty
0cdcc90
Summary: %summary
5f5d4bb
Requires: python3-pbr
5f5d4bb
Requires: python3-urwid
5f5d4bb
Requires: python3-sqlalchemy
5f5d4bb
Requires: python3-GitPython
5f5d4bb
Requires: python3-dateutil
5f5d4bb
Requires: python3-requests
5f5d4bb
Requires: python3-alembic
5f5d4bb
Requires: python3-pyyaml
5f5d4bb
Requires: python3-voluptuous
5f5d4bb
Requires: python3-ply
5f5d4bb
Requires: python3-six
5f5d4bb
%{?python_provide:%python_provide python3-gertty}
5f5d4bb
5f5d4bb
%description -n python3-gertty %_description
03aa162
03aa162
%prep
03aa162
%setup -q -n %{pypi_name}-%{version}
9fd8233
%patch0 -p1 -b .
03aa162
03aa162
# Remove egg-info
03aa162
rm -rf gertty.egg-info
03aa162
03aa162
# We handle requirements ourselves, remove requirements.txt
03aa162
rm -rf requirements.txt
03aa162
03aa162
# Fix the wrong-file-end-of-line-encoding warning from rpmlint
03aa162
sed -i 's/\r$//' LICENSE
03aa162
03aa162
%build
5f5d4bb
%{__python3} setup.py build
03aa162
03aa162
%install
5f5d4bb
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
03aa162
5f5d4bb
%files -n python3-gertty
03aa162
%doc README.rst LICENSE CONTRIBUTING.rst
03aa162
%doc %{_datadir}/%{pypi_name}/examples/*
03aa162
%{_bindir}/*
5f5d4bb
%{python3_sitelib}/gertty-%{version}*
5f5d4bb
%{python3_sitelib}/%{pypi_name}
03aa162
03aa162
03aa162
%changelog
a84f39d
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-16
a84f39d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
a84f39d
d45c9da
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.6.0-15
d45c9da
- Rebuilt for Python 3.12
d45c9da
5ce2a74
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-14
5ce2a74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
5ce2a74
ca760b7
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-13
ca760b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
ca760b7
e7cf150
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.6.0-12
e7cf150
- Rebuilt for Python 3.11
e7cf150
8ea8e7f
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-11
8ea8e7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
8ea8e7f
2d1c63d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-10
2d1c63d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2d1c63d
538d50a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.6.0-9
538d50a
- Rebuilt for Python 3.10
538d50a
e976626
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-8
e976626
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e976626
8bad6a8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-7
8bad6a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8bad6a8
7adc7aa
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-6
7adc7aa
- Rebuilt for Python 3.9
7adc7aa
69315cf
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-5
69315cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
69315cf
b524106
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-4
b524106
- Rebuilt for Python 3.8.0rc1 (#1748018)
b524106
451d4c6
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-3
451d4c6
- Rebuilt for Python 3.8
451d4c6
d0d8f10
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
d0d8f10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d0d8f10
5f5d4bb
5f5d4bb
* Mon May 20 2019 Kashyap Chamarthy - 1.6.0-1
5f5d4bb
- Update spec to Python 3
5f5d4bb
- New upstream release 1.6.0
5f5d4bb
b2a8dff
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-5
b2a8dff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b2a8dff
7127c11
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
7127c11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7127c11
ed5efa8
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.5.0-3
ed5efa8
- Update Python 2 dependency declarations to new packaging standards
ed5efa8
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
ed5efa8
501c6b1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
501c6b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
501c6b1
b031b44
* Fri Sep 01 2017 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 1.5.0-1
b031b44
- New upstream release 1.5.0
b031b44
0cdcc90
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.0-4
0cdcc90
- Python 2 binary package renamed to python2-gertty
0cdcc90
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
0cdcc90
79a27db
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
79a27db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
79a27db
7fe2272
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
7fe2272
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7fe2272
510652a
* Wed Jul 27 2016 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 1.4.0-1
510652a
- New upstream release 1.4.0
510652a
e904d3f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-2
e904d3f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e904d3f
9597eb2
* Mon Jun 27 2016 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 1.3.2-1
9597eb2
- New upstream release 1.3.2
9597eb2
96c9da4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
96c9da4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
96c9da4
e6783c7
* Mon Dec 21 2015 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 1.3.0-1
e6783c7
- New upstream release 1.3.0
e6783c7
1c61101
* Wed Jun 10 2015 1.2.1 <kashyapc@fedoraproject.org> - 1.2.1-1
1c61101
- New upstream release 1.2.1
1c61101
- Thanks Paul Belanger <pabelanger@redhat.com> for the SPEC file
1c61101
  changes:
1c61101
   - Add missing dependency on python-six
1c61101
   - Fix spelling-error lint warnings
1c61101
27331ef
* Fri Mar 6 2015 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 1.1.0-1
27331ef
- New upstream release 1.1.0
27331ef
c547484
* Mon Jan 5 2015 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 1.0.3-4
c547484
- New build that properly installs Alembic (with the help of
c547484
  package-data in setup.cfg)
c547484
- Fixes rhbz # 1178754
c547484
ce1438e
* Mon Dec 1 2014 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 1.0.3-3
ce1438e
- Remove python-ordered dict from Requires, it is obsolete and
ce1438e
  is now provided by Python 2.7. Fedora is now at Python 2.7 (1022220)
ce1438e
03aa162
* Wed Nov 19 2014 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 1.0.3-2
03aa162
- Fix rpmlint warnings (wrong-file-end-of-line-encoding)
03aa162
- Fix and simplify RPM macros
03aa162
03aa162
* Mon Nov 17 2014 Kashyap Chamarthy <kashyapc@fedoraproject.org> - 1.0.3-1
03aa162
- Initial package