forked from pool/python-ua-parser
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6368b65077 | |||
| 073f6fcd31 | |||
| c8627a4593 | |||
| a494f68d14 | |||
| f3ccc14349 | |||
| 0406d29fdc |
@@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 3 01:25:21 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Grab the source tarball for uap-core, so we can build and install
|
||||||
|
ua-parser-builtins.
|
||||||
|
- Run the testsuite.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 29 19:33:40 UTC 2026 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1.0.1:
|
||||||
|
* Fix memoisation of lazy parser
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 12 05:01:34 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 8 12:28:05 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Fri Dec 8 12:28:05 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-ua-parser
|
# spec file for package python-ua-parser
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2026 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -18,14 +18,21 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-ua-parser
|
Name: python-ua-parser
|
||||||
Version: 0.18.0
|
Version: 1.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python Implementation of UA Parser
|
Summary: Python Implementation of UA Parser
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/ua-parser/uap-python
|
URL: https://github.com/ua-parser/uap-python
|
||||||
Source: https://files.pythonhosted.org/packages/source/u/ua-parser/ua-parser-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/u/ua-parser/ua_parser-%{version}.tar.gz
|
||||||
|
# Current submodule commit for uap-core, required to build ua-parser-builtins
|
||||||
|
Source1: https://github.com/ua-parser/uap-core/archive/d668d6c6157db7737edfc0280adc6610c1b88029.tar.gz#/uap-core.tar.gz
|
||||||
BuildRequires: %{python_module PyYAML}
|
BuildRequires: %{python_module PyYAML}
|
||||||
|
BuildRequires: %{python_module hatchling}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module versioningit}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -36,21 +43,35 @@ 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 ua-parser-%{version}
|
%autosetup -n ua_parser-%{version}
|
||||||
|
mkdir uap-core
|
||||||
|
tar zx --strip-components=1 -C uap-core -f %{SOURCE1}
|
||||||
|
echo "Version: %{version}" > uap-core/PKG-INFO
|
||||||
|
pushd ua-parser-builtins
|
||||||
|
ln -s ../uap-core .
|
||||||
|
popd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
# Also build the builtins
|
||||||
|
pushd ua-parser-builtins
|
||||||
|
%pyproject_wheel
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
|
pushd ua-parser-builtins
|
||||||
|
%pyproject_install
|
||||||
|
popd
|
||||||
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Tests lack fixtures in the released tarball
|
%pytest
|
||||||
#%%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" $python ua_parser/user_agent_parser_test.py
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitelib}/ua_parser
|
%{python_sitelib}/ua_parser
|
||||||
%{python_sitelib}/ua_parser-%{version}*-info
|
%{python_sitelib}/ua_parser_builtins
|
||||||
|
%{python_sitelib}/ua_parser-%{version}.dist-info
|
||||||
|
%{python_sitelib}/ua_parser_builtins-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:db51f1b59bfaa82ed9e2a1d99a54d3e4153dddf99ac1435d51828165422e624e
|
|
||||||
size 40659
|
|
||||||
3
ua_parser-1.0.1.tar.gz
Normal file
3
ua_parser-1.0.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f9d92bf19d4329019cef91707aecc23c6d65143ad7e29a233f0580fb0d15547d
|
||||||
|
size 728106
|
||||||
3
uap-core.tar.gz
Normal file
3
uap-core.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7fb279859d252273eb9d6656bcb4bef1ee709ce66f7cf7b4508aa1e40961eec1
|
||||||
|
size 837887
|
||||||
Reference in New Issue
Block a user