forked from pool/python-openvino-telemetry
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
This commit is contained in:
commit
328bbf0a55
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
openvino-telemetry-2024.1.0.tar.gz
Normal file
3
openvino-telemetry-2024.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6df9a8f499e75d893d0bece3c272e798109f0bd40d1eb2488adca6a0da1d9b9f
|
||||
size 17345
|
4
python-openvino-telemetry.changes
Normal file
4
python-openvino-telemetry.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 23 11:40:54 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Initial package.
|
73
python-openvino-telemetry.spec
Normal file
73
python-openvino-telemetry.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user