File opencve.spec of Package opencve
#
# spec file for package opencve
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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: opencve
Version: 1.2.2
Release: 0
License: BUSL-1.1
Summary: CVE Alerting Platform
Url: https://www.opencve.io
Group: Development/Languages/Python
Source: https://github.com/opencve/opencve/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: python3-setuptools
## SECTION test requirements
BuildRequires: python3-pytest
BuildRequires: python3-Flask
BuildRequires: python3-Flask-DebugToolbar
BuildRequires: python3-Flask-RESTful
BuildRequires: python3-Flask-Admin
BuildRequires: python3-Flask-Gravatar
BuildRequires: python3-Flask-Login
BuildRequires: python3-Flask-Limiter
BuildRequires: python3-Flask-Migrate
BuildRequires: python3-Flask-User
BuildRequires: python3-Flask-Paginate
BuildRequires: python3-SQLAlchemy
BuildRequires: python3-SQLAlchemy-Utils
BuildRequires: python3-beautifulsoup4
BuildRequires: python3-celery
BuildRequires: python3-arrow
BuildRequires: python3-nested-lookup
BuildRequires: python3-deepdiff
BuildRequires: python3-psycopg2
# /SECTION
BuildRequires: fdupes
Requires: python3-beautifulsoup4
Requires: python3-Flask
Requires: python3-Flask-Admin
Requires: python3-Flask-Gravatar
Requires: python3-Flask-Login
Requires: python3-Flask-Limiter
Requires: python3-Flask-Migrate
Requires: python3-Flask-RESTful
Requires: python3-Flask-DebugToolbar
Requires: python3-Flask-Paginate
Requires: python3-SQLAlchemy
Requires: python3-SQLAlchemy-Utils
Requires: python3-arrow
Requires: python3-celery
Requires: python3-nested-lookup
Requires: python3-deepdiff
BuildArch: noarch
%description
OpenCVE is a platform used to locally import the list of CVEs and
perform searches on it (by vendors, products, CVSS, CWE...).
Users subscribe to vendors or products, and OpenCVE alerts them
when a new CVE is created or when an update is done in an existing
CVE.
%prep
%setup -q
chmod -x opencve/migrations/{env.py,README,script.py.mako}
%build
%python3_build
%install
%python3_install
%fdupes %{buildroot}%{python3_sitelib}
rm -r %{buildroot}%{python3_sitelib}/tests
%check
# disabled since it requires a live postgres-db
#PYTHONPATH=%%{buildroot}%%{python3_sitelib} pytest-3.8 -v
#pytest -v
%files
%license LICENSE
%doc CHANGELOG.md README.md
%{_bindir}/opencve
%{python3_sitelib}/opencve*
%changelog