14
0

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
This commit is contained in:
2024-07-04 13:56:23 +00:00
committed by Git OBS Bridge
commit fdeff76ea0
5 changed files with 102 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

3
pysubs2-1.7.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b708904269cb252dbc51de75a372e04ab00c368939bb8220f7b0f940d978725e
size 1123677

4
python-pysubs2.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Jun 25 10:04:55 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>
- First package (v1.7.2)

71
python-pysubs2.spec Normal file
View File

@@ -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. Its 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