forked from pool/python-user-agents
- Fix dependencies
- Run tests - Install license OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-user-agents?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
85fb695fd0
commit
5bdb0a9838
@@ -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
|
Wed Jan 10 15:32:35 UTC 2018 - adrian@suse.de
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-user-agents
|
# 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
|
# 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,28 +13,30 @@
|
|||||||
# 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-%{**}}
|
||||||
Name: python-user-agents
|
Name: python-user-agents
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
|
Summary: A library to identify device capabilities (phones, tablets)
|
||||||
License: MIT
|
License: MIT
|
||||||
Summary: A library to identify devices (phones, tablets) and their capabilities by parsing (browser/HTTP) user agent strings
|
|
||||||
Group: Development/Languages/Python
|
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
|
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 setuptools}
|
||||||
|
BuildRequires: %{python_module ua-parser}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: %{python_module ua-parser}
|
Requires: python-PyYAML
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Requires: python-ua-parser
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@@ -46,8 +48,13 @@ BuildArch: noarch
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
|
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
# 5 known failures in tests
|
||||||
|
%python_expand $python -m unittest discover ||:
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE.txt
|
||||||
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user