14
0

- 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
This commit is contained in:
Tomáš Chvátal
2018-08-01 13:54:42 +00:00
committed by Git OBS Bridge
parent 259065d6cf
commit f48c3d4255
2 changed files with 15 additions and 9 deletions

View File

@@ -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

View File

@@ -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