From 98aaf95f89aece3844f3256b682aa0366fe14be99f71c390a2c5b9d38ae859d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 12 Aug 2019 14:53:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyshark?expand=0&rev=2 --- python-pyshark.spec | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/python-pyshark.spec b/python-pyshark.spec index d1d626d..2146ccf 100644 --- a/python-pyshark.spec +++ b/python-pyshark.spec @@ -1,6 +1,7 @@ # # spec file for package python-pyshark # +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -12,28 +13,29 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%define skip_python2 1 Name: python-pyshark Version: 0.4.2.3 Release: 0 -License: MIT Summary: A Python wrapper for tshark output parsing -Url: https://github.com/KimiNewt/pyshark +License: MIT Group: Development/Languages/Python +URL: https://github.com/KimiNewt/pyshark #Git-Clone: https://github.com/KimiNewt/pyshark.git 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 lxml} -BuildRequires: %{python_module py} BuildRequires: %{python_module pytest} -BuildRequires: wireshark +BuildRequires: %{python_module py} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: wireshark Requires: python-Logbook Requires: python-lxml Requires: python-py @@ -56,11 +58,12 @@ wireshark dissectors. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +%pytest ../tests %python_expand PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{$python_version} ../tests %files %{python_files} %license ../LICENSE.txt %doc ../README.md -%{python3_sitelib}/* +%{python_sitelib}/* %changelog