forked from pool/python-pyshark
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyshark?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
e7703d2ab9
commit
98aaf95f89
@@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyshark
|
# spec file for package python-pyshark
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -12,7 +13,8 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
@@ -20,20 +22,20 @@
|
|||||||
Name: python-pyshark
|
Name: python-pyshark
|
||||||
Version: 0.4.2.3
|
Version: 0.4.2.3
|
||||||
Release: 0
|
Release: 0
|
||||||
License: MIT
|
|
||||||
Summary: A Python wrapper for tshark output parsing
|
Summary: A Python wrapper for tshark output parsing
|
||||||
Url: https://github.com/KimiNewt/pyshark
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
URL: https://github.com/KimiNewt/pyshark
|
||||||
#Git-Clone: https://github.com/KimiNewt/pyshark.git
|
#Git-Clone: https://github.com/KimiNewt/pyshark.git
|
||||||
Source: https://github.com/KimiNewt/pyshark/archive/v%{version}.tar.gz
|
Source: https://github.com/KimiNewt/pyshark/archive/v%{version}.tar.gz
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module Logbook}
|
BuildRequires: %{python_module Logbook}
|
||||||
BuildRequires: %{python_module lxml}
|
BuildRequires: %{python_module lxml}
|
||||||
BuildRequires: %{python_module py}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: wireshark
|
BuildRequires: %{python_module py}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: wireshark
|
||||||
Requires: python-Logbook
|
Requires: python-Logbook
|
||||||
Requires: python-lxml
|
Requires: python-lxml
|
||||||
Requires: python-py
|
Requires: python-py
|
||||||
@@ -56,11 +58,12 @@ wireshark dissectors.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%pytest ../tests
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{$python_version} ../tests
|
%python_expand PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{$python_version} ../tests
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license ../LICENSE.txt
|
%license ../LICENSE.txt
|
||||||
%doc ../README.md
|
%doc ../README.md
|
||||||
%{python3_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user