From ee2299b8455e0bd2f90bb0e69bf20a689d69f8dbfc2e681de21471007b6d2202 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 4 Jul 2024 13:56:00 +0000 Subject: [PATCH] Accepting request 1183154 from home:alois:branches:devel:languages:python new package OBS-URL: https://build.opensuse.org/request/show/1183154 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-srt?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + python-srt.changes | 4 ++ python-srt.spec | 104 +++++++++++++++++++++++++++++++++++++++++++++ srt-3.5.3.tar.gz | 3 ++ 5 files changed, 135 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-srt.changes create mode 100644 python-srt.spec create mode 100644 srt-3.5.3.tar.gz 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/python-srt.changes b/python-srt.changes new file mode 100644 index 0000000..41cdb37 --- /dev/null +++ b/python-srt.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jun 25 10:56:09 UTC 2024 - Luigi Baldoni + +- Initial package (v3.5.3) diff --git a/python-srt.spec b/python-srt.spec new file mode 100644 index 0000000..574fd51 --- /dev/null +++ b/python-srt.spec @@ -0,0 +1,104 @@ +# +# spec file for package python-srt +# +# 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-srt +Version: 3.5.3 +Release: 0 +Summary: Python library for handling SRT files, plus tools +License: MIT +Group: Development/Languages/Python +URL: https://github.com/cdown/srt +Source0: https://files.pythonhosted.org/packages/source/s/srt/srt-%{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 +srt is a Python library for parsing, modifying, and composing SRT files. + +It also includes related tools. + +%prep +%autosetup -p1 -n srt-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/srt +%python_clone -a %{buildroot}%{_bindir}/srt-deduplicate +%python_clone -a %{buildroot}%{_bindir}/srt-fixed-timeshift +%python_clone -a %{buildroot}%{_bindir}/srt-linear-timeshift +%python_clone -a %{buildroot}%{_bindir}/srt-lines-matching +%python_clone -a %{buildroot}%{_bindir}/srt-mux +%python_clone -a %{buildroot}%{_bindir}/srt-normalise +%python_clone -a %{buildroot}%{_bindir}/srt-play +%python_clone -a %{buildroot}%{_bindir}/srt-process + +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative srt +%python_install_alternative srt-deduplicate +%python_install_alternative srt-fixed-timeshift +%python_install_alternative srt-linear-timeshift +%python_install_alternative srt-lines-matching +%python_install_alternative srt-mux +%python_install_alternative srt-normalise +%python_install_alternative srt-play +%python_install_alternative srt-process + +%postun +%python_uninstall_alternative srt +%python_uninstall_alternative srt-deduplicate +%python_uninstall_alternative srt-fixed-timeshift +%python_uninstall_alternative srt-linear-timeshift +%python_uninstall_alternative srt-lines-matching +%python_uninstall_alternative srt-mux +%python_uninstall_alternative srt-normalise +%python_uninstall_alternative srt-play +%python_uninstall_alternative srt-process + +%check +# online tests only + +%files %{python_files} +%license LICENSE +%doc README.rst +%python_alternative %{_bindir}/srt +%python_alternative %{_bindir}/srt-deduplicate +%python_alternative %{_bindir}/srt-fixed-timeshift +%python_alternative %{_bindir}/srt-linear-timeshift +%python_alternative %{_bindir}/srt-lines-matching +%python_alternative %{_bindir}/srt-mux +%python_alternative %{_bindir}/srt-normalise +%python_alternative %{_bindir}/srt-play +%python_alternative %{_bindir}/srt-process +%pycache_only %{python_sitelib}/__pycache__/srt.cpython-%{python_version_nodots}* +%{python_sitelib}/srt.py +%{python_sitelib}/srt_tools +%{python_sitelib}/srt-%{version}.dist-info + +%changelog diff --git a/srt-3.5.3.tar.gz b/srt-3.5.3.tar.gz new file mode 100644 index 0000000..f753c07 --- /dev/null +++ b/srt-3.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4884315043a4f0740fd1f878ed6caa376ac06d70e135f306a6dc44632eed0cc0 +size 28296