2016-08-08 09:39:46 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-efilter
|
|
|
|
|
#
|
2020-01-09 19:48:47 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2016-08-08 09:39:46 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-10-14 13:37:31 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-08-08 09:39:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2020-01-09 19:48:47 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-01-13 12:44:06 +00:00
|
|
|
Name: python-efilter
|
|
|
|
|
Version: 1.6.0
|
2016-08-08 09:39:46 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: EFILTER query language
|
2019-10-14 13:37:31 +00:00
|
|
|
License: Apache-2.0
|
2020-01-13 12:44:06 +00:00
|
|
|
URL: https://github.com/rekall-innovations/efilter
|
|
|
|
|
Source0: https://github.com/rekall-innovations/efilter/archive/v%{version}.tar.gz
|
2020-05-05 14:27:15 +00:00
|
|
|
# fix executable in tests
|
|
|
|
|
Patch0: fix-executable.patch
|
2020-01-13 12:44:06 +00:00
|
|
|
BuildRequires: %{python_module future}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module python-dateutil}
|
|
|
|
|
BuildRequires: %{python_module pytz}
|
2020-01-09 19:48:47 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-01-13 12:44:06 +00:00
|
|
|
BuildRequires: %{python_module six}
|
2016-08-08 09:39:46 +00:00
|
|
|
BuildRequires: fdupes
|
2020-01-13 12:44:06 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-future
|
2016-08-08 09:39:46 +00:00
|
|
|
Requires: python-python-dateutil
|
2020-01-13 12:44:06 +00:00
|
|
|
Requires: python-pytz
|
2016-08-08 09:39:46 +00:00
|
|
|
Requires: python-six >= 1.4.0
|
|
|
|
|
BuildArch: noarch
|
2020-01-09 19:48:47 +00:00
|
|
|
%python_subpackages
|
2016-08-08 09:39:46 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
EFILTER is a general-purpose destructuring and search language implemented in Python, and suitable for integration with any Python project that requires a search function for some of its data.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-01-13 12:44:06 +00:00
|
|
|
%setup -q -n efilter-%{version}
|
2020-05-05 14:27:15 +00:00
|
|
|
%patch0 -p1
|
2016-08-08 09:39:46 +00:00
|
|
|
|
|
|
|
|
%build
|
2020-01-09 19:48:47 +00:00
|
|
|
%python_build
|
2016-08-08 09:39:46 +00:00
|
|
|
|
|
|
|
|
%install
|
2020-01-09 19:48:47 +00:00
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-08-08 09:39:46 +00:00
|
|
|
|
2020-01-13 12:44:06 +00:00
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
2020-01-09 19:48:47 +00:00
|
|
|
%files %{python_files}
|
2019-10-14 13:37:31 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc AUTHORS.txt README.md
|
2016-08-08 09:39:46 +00:00
|
|
|
%{python_sitelib}/efilter*
|
2020-01-13 12:44:06 +00:00
|
|
|
%{python_sitelib}/rekall_efilter*
|
2016-08-08 09:39:46 +00:00
|
|
|
%exclude %{python_sitelib}/sample_projects
|
|
|
|
|
|
|
|
|
|
%changelog
|