Files
python-pymisp/python-pymisp.spec
Sebastian Wagner 5fa23dcf37 - update to version 2.4.126:
- New
   - Test search with timestamp. [Raphaël Vinot]
   - Add testcase for updating partial event. [Raphaël Vinot]
   - Add pyfaup as optional dependency. [Raphaël Vinot]
   - [dev] add microblog object tool. [VVX7]
   - Very simple test case for rest search on objects. [Raphaël Vinot]
   - Self registration, object level search (initial) [Raphaël Vinot]
   - [dev] add flag to get extended misp event. [VVX7]
   - [dev] add flag to get extended misp event. [VVX7]
 - Changes
   - Bump version. [Raphaël Vinot]
   - Bump misp-object. [Raphaël Vinot]
   - Bump dependencies. [Raphaël Vinot]
   - Add test for feed partial update. [Raphaël Vinot]
   - Strip empty parameters in build_complex_query. [Raphaël Vinot]
     Fix #577
   - Simplify delete_attribute. [Raphaël Vinot]
   - Bump travis install. [Raphaël Vinot]
   - Add comment in microblog object. [Raphaël Vinot]
   - Bump dependencies. [Raphaël Vinot]
   - [dev] clean up how keys are accessed in self._parameters. [VVX7]
   - [dev] use isinstance() type check. [VVX7]
   - [dev] fix abstract generator import. add logger. [VVX7]
   - [dev] change type() == list. [VVX7]
   - Bump misp-objects. [Raphaël Vinot]
   - Bump dependencies. [Raphaël Vinot]
   - [dev] remove duplicate line. [VVX7]
   - [dev] add extend_event() test. chg typo in get_event() [VVX7]
   - Re-Bump CHANGELOG. [Raphaël Vinot]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymisp?expand=0&rev=68
2020-05-21 13:49:26 +00:00

107 lines
3.4 KiB
RPMSpec

#
# spec file for package python-pymisp
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define misp_objects_revision 10fe1b29574279902d9c9097e6e67a872ecbe2cf
Name: python-pymisp
Version: 2.4.126
Release: 0
Summary: Python API for MISP
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/MISP/PyMISP
Source0: https://github.com/MISP/PyMISP/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# github tarball misses the misp-objects subproject data
Source1: https://github.com/MISP/misp-objects/archive/%{misp_objects_revision}.tar.gz#/misp-objects.tar.gz
# pypi tarball missing some files: https://github.com/MISP/PyMISP/issues/554
#Source: https://files.pythonhosted.org/packages/source/p/pymisp/pymisp-%%{version}.tar.gz
# packaging tool
Source2: update-misp-objects.sh
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-jsonschema
Requires: python-python-dateutil
Requires: python-requests
Recommends: %{name}-doc
Recommends: python-magic
Suggests: python-pydeep
BuildArch: noarch
# SECTION tests
BuildRequires: %{python_module Deprecated}
BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module python-magic}
BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module requests}
# /SECTION
# SECTION docs
BuildRequires: python3-CommonMark
BuildRequires: python3-Sphinx
BuildRequires: python3-recommonmark
BuildRequires: python3-sphinx-autodoc-typehints
# /SECTION
Requires: python-Deprecated
%python_subpackages
%package -n %{name}-doc
Summary: Examples and Documentation for %{name}
Group: Documentation/HTML
%description
PyMISP is a Python library to access MISP platforms via their REST API.
PyMISP allows you to fetch events, add or update events/attributes, add or update samples or search for attributes.
%description -n %{name}-doc
Examples and HTML documentation for %{name}.
%prep
%setup -q -n PyMISP-%{version}
#%%setup -q -n pymisp-%%{version}
%setup -T -D -b 1 -n PyMISP-%{version}
mv ../misp-objects-*/* pymisp/data/misp-objects/
find pymisp examples -name "*.py" -type f -exec sed -i '1s/^#!.*//' '{}' \+
%build
%python_build
pushd docs
export LANG=en_US.UTF-8
make %{?_smp_mflags} html
rm build/html/.buildinfo
popd
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%python_exec setup.py test
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%files -n %{name}-doc
%doc examples docs/build/html
%changelog