commit 671c4ca322eefce971811c5702ce2fbeeb3b1cf87bf56de52df1a8a58e24f364 Author: Matej Cepl Date: Wed Jun 4 12:32:21 2025 +0000 Accepting request 1275950 from home:alois:branches:devel:languages:python Required by new python-subliminal OBS-URL: https://build.opensuse.org/request/show/1275950 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-knowit?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.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 +*.tar 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..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/knowit-0.5.6.tar.gz b/knowit-0.5.6.tar.gz new file mode 100644 index 0000000..144120b --- /dev/null +++ b/knowit-0.5.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ca8fe4b93d6ec3ff753a8f6f3c641020a6801c11d42545ccb270523281f8cca +size 28573 diff --git a/python-knowit.changes b/python-knowit.changes new file mode 100644 index 0000000..c7ef0d1 --- /dev/null +++ b/python-knowit.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat May 3 06:23:49 UTC 2025 - Luigi Baldoni + +- Initial package (v0.5.6) diff --git a/python-knowit.spec b/python-knowit.spec new file mode 100644 index 0000000..c40560f --- /dev/null +++ b/python-knowit.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-knowit +# +# 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/ +# + + +Name: python-knowit +Version: 0.5.6 +Release: 0 +Summary: Extract information from video files +License: MIT +URL: https://github.com/ratoaq2/knowit +Source0: https://files.pythonhosted.org/packages/source/k/knowit/knowit-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives +Requires: python-babelfish >= 0.6.1 +Requires: python-enzyme >= 0.5.2 +Requires: python-Pint >= 0.20.1 +Requires: python-pymediainfo >= 6.0.1 +Requires: python-PyYAML >= 6.0 +Requires: python-trakit >= 0.2.2 + +BuildArch: noarch +%python_subpackages + +%description +To extract information from video files. + +%prep +%autosetup -n knowit-%{version} +chmod -x knowit/provider.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/knowit +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative knowit + +%postun +%python_uninstall_alternative knowit + +%files %{python_files} +%license LICENSE +%doc README.md +%python_alternative %{_bindir}/knowit +%{python_sitelib}/knowit +%{python_sitelib}/knowit-%{version}.dist-info + +%changelog