From d3baac57a79cdeb2e3c5e342c55fdb9466eb5b04 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 12 Jan 2026 17:04:48 -0800 Subject: [PATCH] add: srt-equalizer (#9038) (#9148) (cherry picked from commit ae562fd34d1750d1e94f8ff9fdee9456cde546d2) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/srt-equalizer/anda.hcl | 6 +++ .../python/srt-equalizer/srt-equalizer.spec | 47 +++++++++++++++++++ anda/langs/python/srt-equalizer/update.rhai | 1 + 3 files changed, 54 insertions(+) create mode 100644 anda/langs/python/srt-equalizer/anda.hcl create mode 100644 anda/langs/python/srt-equalizer/srt-equalizer.spec create mode 100644 anda/langs/python/srt-equalizer/update.rhai diff --git a/anda/langs/python/srt-equalizer/anda.hcl b/anda/langs/python/srt-equalizer/anda.hcl new file mode 100644 index 0000000000..4101daa038 --- /dev/null +++ b/anda/langs/python/srt-equalizer/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "srt-equalizer.spec" + } +} diff --git a/anda/langs/python/srt-equalizer/srt-equalizer.spec b/anda/langs/python/srt-equalizer/srt-equalizer.spec new file mode 100644 index 0000000000..a1932bf874 --- /dev/null +++ b/anda/langs/python/srt-equalizer/srt-equalizer.spec @@ -0,0 +1,47 @@ +%global pypi_name srt-equalizer +%global _desc A Python module to transform subtitle line lengths, splitting into multiple subtitle fragments if necessary. + +Name: python-%{pypi_name} +Version: 0.1.11 +Release: 1%?dist +Summary: A Python module to transform subtitle line lengths, splitting into multiple subtitle fragments if necessary +License: MIT +URL: https://github.com/peterk/srt_equalizer +Source0: https://github.com/peterk/srt_equalizer/archive/refs/tags/v%version.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-poetry-core + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n srt_equalizer-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files srt_equalizer + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE + +%changelog +* Sat Jan 10 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/srt-equalizer/update.rhai b/anda/langs/python/srt-equalizer/update.rhai new file mode 100644 index 0000000000..7af616568c --- /dev/null +++ b/anda/langs/python/srt-equalizer/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("srt-equalizer"));