From 328bbf0a5540c318397689441dcb1bfe659116f6d1a8a61d137b359985c49e20 Mon Sep 17 00:00:00 2001 From: Guillaume GARDET Date: Mon, 6 May 2024 10:22:40 +0000 Subject: [PATCH] Accepting request 1169876 from home:badshah400:openvino-python Package needed by openVINO toolkit (currently in science, but science:machinelearning is maybe a better develproject for it too). OBS-URL: https://build.opensuse.org/request/show/1169876 OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-openvino-telemetry?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + openvino-telemetry-2024.1.0.tar.gz | 3 ++ python-openvino-telemetry.changes | 4 ++ python-openvino-telemetry.spec | 73 ++++++++++++++++++++++++++++++ 5 files changed, 104 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 openvino-telemetry-2024.1.0.tar.gz create mode 100644 python-openvino-telemetry.changes create mode 100644 python-openvino-telemetry.spec 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/openvino-telemetry-2024.1.0.tar.gz b/openvino-telemetry-2024.1.0.tar.gz new file mode 100644 index 0000000..34e39ab --- /dev/null +++ b/openvino-telemetry-2024.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6df9a8f499e75d893d0bece3c272e798109f0bd40d1eb2488adca6a0da1d9b9f +size 17345 diff --git a/python-openvino-telemetry.changes b/python-openvino-telemetry.changes new file mode 100644 index 0000000..466b4ec --- /dev/null +++ b/python-openvino-telemetry.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Apr 23 11:40:54 UTC 2024 - Atri Bhattacharya + +- Initial package. diff --git a/python-openvino-telemetry.spec b/python-openvino-telemetry.spec new file mode 100644 index 0000000..89987b7 --- /dev/null +++ b/python-openvino-telemetry.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-openvino-telemetry +# +# Copyright (c) 2024 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/ +# + + +# Consistent with openvino +%define pythons python3 +%define modname openvino_telemetry +Name: python-openvino-telemetry +Version: 2024.1.0 +Release: 0 +Summary: Module for use with openVINO toolkit to send usage statistics with user consent +License: Apache-2.0 +URL: https://github.com/openvinotoolkit/telemetry +Source: https://files.pythonhosted.org/packages/source/o/openvino-telemetry/openvino-telemetry-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives +%python_subpackages + +%description +OpenVINO Telemetry is a package for sending statistics with user's consent, +used in combination with other OpenVINO packages. + +%prep +%autosetup -p1 -n openvino-telemetry-%{version} +sed -Ei "s/\r$//" README.md + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/opt_in_out +%{python_expand sed -i "1{\@/usr/bin/env python@d}" %{buildroot}%{$python_sitelib}/%{modname}/opt_in_out.py +%fdupes %{buildroot}%{$python_sitelib} +} + +#%%check +# No tests + +%post +%python_install_alternative opt_in_out + +%postun +%python_uninstall_alternative opt_in_out + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/opt_in_out +%{python_sitelib}/%{modname}/ +%{python_sitelib}/%{modname}-%{version}*-info/ + +%changelog