%global debug_package %{nil} Name: thunderbird-claude Version: 0.1.0 Release: 1%{?dist} Summary: Draft the open Thunderbird message with Claude Code License: MIT URL: https://github.com/lacamar/%{name} Source0: %{name}-%{version}.tar.gz BuildRequires: python3-devel Requires: python3 Requires: thunderbird %description Compose-window button that sends your notes and the quoted thread to a local Claude Code run and replaces the draft with the reply. %prep %autosetup %build sed -i 's/"version": "[^"]*"/"version": "%{version}"/' extension/manifest.json (cd extension && %{python3} -m zipfile -c ../%{name}.xpi manifest.json background.js icon.svg) %install install -Dm644 %{name}.xpi %{buildroot}%{_datadir}/%{name}/%{name}.xpi install -Dm755 host/thunderbird_claude_host.py %{buildroot}%{_libexecdir}/%{name}/host.py install -Dm644 packaging/thunderbird_claude.json %{buildroot}%{_libdir}/mozilla/native-messaging-hosts/thunderbird_claude.json install -Dm644 packaging/policies.json %{buildroot}%{_libdir}/thunderbird/distribution/policies.json %check %{python3} -m unittest discover -s tests -v %files %license LICENSE %doc README.md %{_datadir}/%{name}/ %{_libexecdir}/%{name}/ %{_libdir}/mozilla/native-messaging-hosts/thunderbird_claude.json %dir %{_libdir}/thunderbird/distribution %{_libdir}/thunderbird/distribution/policies.json %changelog * Tue Nov 03 2026 lacamar - 0.1.0-1 - Initial package