From 5bdb0a9838b14413acfbd427194d8fff70858c9c65fff91ef445da9782b966f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 1 Aug 2018 14:11:04 +0000 Subject: [PATCH] - Fix dependencies - Run tests - Install license OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-user-agents?expand=0&rev=2 --- python-user-agents.changes | 7 +++++++ python-user-agents.spec | 23 +++++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/python-user-agents.changes b/python-user-agents.changes index 010d51a..6f7f1fb 100644 --- a/python-user-agents.changes +++ b/python-user-agents.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Aug 1 13:47:50 UTC 2018 - tchvatal@suse.com + +- Fix dependencies +- Run tests +- Install license + ------------------------------------------------------------------- Wed Jan 10 15:32:35 UTC 2018 - adrian@suse.de diff --git a/python-user-agents.spec b/python-user-agents.spec index 9e06978..a3e98af 100644 --- a/python-user-agents.spec +++ b/python-user-agents.spec @@ -1,7 +1,7 @@ # # spec file for package python-user-agents # -# 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,28 +13,30 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-user-agents Version: 1.1.0 Release: 0 +Summary: A library to identify device capabilities (phones, tablets) License: MIT -Summary: A library to identify devices (phones, tablets) and their capabilities by parsing (browser/HTTP) user agent strings Group: Development/Languages/Python -Url: https://github.com/selwin/python-user-agents +URL: https://github.com/selwin/python-user-agents Source: https://github.com/selwin/python-user-agents/archive/v%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module ua-parser} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: %{python_module ua-parser} -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: python-PyYAML +Requires: python-ua-parser BuildArch: noarch %python_subpackages %description - +Python library that provides an easy way to identify/detect devices like mobile phones, tablets and their capabilities by parsing (browser/HTTP) user agent strings. %prep %setup -q @@ -46,8 +48,13 @@ BuildArch: noarch %python_install %python_expand %fdupes -s %{buildroot}/%{$python_sitelib} +%check +# 5 known failures in tests +%python_expand $python -m unittest discover ||: + %files %{python_files} -%defattr(-,root,root,-) +%license LICENSE.txt +%doc README.rst %{python_sitelib}/* %changelog