Blame python-resultsdb_api.spec

fd29e7
Name:           python-resultsdb_api
80d220
# NOTE: if you update version, *make sure* to also update `setup.py`
b5140c
Version:        2.1.1
54b3db
Release:        1%{?dist}
fd29e7
Summary:        Interface api to ResultsDB
fd29e7
fd29e7
License:        GPLv2+
80d220
URL:            https://pagure.io/taskotron/resultsdb_api
80d220
Source0:        https://qa.fedoraproject.org/releases/resultsdb_api/resultsdb_api-%{version}.tar.gz
fd29e7
fd29e7
BuildArch:      noarch
fd29e7
fd29e7
BuildRequires:  git
fd29e7
BuildRequires:  python2-devel
586e2e
BuildRequires:  python2-pytest-cov
586e2e
BuildRequires:  python2-setuptools
586e2e
BuildRequires:  python2-simplejson
dc2691
dc2691
%if 0%{?fedora}
dc2691
BuildRequires:  python2-pytest
dc2691
BuildRequires:  python2-requests
586e2e
BuildRequires:  python2-virtualenv
dc2691
%else
dc2691
BuildRequires:  pytest
dc2691
BuildRequires:  python-requests
dc2691
BuildRequires:  python-virtualenv
dc2691
%endif
dc2691
b3bcc0
%if (0%{?fedora} && 0%{?fedora} <= 27) || (0%{?epel} && 0%{?epel} <= 7)
dc2691
BuildRequires:  python-dingus
dc2691
%else
dc2691
BuildRequires:  python2-dingus
dc2691
%endif
fd29e7
fd29e7
%{?python_provide:%python_provide python-resultsdb_api}
fd29e7
39e01b
%global _description\
fd29e7
Interface api to ResultsDB
fd29e7
39e01b
%description %_description
39e01b
89d434
# ********* Python 2 package **********
89d434
39e01b
%package -n python2-resultsdb_api
39e01b
Summary: %summary
586e2e
Requires:       python2-simplejson
54b3db
Requires:       python2-six
89d434
89d434
%if 0%{?fedora}
89d434
Requires:       python2-requests
89d434
%else
89d434
Requires:       python-requests
89d434
%endif
89d434
39e01b
%{?python_provide:%python_provide python2-resultsdb_api}
39e01b
39e01b
%description -n python2-resultsdb_api %_description
39e01b
89d434
# *************************************
89d434
fd29e7
%prep
fd29e7
%setup -q -n resultsdb_api-%{version}
fd29e7
fd29e7
%check
80d220
## FIXME: fix the test suite
89d434
## https://pagure.io/taskotron/resultsdb_api/issue/1
80d220
# make test
fd29e7
fd29e7
%build
fd29e7
%{__python2} setup.py build
fd29e7
fd29e7
%install
fd29e7
%{__python2} setup.py install --skip-build --root %{buildroot}
fd29e7
39e01b
%files -n python2-resultsdb_api
fd29e7
%doc README.md
fd29e7
%license LICENSE
fd29e7
%{python2_sitelib}/resultsdb_api.*
fd29e7
%{python2_sitelib}/*.egg-info
fd29e7
fd29e7
%changelog
b5140c
* Fri Apr 06 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.1.1-1
b5140c
- Fix the python.six interaction with non-string inputs
b5140c
1669b0
* Wed Mar 28 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.1.0-1
1669b0
- Add support for auth token
1669b0
- Retry on HTTP 500 errors by default
b5140c
- py3: Updates to work with Python 3
1669b0
54b3db
* Mon Feb 19 2018 Steve Milner <smilner@redhat.com> - 2.0.1-1
54b3db
- Added six to support py2/py3 changes in the source.
54b3db
89d434
* Thu Feb 08 2018 Kamil Páral <kparal@redhat.com> - 2.0.0-9
89d434
- fix yet another dependency issue for EPEL
89d434
b3bcc0
* Mon Feb 05 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.0-8
b3bcc0
- Fix condition for EPEL
b3bcc0
dc2691
* Mon Feb 05 2018 Kamil Páral <kparal@redhat.com> - 2.0.0-7
dc2691
- Fix deps for EPEL
dc2691
454895
* Fri Feb 02 2018 Kamil Páral <kparal@redhat.com> - 2.0.0-6
454895
- Accomodate deps for F27 and older
454895
586e2e
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.0-5
586e2e
- Update Python 2 dependency declarations to new packaging standards
586e2e
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
586e2e
39e01b
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.0-4
39e01b
- Python 2 binary package renamed to python2-resultsdb_api
39e01b
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
39e01b
a9c2de
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
a9c2de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a9c2de
9c1ad2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
9c1ad2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9c1ad2
80d220
* Thu Feb 02 2017 Kamil Páral <kparal@redhat.com> - 2.0.0-1
80d220
- fix like: filter
80d220
- synchronize major version number with resultsdb major number
80d220
- disable the test suite until it is fixed
80d220
7a8bb3
* Thu Nov 3 2016 Tim Flink <tflink@fedoraproject.org> - 1.3.0-1
7a8bb3
- add support for resultsdb 2.0
ed801c
fd29e7
* Wed May 25 2016 Martin Krizek <mkrizek@redhat.com> - 1.2.2-3
fd29e7
- remove not needed custom python_sitelib macro
fd29e7
fd29e7
* Tue May 24 2016 Martin Krizek <mkrizek@redhat.com> - 1.2.2-2
fd29e7
- rename to python-resultsdb_api (obsolete resultsdb_api)
fd29e7
- add python_provide
fd29e7
- add LICENSE file
fd29e7
- add check
fd29e7
fd29e7
* Wed Jul 8 2015 Martin Krizek <mkrizek@redhat.com> - 1.2.2-1
fd29e7
- Remove trailing slashes from url before it's used
fd29e7
- Add missing python-simplejson dependency
fd29e7
fd29e7
* Thu Apr 9 2015 Tim Flink <tflink@fedoraproject.org> - 1.2.1-1
fd29e7
- added option for retrieving job data after update_job (T456)
fd29e7
fd29e7
* Wed Apr 1 2015 Tim Flink <tflink@fedoraproject.org> - 1.2.0-1
fd29e7
- added logging capability, logging response errors
fd29e7
- added UUID support for execdb integration
fd29e7
fd29e7
* Fri May 16 2014 Tim Flink <tflink@fedoraproject.org> - 1.1.0-1
fd29e7
- Releasing resultsdb_api 1.1.0
fd29e7
fd29e7
* Fri Apr 25 2014 Tim Flink <tflink@fedoraproject.org> - 1.0.2-1
fd29e7
- bugfixes from upstream
fd29e7
fd29e7
* Fri Apr 11 2014 Tim Flink <tflink@fedoraproject.org> - 1.0.1-1
fd29e7
- initial packaging