| |
@@ -11,12 +11,6 @@
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
- # while ugly, this package can only build on x86_64 because python-flask is only available for EL7
|
| |
- # on the x86_64 arch. Without adding this, building in koji is near impossible because noarch
|
| |
- # packages usually end up in ppc or arm builders
|
| |
- ExclusiveArch: x86_64 noarch
|
| |
-
|
| |
- %if 0%{?rhel} >= 8 || 0%{?fedora} >= 29
|
| |
Requires: python3-flask
|
| |
Requires: python3-flask-sqlalchemy
|
| |
Requires: python3-flask-wtf
|
| |
@@ -32,25 +26,7 @@
|
| |
Requires: python3-openid-teams
|
| |
Requires: python3-sqlalchemy
|
| |
Requires: python3-koji
|
| |
- %else
|
| |
- Requires: python-flask
|
| |
- Requires: python-flask-sqlalchemy
|
| |
- Requires: python-flask-wtf
|
| |
- Requires: python-fedora
|
| |
- Requires: python-fedora-flask
|
| |
- Requires: python-alembic
|
| |
- Requires: python-psycopg2
|
| |
- Requires: python-bugzilla
|
| |
- Requires: python-flask-admin
|
| |
- Requires: python-iso8601
|
| |
- Requires: python-openid
|
| |
- Requires: python-openid-cla
|
| |
- Requires: python-openid-teams
|
| |
- Requires: python-sqlalchemy
|
| |
- Requires: koji
|
| |
- %endif
|
| |
-
|
| |
- %if 0%{?rhel} >= 8 || 0%{?fedora} >= 29
|
| |
+
|
| |
BuildRequires: python3-pytest
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: python3-setuptools
|
| |
@@ -65,23 +41,6 @@
|
| |
BuildRequires: python3-sphinx
|
| |
BuildRequires: python3-bugzilla
|
| |
BuildRequires: python3-iso8601
|
| |
- %else
|
| |
- BuildRequires: koji
|
| |
- BuildRequires: pytest
|
| |
- BuildRequires: python-devel
|
| |
- BuildRequires: python-setuptools
|
| |
- BuildRequires: python-munch
|
| |
- BuildRequires: python-flask
|
| |
- BuildRequires: python-flask-sqlalchemy
|
| |
- BuildRequires: python-flask-admin
|
| |
- BuildRequires: python-fedora-flask
|
| |
- BuildRequires: python-mock
|
| |
- BuildRequires: python-koji
|
| |
- BuildRequires: python-sqlalchemy
|
| |
- BuildRequires: python-sphinx
|
| |
- BuildRequires: python-bugzilla
|
| |
- BuildRequires: python-iso8601
|
| |
- %endif
|
| |
|
| |
%description
|
| |
The blocker tracking app is a web front end to the currently proposed blocker
|
| |
@@ -91,27 +50,15 @@
|
| |
%setup -q
|
| |
|
| |
%check
|
| |
- %if 0%{?rhel} >= 8 || 0%{?fedora} >= 29
|
| |
%{__python3} setup.py test
|
| |
- %else
|
| |
- %{__python2} setup.py test
|
| |
- %endif
|
| |
|
| |
%build
|
| |
- %if 0%{?rhel} >= 8 || 0%{?fedora} >= 29
|
| |
%py3_build
|
| |
- %else
|
| |
- %py2_build
|
| |
- %endif
|
| |
sphinx-build -b html -d docs/_build/doctrees docs/source docs/_build/html
|
| |
sphinx-build -b man -d docs/_build/doctrees docs/source docs/_build/man
|
| |
|
| |
%install
|
| |
- %if 0%{?rhel} >= 8 || 0%{?fedora} >= 29
|
| |
%py3_install
|
| |
- %else
|
| |
- %py2_install
|
| |
- %endif
|
| |
|
| |
# alembic stuff
|
| |
mkdir -p %{buildroot}%{_datadir}/blockerbugs
|
| |
@@ -143,13 +90,8 @@
|
| |
%doc docs/_build/html/*
|
| |
%doc %{_mandir}/man1/blockerbugs*
|
| |
|
| |
- %if 0%{?rhel} >= 8 || 0%{?fedora} >= 29
|
| |
%{python3_sitelib}/%{name}/
|
| |
%{python3_sitelib}/%{name}-*.egg-info
|
| |
- %else
|
| |
- %{python2_sitelib}/%{name}/
|
| |
- %{python2_sitelib}/%{name}-*.egg-info
|
| |
- %endif
|
| |
|
| |
%{_bindir}/blockerbugs
|
| |
%dir %{_sysconfdir}/blockerbugs
|
| |
and sync setup.py install_requires with requirements.txt