2018-08-01 13:45:36 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-user-agents
|
|
|
|
#
|
2024-01-23 07:46:58 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-08-01 13:45:36 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-04-12 10:05:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-01 14:11:04 +00:00
|
|
|
#
|
2018-08-01 13:45:36 +00:00
|
|
|
|
|
|
|
|
2024-01-23 07:46:58 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-08-01 13:45:36 +00:00
|
|
|
Name: python-user-agents
|
2023-07-13 05:55:00 +00:00
|
|
|
Version: 2.2.0
|
2018-08-01 13:45:36 +00:00
|
|
|
Release: 0
|
2018-08-01 14:11:04 +00:00
|
|
|
Summary: A library to identify device capabilities (phones, tablets)
|
2018-08-01 13:45:36 +00:00
|
|
|
License: MIT
|
2018-08-01 14:11:04 +00:00
|
|
|
URL: https://github.com/selwin/python-user-agents
|
2018-08-01 13:45:36 +00:00
|
|
|
Source: https://github.com/selwin/python-user-agents/archive/v%{version}.tar.gz
|
2023-07-13 05:55:00 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-08-01 13:45:36 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-07-13 05:55:00 +00:00
|
|
|
BuildRequires: %{python_module ua-parser >= 0.10.0}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2018-08-01 13:45:36 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-07-13 05:55:00 +00:00
|
|
|
Requires: python-ua-parser >= 0.10.0
|
2018-08-01 13:45:36 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-08-08 15:41:56 +00:00
|
|
|
Python library that can identify/detect devices like mobile phones,
|
|
|
|
tablets and their capabilities by parsing (browser/HTTP) user agent
|
|
|
|
strings.
|
2018-08-01 13:45:36 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2023-07-13 05:55:00 +00:00
|
|
|
%pyproject_wheel
|
2018-08-01 13:45:36 +00:00
|
|
|
|
|
|
|
%install
|
2023-07-13 05:55:00 +00:00
|
|
|
%pyproject_install
|
2019-10-14 14:49:32 +00:00
|
|
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
2018-08-01 13:45:36 +00:00
|
|
|
|
2018-08-01 14:11:04 +00:00
|
|
|
%check
|
2023-07-13 05:55:00 +00:00
|
|
|
%pyunittest
|
2018-08-01 14:11:04 +00:00
|
|
|
|
2018-08-01 13:45:36 +00:00
|
|
|
%files %{python_files}
|
2018-08-01 14:11:04 +00:00
|
|
|
%license LICENSE.txt
|
2023-07-13 05:55:00 +00:00
|
|
|
%doc README.md
|
|
|
|
%{python_sitelib}/user_agents
|
|
|
|
%{python_sitelib}/user_agents-%{version}.dist-info
|
2018-08-01 13:45:36 +00:00
|
|
|
|
|
|
|
%changelog
|