[packages/asterism] Initial
arekm
arekm at pld-linux.org
Wed Aug 19 14:41:33 CEST 2026
commit 207a31990b7a5eb163c78616c12a8066b5c9217c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Aug 19 14:41:20 2026 +0200
Initial
asterism.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
---
diff --git a/asterism.spec b/asterism.spec
new file mode 100644
index 0000000..009aa07
--- /dev/null
+++ b/asterism.spec
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Reconstruct and inspect Asterisk calls from log, CDR and CEL data
+Summary(pl.UTF-8): Rekonstrukcja i analiza połączeń Asteriska na podstawie logów, CDR i CEL
+Name: asterism
+Version: 1.0.0
+Release: 1
+License: MIT
+Group: Applications/Communications
+#Source0Download: https://github.com/forgetdev/asterism/releases
+Source0: https://github.com/forgetdev/asterism/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 0393c86446f657646c08468e65541851
+URL: https://github.com/forgetdev/asterism
+BuildRequires: golang >= 1.22
+BuildRequires: rpmbuild(macros) >= 2.009
+ExclusiveArch: %go_arches
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%undefine _debugsource_packages
+
+%description
+asterism reads Asterisk CEL (Channel Event Logging) CSV files and,
+optionally, CDR records and the full log, then groups events by
+linkedid to reconstruct a timeline of each call: which channels were
+created, which dialplan applications ran, when bridges formed,
+transfer events and why the call ended (Q.850 hangup causes). Output
+can be rendered as text, JSON, HTML or CSV.
+
+It operates on completed log files - this is post-mortem analysis, not
+live monitoring.
+
+%description -l pl.UTF-8
+asterism czyta pliki CSV z dziennika zdarzeń kanałów (CEL) Asteriska,
+a opcjonalnie także rekordy CDR i pełny dziennik (full log), po czym
+grupuje zdarzenia według linkedid i odtwarza przebieg każdego
+połączenia: powstawanie kanałów, uruchamiane aplikacje planu
+wybierania, zestawianie mostków, przekazywanie połączeń oraz przyczyny
+rozłączenia (Q.850). Wynik można zapisać jako tekst, JSON, HTML lub
+CSV.
+
+Narzędzie działa na zamkniętych plikach dzienników - służy do analizy
+po fakcie, a nie do monitorowania na bieżąco.
+
+%prep
+%setup -q
+
+%{__mkdir_p} .go-cache
+
+%build
+%__go build -v -o bin/%{name} ./cmd/%{name}
+
+%if %{with tests}
+%__go test ./...
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
+cp -p bin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+cp -p docs/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md docs/architecture.md docs/asterisk-setup.md
+%attr(755,root,root) %{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/asterism.git/commitdiff/207a31990b7a5eb163c78616c12a8066b5c9217c
More information about the pld-cvs-commit
mailing list