From 0406d29fdc9f414499805019106eadda18f7ce511cd3ea551132bff00a046b06 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 12 Jun 2025 05:09:28 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ua-parser?expand=0&rev=15 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + python-ua-parser.changes | 52 +++++++++++++++++++++++++++++++++++ python-ua-parser.spec | 58 ++++++++++++++++++++++++++++++++++++++++ ua-parser-0.18.0.tar.gz | 3 +++ 5 files changed, 137 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-ua-parser.changes create mode 100644 python-ua-parser.spec create mode 100644 ua-parser-0.18.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-ua-parser.changes b/python-ua-parser.changes new file mode 100644 index 0000000..cbe06ee --- /dev/null +++ b/python-ua-parser.changes @@ -0,0 +1,52 @@ +------------------------------------------------------------------- +Thu Jun 12 05:01:34 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Fri Dec 8 12:28:05 UTC 2023 - Dirk Müller + +- update to 0.18.0: + * handle firefox version without patch segment + * remove unnecessary line space + * Add Oculus Browser + * Add PetalBot + +------------------------------------------------------------------- +Tue Oct 11 16:39:49 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.16.1 + * Fixes concurrency issues with the cache invalidation mechanism. + +------------------------------------------------------------------- +Fri Mar 6 05:46:48 UTC 2020 - Steve Kowalik + +- Update to version 0.10.0: + + no changelog available + +------------------------------------------------------------------- +Mon Oct 14 14:48:24 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Wed Aug 1 13:54:24 UTC 2018 - tchvatal@suse.com + +- Remove pointless devel dependency + +------------------------------------------------------------------- +Wed Jul 18 18:13:48 UTC 2018 - buschmann23@opensuse.org + +- update to version 0.8.0 + + no changelog available + +------------------------------------------------------------------- +Tue Feb 20 15:35:05 UTC 2018 - buschmann23@opensuse.org + +- update to version 0.7.3 + + no changelog available + +------------------------------------------------------------------- +Sun Jan 14 15:28:45 UTC 2018 - adrian@suse.de + +- initial package in version 0.5.1 diff --git a/python-ua-parser.spec b/python-ua-parser.spec new file mode 100644 index 0000000..4899311 --- /dev/null +++ b/python-ua-parser.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-ua-parser +# +# Copyright (c) 2025 SUSE LLC +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-ua-parser +Version: 0.18.0 +Release: 0 +Summary: Python Implementation of UA Parser +License: Apache-2.0 +URL: https://github.com/ua-parser/uap-python +Source: https://files.pythonhosted.org/packages/source/u/ua-parser/ua-parser-%{version}.tar.gz +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +A python implementation of the UA Parser (https://github.com/ua-parser, formerly +https://github.com/tobie/ua-parser) + +%prep +%setup -q -n ua-parser-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}/%{$python_sitelib} + +%check +# Tests lack fixtures in the released tarball +#%%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" $python ua_parser/user_agent_parser_test.py + +%files %{python_files} +%{python_sitelib}/ua_parser +%{python_sitelib}/ua_parser-%{version}.dist-info + +%changelog diff --git a/ua-parser-0.18.0.tar.gz b/ua-parser-0.18.0.tar.gz new file mode 100644 index 0000000..e2e213f --- /dev/null +++ b/ua-parser-0.18.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db51f1b59bfaa82ed9e2a1d99a54d3e4153dddf99ac1435d51828165422e624e +size 40659