diff --git a/misp-objects.tar.gz b/misp-objects.tar.gz index ee3ccbb..918f8b9 100644 --- a/misp-objects.tar.gz +++ b/misp-objects.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f669c6758f20d0cb27a4a8182533b0644696c6b3b20ef6270856bbb66882810f -size 182937 +oid sha256:402f6e3e908c1cfeb64f9d5bda320f631a80f9ccd9c4d23c3f9500c4b4b923e1 +size 184911 diff --git a/python-pymisp-2.4.135.3.tar.gz b/python-pymisp-2.4.135.3.tar.gz deleted file mode 100644 index 1b37f63..0000000 --- a/python-pymisp-2.4.135.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6acea3e1a78f3e91657a59d4636df0ada222941a7748d014a80028e6ead1eef3 -size 1752812 diff --git a/python-pymisp-2.4.138.tar.gz b/python-pymisp-2.4.138.tar.gz new file mode 100644 index 0000000..533d6bb --- /dev/null +++ b/python-pymisp-2.4.138.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc70add1f24438a38a9bb5c496202c5538eb5fedcba69241d69d9e845eefad47 +size 1792283 diff --git a/python-pymisp-doc-rpmlintrc b/python-pymisp-doc-rpmlintrc new file mode 100644 index 0000000..00a2c77 --- /dev/null +++ b/python-pymisp-doc-rpmlintrc @@ -0,0 +1 @@ +addFilter("python-pymisp-doc.noarch: W: zero-length /usr/share/doc/packages/python-pymisp-doc/examples/feed-generator/output/empty") diff --git a/python-pymisp.changes b/python-pymisp.changes index 7b8db9d..e70a0b7 100644 --- a/python-pymisp.changes +++ b/python-pymisp.changes @@ -1,3 +1,233 @@ +------------------------------------------------------------------- +Sat Feb 20 14:20:55 UTC 2021 - Sebastian Wagner + +- Add a rpmlintrc file to ignore warning about an empty file in the examples of the documentation +- update to version 2.4.138: + - Changes + - Bump version. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] +- update to version 2.4.137.4: + - Changes + - Bump changelog. [Raphaël Vinot] + - Bump version. [Raphaël Vinot] + - Bump objects. [Raphaël Vinot] + - Add kw_params to tags. [Raphaël Vinot] + - Bump objects. [Raphaël Vinot] + - Bump template ID in test case. [Raphaël Vinot] +- update to version 2.4.137.3: + - Changes + - Bump version. [Raphaël Vinot] + - Bump changelog. [Raphaël Vinot] + - Bump objects. [Raphaël Vinot] + - Fix and improve optional dependencies. [Raphaël Vinot] + - Make brotli optional. [Raphaël Vinot] +- update to version 2.4.137.2: + - New + - Add in ability to create/update/delete MISP Event Reports. [Tom King] + - Hard delete flag for objects. [Raphaël Vinot] + - Fail if a duplicate object is added to an event. [Raphaël Vinot] + - Support brotli compression. [Jakub Onderka] + - Hard delete flag for objects. [Raphaël Vinot] + - Fail if a duplicate object is added to an event. [Raphaël Vinot] + - Add in ability to create/update/delete MISP Event Reports. [Tom King] + - Add in ability to create/update/delete MISP Event Reports. [Tom King] + - Hard delete flag for objects. [Raphaël Vinot] + - Changes + - Bump changelog. [Raphaël Vinot] + - Bump version. [Raphaël Vinot] + - Add brotli support in the dependencies. [Raphaël Vinot] + - Make mypy happy. [Raphaël Vinot] + - Make clear that to_json returns str. [Raphaël Vinot] + - Disable correlation on malware-sample for FileObject. [Raphaël Vinot] + - Bump objects templates. [Raphaël Vinot] + - Add missing autodoc. [Raphaël Vinot] + fix #693 + - Add in delete function for a MISP Object. [Tom King] + - Fix return of delete_event_report. [Raphaël Vinot] + - Remove critical warning if lief is not installed. [Raphaël Vinot] + Fix https://github.com/MISP/MISP/issues/6908 + - Bump deps. [Raphaël Vinot] + - Allow response of delete to be pythonify, add in nosetest. [Tom King] + - Add ability to get event reports from the Event ID. [Tom King] + - Remove travis file, GH Actions is better. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Remove critical warning if lief is not installed. [Raphaël Vinot] + Fix https://github.com/MISP/MISP/issues/6908 + - Add test case fir add_attribute and enforceWarninglist=True. [Raphaël + Vinot] + - Add testcase with breakOnDuplicate in a MISPObject. [Raphaël Vinot] + - Bump changelog. [Raphaël Vinot] + - Bump version. [Raphaël Vinot] + - Add test case for page/limit in logs search. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Improve docstring for get_event. [Raphaël Vinot] + fix #686 + - Bump changelog. [Raphaël Vinot] + - Bump version. [Raphaël Vinot] + - Show size when the json is not loadable. [Raphaël Vinot] + - Add authenticode support in generate_file_objects. [Raphaël Vinot] + - Use lief 0.11.0, generate authenticode entries. [Raphaël Vinot] + - Bump objects. [Raphaël Vinot] + - Bump deps, add 3.9 in GH. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Bump deps, objects templates. [Raphaël Vinot] + - Make clear that to_json returns str. [Raphaël Vinot] + - Disable correlation on malware-sample for FileObject. [Raphaël Vinot] + - Bump objects templates. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Add missing autodoc. [Raphaël Vinot] + fix #693 + - Add in delete function for a MISP Object. [Tom King] + - Bump deps. [Raphaël Vinot] + - Fix return of delete_event_report. [Raphaël Vinot] + - Remove travis file, GH Actions is better. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Remove critical warning if lief is not installed. [Raphaël Vinot] + Fix https://github.com/MISP/MISP/issues/6908 + - Add test case fir add_attribute and enforceWarninglist=True. [Raphaël + Vinot] + - Add testcase with breakOnDuplicate in a MISPObject. [Raphaël Vinot] + - Bump changelog. [Raphaël Vinot] + - Bump version. [Raphaël Vinot] + - Add test case for page/limit in logs search. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Improve docstring for get_event. [Raphaël Vinot] + fix #686 + - Bump changelog. [Raphaël Vinot] + - Bump version. [Raphaël Vinot] + - Show size when the json is not loadable. [Raphaël Vinot] + - Add authenticode support in generate_file_objects. [Raphaël Vinot] + - Use lief 0.11.0, generate authenticode entries. [Raphaël Vinot] + - Bump objects. [Raphaël Vinot] + - Bump deps, add 3.9 in GH. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Bump deps, objects templates. [Raphaël Vinot] + - Allow response of delete to be pythonify, add in nosetest. [Tom King] + - Add ability to get event reports from the Event ID. [Tom King] + - Remove travis file, GH Actions is better. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Remove critical warning if lief is not installed. [Raphaël Vinot] + Fix https://github.com/MISP/MISP/issues/6908 + - Add test case fir add_attribute and enforceWarninglist=True. [Raphaël + Vinot] + - Add testcase with breakOnDuplicate in a MISPObject. [Raphaël Vinot] + - Fix + - Flake error. [Raphaël Vinot] + - Update testlive accordingly. [Raphaël Vinot] + - Better warning if lief is outdated. [Raphaël Vinot] + - Call the AbstractMISP.from_dict at the end of the function to ensure + the edited flag remains false. [Tom King] + - Better warning if lief is outdated. [Raphaël Vinot] + - Update minimal dependency for lief in setup.py. [Raphaël Vinot] + - [dev mode only] force older jedi to avoid ipython exception. [Raphaël + Vinot] + - Add python 3.9 in GH Actions. [Raphaël Vinot] + - Update testlive accordingly. [Raphaël Vinot] + - Better warning if lief is outdated. [Raphaël Vinot] + - Update minimal dependency for lief in setup.py. [Raphaël Vinot] + - [dev mode only] force older jedi to avoid ipython exception. [Raphaël + Vinot] + - Add python 3.9 in GH Actions. [Raphaël Vinot] + - Call the AbstractMISP.from_dict at the end of the function to ensure + the edited flag remains false. [Tom King] +- update to version 2.4.137.1: + - New + - Fail if a duplicate object is added to an event. [Raphaël Vinot] + - Changes + - Bump changelog. [Raphaël Vinot] + - Bump version. [Raphaël Vinot] + - Add test case for page/limit in logs search. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Improve docstring for get_event. [Raphaël Vinot] + fix #686 + - Bump changelog. [Raphaël Vinot] + - Fix + - Better warning if lief is outdated. [Raphaël Vinot] + - Update minimal dependency for lief in setup.py. [Raphaël Vinot] +- update to version 2.4.137: + - New + - Allow to pass an object template to MISPObject.__init__ [Raphaël + Vinot] + MISPObject part of #6670 + - Changes + - Bump version. [Raphaël Vinot] + - Show size when the json is not loadable. [Raphaël Vinot] + - Add authenticode support in generate_file_objects. [Raphaël Vinot] + - Use lief 0.11.0, generate authenticode entries. [Raphaël Vinot] + - Bump objects. [Raphaël Vinot] + - Bump deps, add 3.9 in GH. [Raphaël Vinot] + - Bump deps. [Raphaël Vinot] + - Bump deps, objects templates. [Raphaël Vinot] + - Add controller argument to get_csv script. [Raphaël Vinot] + - [test] file object template are now 24. [Alexandre Dulaunoy] + - [test] file object template is now at version 24. [Alexandre Dulaunoy] + - [misp-objects] updated. [Alexandre Dulaunoy] + - [type] favicon-mmh3 is the murmur3 hash of a favicon as used in + Shodan. [Alexandre Dulaunoy] + - [misp-objects] updated to the latest version. [Alexandre Dulaunoy] + - Clarify misp_objects_template_custom. [Raphaël Vinot] + - Add docstring for misp_objects_template_custom. [Raphaël Vinot] + - Trigger GH actions on PR. [Raphaël Vinot] + - Improve documentation of MISPAttribute.malware_binary. [Raphaël Vinot] + - Remove trailing space. [Raphaël Vinot] + - On-demand decryption of malware-binary, speeds up pythonify. [Raphaël + Vinot] + - Force a few packages versions. [Raphaël Vinot] + - Fix + - [dev mode only] force older jedi to avoid ipython exception. [Raphaël + Vinot] + - Add python 3.9 in GH Actions. [Raphaël Vinot] + - Do not fail if extract_msg is missing. [Raphaël Vinot] + - Properly decode the body depending on the encoding of the email. + [Raphaël Vinot] + Fix #671 + - Properly match IO in load event. [Raphaël Vinot] + - Typing on recent mypy. [Raphaël Vinot] + - Typing edge case. [Raphaël Vinot] + - Add attribute dict as proposal. [Raphaël Vinot] + - Other + - Noticed that test data mail_5.msg was malformatted. Replaced with + working test msg. [seamus tuohy] + - Updated emailobject. [seamus tuohy] + Email object no longer requires extra php libraries for install. + Tests have been expanded to improve coverage. + RTF encapsulated HTML and Plain Text will now be de-encapsulated. + The raw MSG binary will now be included in the extracted email object. + - Adding check if "from" is in the "received" header row. [nighttardis] + - Update `vmray_automation` to stay compatible with the changes made to + `vmray_import` MISP modules. [Jens Thom] + - Update mispevent.py. [Raphaël Vinot] +- update to version 2.4.135.3: + - Changes + - Bump changelog. [Raphaël Vinot] + - Bump version. [Raphaël Vinot] + - Improve typing. [Raphaël Vinot] + - Improve add_attribute with a list. [Raphaël Vinot] + - Fix + - Do not fail on PyMISP import when mail-parser is not present. [Raphaël + Vinot] +- update to version 2.4.135.2: + - New + - Add Github workflow. [Raphaël Vinot] + - Changes + - Bump changelog. [Raphaël Vinot] + - Bump version. [Raphaël Vinot] + - Improve error message if a type in missing. [Raphaël Vinot] + - [type] process-state added. [Alexandre Dulaunoy] + - Bump misp-objects. [Raphaël Vinot] + - [misp-objects] updated. [Alexandre Dulaunoy] + - Add path to CSV sample files. [Raphaël Vinot] + - [types] jarm-fingerprint added. [Alexandre Dulaunoy] + - Fix + - Remove python 3.9 from action (lief not supported yet) [Raphaël Vinot] + - Initialize submodules in gh action. [Raphaël Vinot] + - Make mail-parser really optional. [Raphaël Vinot] +- update to version 2.4.135.1: + - Changes + - Bump changelog. [Raphaël Vinot] + - Bump version, travis install. [Raphaël Vinot] + - Make mail-parser an optional dependency. [Raphaël Vinot] + ------------------------------------------------------------------- Wed Nov 25 20:55:45 UTC 2020 - Sebastian Wagner diff --git a/python-pymisp.spec b/python-pymisp.spec index 599965e..ce63bd9 100644 --- a/python-pymisp.spec +++ b/python-pymisp.spec @@ -1,7 +1,7 @@ # # spec file for package python-pymisp # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,9 +18,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 -%define misp_objects_revision c234a4b36dac02f4a6b0b800cf90b5bce404a474 +%define misp_objects_revision 2b1c3532dccad651f960ff71defdbc422c40ef0c Name: python-pymisp -Version: 2.4.135.3 +Version: 2.4.138 Release: 0 Summary: Python API for MISP License: BSD-2-Clause @@ -37,17 +37,23 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-jsonschema +Requires: python-oletools Requires: python-python-dateutil Requires: python-requests +Recommends: python-extract-msg >= 0.28.0 Recommends: %{name}-doc Recommends: python-magic +Recommends: python-reportlab Suggests: python-pydeep BuildArch: noarch # SECTION tests BuildRequires: %{python_module Deprecated} BuildRequires: %{python_module jsonschema} +BuildRequires: %{python_module oletools} +BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module python-magic} +BuildRequires: %{python_module reportlab} BuildRequires: %{python_module requests-mock} BuildRequires: %{python_module requests} # /SECTION @@ -92,7 +98,9 @@ popd %check export LANG=en_US.UTF-8 -%python_exec setup.py test +# requires optional dependencies which we don't have (extract_msg, RTFDE etc.) +rm tests/test_emailobject.py +%pytest %files %{python_files} %doc README.md diff --git a/update-misp-objects.sh b/update-misp-objects.sh index aefcfd1..58e2d57 100644 --- a/update-misp-objects.sh +++ b/update-misp-objects.sh @@ -3,3 +3,5 @@ version=$(awk '/^Version:/ {print $2}' python-pymisp.spec) revision=$(wget "https://github.com/MISP/PyMISP/tree/v$version/pymisp/data" -O - | awk '/\/MISP\/misp-objects\/tree\//' | egrep -o "[[:alnum:]]{40}") sed -i "s/^\%define misp_objects_revision.*$/%define misp_objects_revision $revision/" python-pymisp.spec +rm misp-objects.tar.gz +osc service runall download_files