diff --git a/anda/langs/python/srt/anda.hcl b/anda/langs/python/srt/anda.hcl new file mode 100644 index 00000000000..4d7656cd410 --- /dev/null +++ b/anda/langs/python/srt/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "srt.spec" + } +} diff --git a/anda/langs/python/srt/srt.spec b/anda/langs/python/srt/srt.spec new file mode 100644 index 00000000000..148ea466971 --- /dev/null +++ b/anda/langs/python/srt/srt.spec @@ -0,0 +1,59 @@ +%global pypi_name srt +%global _desc A simple library and set of tools for parsing, modifying, and composing SRT files. + +Name: python-%{pypi_name} +Version: 3.5.3 +Release: 1%?dist +Summary: A simple library and set of tools for parsing, modifying, and composing SRT files +License: MIT +URL: https://github.com/cdown/srt +Source0: %{pypi_source} +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-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files srt_tools + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst +%license LICENSE +%{_bindir}/srt +%{_bindir}/srt-deduplicate +%{_bindir}/srt-fixed-timeshift +%{_bindir}/srt-linear-timeshift +%{_bindir}/srt-lines-matching +%{_bindir}/srt-mux +%{_bindir}/srt-normalise +%{_bindir}/srt-play +%{_bindir}/srt-process +%{python3_sitelib}/__pycache__/srt.cpython-314.opt-1.pyc +%{python3_sitelib}/__pycache__/srt.cpython-314.pyc +%{python3_sitelib}/srt.py + +%changelog +* Sat Jan 10 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/srt/update.rhai b/anda/langs/python/srt/update.rhai new file mode 100644 index 00000000000..8186fb86a39 --- /dev/null +++ b/anda/langs/python/srt/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("srt"));