Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions anda/langs/python/srt/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "srt.spec"
}
}
59 changes: 59 additions & 0 deletions anda/langs/python/srt/srt.spec
Original file line number Diff line number Diff line change
@@ -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 <owen@fyralabs.com>

%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 <owen@fyralabs.com>
- Initial commit
1 change: 1 addition & 0 deletions anda/langs/python/srt/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(pypi("srt"));
Loading