|
|
635f8cf |
|
|
|
173737c |
%global upstream_version 0.7.0
|
|
|
635f8cf |
|
|
|
635f8cf |
Name: waiverdb
|
|
|
173737c |
Version: 0.7.0
|
|
|
5cc34cb |
Release: 2%{?dist}
|
|
|
635f8cf |
Summary: Service for waiving results in ResultsDB
|
|
|
635f8cf |
License: GPLv2+
|
|
|
635f8cf |
URL: https://pagure.io/waiverdb
|
|
|
635f8cf |
Source0: https://files.pythonhosted.org/packages/source/w/%{name}/%{name}-%{upstream_version}.tar.gz
|
|
|
635f8cf |
|
|
|
635f8cf |
BuildRequires: python2-devel
|
|
|
d16b104 |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
d16b104 |
BuildRequires: python2-setuptools
|
|
|
990636a |
BuildRequires: python2-sphinx
|
|
|
990636a |
BuildRequires: python-sphinxcontrib-httpdomain
|
|
|
362128a |
BuildRequires: python-sphinxcontrib-issuetracker
|
|
|
d16b104 |
BuildRequires: python2-flask
|
|
|
d16b104 |
%if 0%{?fedora} > 25
|
|
|
d16b104 |
BuildRequires: python2-sqlalchemy
|
|
|
d16b104 |
%else
|
|
|
d16b104 |
BuildRequires: python-sqlalchemy
|
|
|
990636a |
%endif
|
|
|
d16b104 |
BuildRequires: python2-flask-restful
|
|
|
d16b104 |
BuildRequires: python2-flask-sqlalchemy
|
|
|
173737c |
%if 0%{?fedora} > 27
|
|
|
173737c |
BuildRequires: python2-sqlalchemy-utils
|
|
|
173737c |
%else
|
|
|
173737c |
BuildRequires: python-sqlalchemy-utils
|
|
|
173737c |
%endif
|
|
|
d16b104 |
BuildRequires: python2-kerberos
|
|
|
d16b104 |
BuildRequires: python2-systemd
|
|
|
d16b104 |
BuildRequires: python2-pytest
|
|
|
d16b104 |
BuildRequires: python2-mock
|
|
|
d16b104 |
BuildRequires: python2-flask-oidc
|
|
|
cbb1898 |
BuildRequires: python2-configparser
|
|
|
cbb1898 |
BuildRequires: python2-click
|
|
|
cbb1898 |
BuildRequires: python2-flask-migrate
|
|
|
d16b104 |
BuildRequires: stomppy
|
|
|
d16b104 |
%else # EPEL7 uses python- naming
|
|
|
d16b104 |
BuildRequires: python-setuptools
|
|
|
635f8cf |
BuildRequires: python-flask
|
|
|
635f8cf |
BuildRequires: python-sqlalchemy
|
|
|
635f8cf |
BuildRequires: python-flask-restful
|
|
|
635f8cf |
BuildRequires: python-flask-sqlalchemy
|
|
|
173737c |
BuildRequires: python-sqlalchemy-utils
|
|
|
635f8cf |
BuildRequires: python-kerberos
|
|
|
990636a |
BuildRequires: systemd-python
|
|
|
635f8cf |
BuildRequires: pytest
|
|
|
635f8cf |
BuildRequires: python-mock
|
|
|
635f8cf |
BuildRequires: python-flask-oidc
|
|
|
cbb1898 |
BuildRequires: python-click
|
|
|
cbb1898 |
BuildRequires: python-configparser
|
|
|
cbb1898 |
BuildRequires: python-flask-migrate
|
|
|
990636a |
BuildRequires: stomppy
|
|
|
d16b104 |
%endif
|
|
|
cbb1898 |
BuildRequires: fedmsg
|
|
|
990636a |
%{?systemd_requires}
|
|
|
990636a |
BuildRequires: systemd
|
|
|
635f8cf |
BuildArch: noarch
|
|
|
d16b104 |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
d16b104 |
Requires: python2-flask
|
|
|
d16b104 |
%if 0%{?fedora} > 25
|
|
|
d16b104 |
Requires: python2-sqlalchemy
|
|
|
d16b104 |
%else
|
|
|
d16b104 |
Requires: python-sqlalchemy
|
|
|
d16b104 |
%endif
|
|
|
d16b104 |
Requires: python2-flask-restful
|
|
|
d16b104 |
Requires: python2-flask-sqlalchemy
|
|
|
173737c |
%if 0%{?fedora} > 27
|
|
|
173737c |
Requires: python2-sqlalchemy-utils
|
|
|
173737c |
%else
|
|
|
173737c |
Requires: python-sqlalchemy-utils
|
|
|
173737c |
%endif
|
|
|
d16b104 |
Requires: python2-kerberos
|
|
|
d16b104 |
Requires: python2-systemd
|
|
|
d16b104 |
Requires: python2-mock
|
|
|
d16b104 |
Requires: python2-flask-oidc
|
|
|
cbb1898 |
Requires: python2-click
|
|
|
cbb1898 |
Requires: python2-configparser
|
|
|
cbb1898 |
Requires: python2-flask-migrate
|
|
|
d16b104 |
Requires: stomppy
|
|
|
d16b104 |
%else
|
|
|
635f8cf |
Requires: python-flask
|
|
|
635f8cf |
Requires: python-sqlalchemy
|
|
|
635f8cf |
Requires: python-flask-restful
|
|
|
635f8cf |
Requires: python-flask-sqlalchemy
|
|
|
635f8cf |
Requires: python-kerberos
|
|
|
990636a |
Requires: systemd-python
|
|
|
635f8cf |
Requires: python-mock
|
|
|
635f8cf |
Requires: python-flask-oidc
|
|
|
cbb1898 |
Requires: python-click
|
|
|
cbb1898 |
Requires: python-configparser
|
|
|
cbb1898 |
Requires: python-flask-migrate
|
|
|
990636a |
Requires: stomppy
|
|
|
d16b104 |
%endif
|
|
|
cbb1898 |
Requires: fedmsg
|
|
|
635f8cf |
|
|
|
362128a |
Requires: waiverdb-common = %{version}-%{release}
|
|
|
362128a |
|
|
|
635f8cf |
%description
|
|
|
635f8cf |
WaiverDB is a companion service to ResultsDB, for recording waivers
|
|
|
635f8cf |
against test results.
|
|
|
635f8cf |
|
|
|
362128a |
%package common
|
|
|
362128a |
Summary: Common resources for WaiverDB subpackages.
|
|
|
362128a |
|
|
|
362128a |
%description common
|
|
|
362128a |
This package is not useful on its own. It contains common filesystem resources
|
|
|
362128a |
for other WaiverDB subpackages.
|
|
|
362128a |
|
|
|
362128a |
%package cli
|
|
|
362128a |
Summary: A CLI tool for interacting with waiverdb
|
|
|
362128a |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
362128a |
BuildRequires: python2-click
|
|
|
362128a |
Requires: python2-click
|
|
|
6e2017e |
Requires: python2-configparser
|
|
|
362128a |
%else
|
|
|
362128a |
BuildRequires: python-click
|
|
|
362128a |
Requires: python-click
|
|
|
6e2017e |
Requires: python-configparser
|
|
|
362128a |
%endif
|
|
|
362128a |
|
|
|
362128a |
Requires: waiverdb-common = %{version}-%{release}
|
|
|
362128a |
|
|
|
362128a |
%description cli
|
|
|
362128a |
This package contains a CLI tool for interacting with waiverdb.
|
|
|
362128a |
|
|
|
cbb1898 |
Primarily, submitting new waiverdbs.
|
|
|
362128a |
|
|
|
635f8cf |
%prep
|
|
|
635f8cf |
%setup -q -n %{name}-%{upstream_version}
|
|
|
635f8cf |
|
|
|
362128a |
# Replace any staging urls with prod ones
|
|
|
362128a |
sed -i 's/\.stg\.fedoraproject\.org/.fedoraproject.org/g' conf/client.conf.example
|
|
|
362128a |
|
|
|
635f8cf |
%build
|
|
|
635f8cf |
%py2_build
|
|
|
cbb1898 |
%if 0%{?fedora}
|
|
|
cbb1898 |
make -C docs SPHINXOPTS= html text
|
|
|
cbb1898 |
%endif
|
|
|
635f8cf |
|
|
|
635f8cf |
%install
|
|
|
635f8cf |
%py2_install
|
|
|
990636a |
install -d %{buildroot}%{_unitdir}
|
|
|
990636a |
install -m0644 \
|
|
|
990636a |
systemd/%{name}.service \
|
|
|
990636a |
systemd/%{name}.socket \
|
|
|
990636a |
%{buildroot}%{_unitdir}
|
|
|
635f8cf |
|
|
|
362128a |
install -d %{buildroot}%{_sysconfdir}/waiverdb/
|
|
|
362128a |
install -m0644 \
|
|
|
362128a |
conf/client.conf.example \
|
|
|
362128a |
%{buildroot}%{_sysconfdir}/waiverdb/client.conf
|
|
|
362128a |
|
|
|
635f8cf |
%check
|
|
|
635f8cf |
export PYTHONPATH=%{buildroot}/%{python2_sitelib}
|
|
|
635f8cf |
py.test tests/
|
|
|
635f8cf |
|
|
|
635f8cf |
%files
|
|
|
635f8cf |
%{python2_sitelib}/%{name}
|
|
|
cbb1898 |
%{python2_sitelib}/%{name}*.egg-info
|
|
|
990636a |
%{_unitdir}/%{name}.service
|
|
|
990636a |
%{_unitdir}/%{name}.socket
|
|
|
b0e995f |
%attr(755,root,root) %{_bindir}/waiverdb
|
|
|
990636a |
|
|
|
362128a |
%files common
|
|
|
362128a |
%license COPYING
|
|
|
362128a |
%doc README.md conf
|
|
|
cbb1898 |
%if 0%{?fedora}
|
|
|
cbb1898 |
%doc docs/_build/html docs/_build/text
|
|
|
cbb1898 |
%endif
|
|
|
362128a |
%{python2_sitelib}/%{name}/__init__.py*
|
|
|
362128a |
%{python2_sitelib}/%{name}*.egg-info
|
|
|
362128a |
|
|
|
362128a |
%files cli
|
|
|
362128a |
%license COPYING
|
|
|
362128a |
%{python2_sitelib}/%{name}/cli.py*
|
|
|
cbb1898 |
%attr(755,root,root) %{_bindir}/waiverdb-cli
|
|
|
362128a |
%config(noreplace) %{_sysconfdir}/waiverdb/client.conf
|
|
|
362128a |
|
|
|
990636a |
%post
|
|
|
990636a |
%systemd_post %{name}.service
|
|
|
990636a |
%systemd_post %{name}.socket
|
|
|
990636a |
|
|
|
990636a |
%preun
|
|
|
990636a |
%systemd_preun %{name}.service
|
|
|
990636a |
%systemd_preun %{name}.socket
|
|
|
990636a |
|
|
|
990636a |
%postun
|
|
|
990636a |
%systemd_postun_with_restart %{name}.service
|
|
|
635f8cf |
|
|
|
635f8cf |
%changelog
|
|
|
5cc34cb |
* Fri Feb 16 2018 Giulia Naponiello <gnaponie@redhat.com> - 0.7.0-2
|
|
|
5cc34cb |
- Bump the version to fix a minor issue.
|
|
|
5cc34cb |
|
|
|
173737c |
* Fri Feb 16 2018 Giulia Naponiello <gnaponie@redhat.com> - 0.7.0-1
|
|
|
173737c |
- Backward compatibility for submitting a waiver using the result_id.
|
|
|
173737c |
This feature will be removed in the near future.
|
|
|
173737c |
- You can now waive the absence of a result. Now it is possible to
|
|
|
173737c |
submit waivers using a subject/testcase.
|
|
|
173737c |
- Added logo in the README page.
|
|
|
173737c |
- Dummy authentication for CLI for developing and debugging reasons.
|
|
|
173737c |
|
|
|
4912d87 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
|
|
|
4912d87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
4912d87 |
|
|
|
6e2017e |
* Thu Jan 25 2018 Dan Callaghan <dcallagh@redhat.com> - 0.5.0-2
|
|
|
6e2017e |
- waiverdb-cli requires python-configparser (RHBZ#1538463)
|
|
|
6e2017e |
|
|
|
b0e995f |
* Thu Jan 11 2018 Giulia Naponiello <gnaponie@redhat.com> - 0.5.0-1
|
|
|
b0e995f |
- Return error messages in JSON
|
|
|
b0e995f |
- Support SSL cert auth
|
|
|
b0e995f |
- Allow proxyuser
|
|
|
b0e995f |
https://docs.pagure.org/waiverdb/release-notes.html#waiverdb-0-5
|
|
|
b0e995f |
|
|
|
cbb1898 |
* Thu Dec 07 2017 Ralph Bean <rbean@redhat.com> - 0.4.0-2
|
|
|
cbb1898 |
- Synchronize specfile with upstream.
|
|
|
cbb1898 |
- Docs are back.
|
|
|
cbb1898 |
|
|
|
362128a |
* Tue Nov 07 2017 Ralph Bean <rbean@redhat.com> - 0.4.0-1
|
|
|
362128a |
- Latest upstream.
|
|
|
362128a |
- Include new waiverdb-cli subpackage.
|
|
|
362128a |
- Temporarilly disable building the docs,
|
|
|
362128a |
https://pagure.io/waiverdb/issue/90
|
|
|
362128a |
|
|
|
e24c9a9 |
* Thu Oct 05 2017 Ralph Bean <rbean@redhat.com> - 0.3.1-2
|
|
|
e24c9a9 |
- Require only python-fedmsg-core.
|
|
|
e24c9a9 |
|
|
|
8157bf8 |
* Wed Sep 27 2017 Matt Jia <mjia@redhat.com> - 0.3.1-1
|
|
|
8157bf8 |
- Bump the version to fix some minor issues.
|
|
|
8157bf8 |
|
|
|
d16b104 |
* Tue Sep 26 2017 Matt Jia <mjia@redhat.com> - 0.3.1
|
|
|
d16b104 |
- new upstream release 0.3.1:
|
|
|
d16b104 |
https://docs.pagure.org/waiverdb/release-notes.html#waiverdb-0-3
|
|
|
d16b104 |
|
|
|
2b9f25a |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-2
|
|
|
2b9f25a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
2b9f25a |
|
|
|
990636a |
* Mon Jun 19 2017 Dan Callaghan <dcallagh@redhat.com> - 0.2.1-1
|
|
|
990636a |
- new upstream release 0.2.1:
|
|
|
990636a |
https://docs.pagure.org/waiverdb/release-notes.html#waiverdb-0-2
|
|
|
990636a |
|
|
|
635f8cf |
* Wed May 03 2017 Matt Jia <mjia@redhat.com> - 0.1.1-2
|
|
|
635f8cf |
- Fix the long line error in the spec file reported by rpmlint
|
|
|
635f8cf |
|
|
|
635f8cf |
* Wed Apr 26 2017 Matt Jia <mjia@redhat.com> - 0.1.1-1
|
|
|
635f8cf |
- Updated to release 0.1.1
|
|
|
d16b104 |
|