diff --git a/anda/apps/halloy/halloy.spec b/anda/apps/halloy/halloy.spec new file mode 100644 index 0000000000..f1764a96d1 --- /dev/null +++ b/anda/apps/halloy/halloy.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 27 +%bcond check 1 + +Name: halloy +Version: 2025.6 +Release: %autorelease +Summary: An open-source IRC client written in Rust, with the Iced GUI library +Packager: Yoong jin +SourceLicense: GPL-3.0-or-later +License: (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND (Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR MIT OR Apache-2.0) AND (BSD-3-Clause) AND (BSD-3-Clause OR MIT OR Apache-2.0) AND (BSL-1.0) AND (CC0-1.0) AND (CC0-1.0 OR Apache-2.0) AND (GPL-3.0+ OR BSD-3-Clause) AND (GPL-3.0-or-later) AND (ISC) AND (LGPL-3.0-or-later OR MPL-2.0) AND (MIT) AND (MIT AND (MIT OR Apache-2.0)) AND (MIT OR Apache-2.0) AND ((MIT OR Apache-2.0) AND NCSA) AND ((MIT OR Apache-2.0) AND Unicode-3.0) AND (MIT OR Apache-2.0 OR BSD-1-Clause) AND (MIT OR Apache-2.0 OR CC0-1.0) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Zlib OR Apache-2.0) AND (MPL-2.0) AND (Unicode-3.0) AND (Unlicense) AND (Unlicense OR MIT) AND (Zlib) AND (Zlib OR Apache-2.0 OR MIT) + +URL: https://github.com/squidowl/halloy +Source: https://github.com/squidowl/halloy/archive/refs/tags/%{Version}.tar.gz + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: desktop-file-utils + + +%description %{Summary} + +%prep +%autosetup -n halloy-%{version} -p1 +%cargo_prep_online + + +%build +%cargo_build +%cargo_license_summary_online +%{cargo_license} > LICENSE.dependencies + + +%install +#copy logo file to be used in desktop file +cp ./assets/logo.png %{buildroot}/%{_datadir}/icons/halloy.png +%cargo_install +#generate desktop file +desktop-file-edit \ + --set-key=Type \ + --set-value=Application \ + --set-key=Name\ + --set-value=Halloy\ + --set-key=Comment \ + --set-value=%{Summary} \ + --set-key=Exec \ + --set-value=%{_bindir}/halloy \ + --set-key=Icon \ + --set-value=%{_datadir}/icons/halloy.png \ + --set-key=Terminal \ + --set-value=false \ + %{buildroot}/%{_datadir}/applications/halloy.desktop + +%if %{with check} +%check +%cargo_test +%endif + +%files +%license LICENSE +%license wix/license.rtf +%license LICENSE.dependencies +%doc CHANGELOG.md +%doc README.md +%{_bindir}/halloy +%{_datadir}/icons/halloy.png +%{_datadir}/applications/halloy.desktop + +%changelog +%autochangelog diff --git a/anda/apps/halloy/update.rhai b/anda/apps/halloy/update.rhai new file mode 100644 index 0000000000..16fec68b88 --- /dev/null +++ b/anda/apps/halloy/update.rhai @@ -0,0 +1,2 @@ +let ver = gh("squidowl/halloy"); // gets latest version from GitHub +rpm.version(ver); // updates the version in the spec file using `ver`