From f48c3d4255ba912a42b3329930f598ade4ec6c003e56163e29ca4f8e92f01447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 1 Aug 2018 13:54:42 +0000 Subject: [PATCH] - Run the tests - Remove pointless devel dependency OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ua-parser?expand=0&rev=2 --- python-ua-parser.changes | 6 ++++++ python-ua-parser.spec | 18 +++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/python-ua-parser.changes b/python-ua-parser.changes index 9975246..a8af6b5 100644 --- a/python-ua-parser.changes +++ b/python-ua-parser.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 1 13:54:24 UTC 2018 - tchvatal@suse.com + +- Run the tests +- Remove pointless devel dependency + ------------------------------------------------------------------- Wed Jul 18 18:13:48 UTC 2018 - buschmann23@opensuse.org diff --git a/python-ua-parser.spec b/python-ua-parser.spec index 7a3d9b9..708b903 100644 --- a/python-ua-parser.spec +++ b/python-ua-parser.spec @@ -1,7 +1,7 @@ # # spec file for package python-ua-parser # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -13,6 +13,7 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,17 +21,15 @@ Name: python-ua-parser Version: 0.8.0 Release: 0 -License: Apache-2.0 Summary: Python Implementation of UA Parser +License: Apache-2.0 Group: Development/Languages/Python -Url: https://github.com/ua-parser/uap-python +URL: https://github.com/ua-parser/uap-python Source: https://files.pythonhosted.org/packages/source/u/%{_pkgname}/%{_pkgname}-%{version}.tar.gz -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -38,9 +37,8 @@ BuildArch: noarch A python implementation of the UA Parser (https://github.com/ua-parser, formerly https://github.com/tobie/ua-parser) - %prep -%setup -q -n %{_pkgname}-%version +%setup -q -n %{_pkgname}-%{version} %build %python_build @@ -49,8 +47,10 @@ https://github.com/tobie/ua-parser) %python_install %python_expand %fdupes -s %{buildroot}/%{$python_sitelib} +%check +%python_exec ua_parser/user_agent_parser_test.py + %files %{python_files} -%defattr(-,root,root,-) %{python_sitelib}/* %changelog