commit fdeff76ea096451c199c26e3fcc6f936dba37f35e1e83f1289c14975c76ab31b Author: Matej Cepl Date: Thu Jul 4 13:56:23 2024 +0000 Accepting request 1183153 from home:alois:branches:devel:languages:python new package OBS-URL: https://build.opensuse.org/request/show/1183153 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysubs2?expand=0&rev=1 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/pysubs2-1.7.2.tar.gz b/pysubs2-1.7.2.tar.gz new file mode 100644 index 0000000..e28d7ed --- /dev/null +++ b/pysubs2-1.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b708904269cb252dbc51de75a372e04ab00c368939bb8220f7b0f940d978725e +size 1123677 diff --git a/python-pysubs2.changes b/python-pysubs2.changes new file mode 100644 index 0000000..cf42228 --- /dev/null +++ b/python-pysubs2.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jun 25 10:04:55 UTC 2024 - Luigi Baldoni + +- First package (v1.7.2) diff --git a/python-pysubs2.spec b/python-pysubs2.spec new file mode 100644 index 0000000..c0d8f27 --- /dev/null +++ b/python-pysubs2.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-pysubs2 +# +# 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/ +# + + +Name: python-pysubs2 +Version: 1.7.2 +Release: 0 +Summary: Python library for editing subtitle files +License: MIT +Group: Development/Languages/Python +URL: https://pysubs2.readthedocs.io +Source0: https://files.pythonhosted.org/packages/source/p/pysubs2/pysubs2-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +pysubs2 is a Python library for editing subtitle files. It’s based on +SubStation Alpha, the native format of Aegisub; it also supports SubRip (SRT), +MicroDVD, MPL2, TMP and WebVTT formats and OpenAI Whisper captions. + +There is a small CLI tool for batch conversion and retiming. + +%prep +%autosetup -p1 -n pysubs2-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/pysubs2 +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative pysubs2 + +%postun +%python_uninstall_alternative pysubs2 + +%check +# online tests only + +%files %{python_files} +%license LICENSE.txt +%doc README.md +%python_alternative %{_bindir}/pysubs2 +%{python_sitelib}/pysubs2 +%{python_sitelib}/pysubs2-%{version}.dist-info + +%changelog