forked from pool/python-ua-parser
- 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:
committed by
Git OBS Bridge
parent
259065d6cf
commit
f48c3d4255
@@ -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
|
Wed Jul 18 18:13:48 UTC 2018 - buschmann23@opensuse.org
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-ua-parser
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
# 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 http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
@@ -20,17 +21,15 @@
|
|||||||
Name: python-ua-parser
|
Name: python-ua-parser
|
||||||
Version: 0.8.0
|
Version: 0.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
License: Apache-2.0
|
|
||||||
Summary: Python Implementation of UA Parser
|
Summary: Python Implementation of UA Parser
|
||||||
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
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
|
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 PyYAML}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -38,9 +37,8 @@ BuildArch: noarch
|
|||||||
A python implementation of the UA Parser (https://github.com/ua-parser, formerly
|
A python implementation of the UA Parser (https://github.com/ua-parser, formerly
|
||||||
https://github.com/tobie/ua-parser)
|
https://github.com/tobie/ua-parser)
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_pkgname}-%version
|
%setup -q -n %{_pkgname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -49,8 +47,10 @@ https://github.com/tobie/ua-parser)
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
|
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%python_exec ua_parser/user_agent_parser_test.py
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user