# Partly generated by rust2rpm 25 %bcond_without check # prevent library files from being installed %global __cargo_is_lib() 0 %global crate gotify-desktop Name: gotify-desktop Version: 1.3.7 Release: %autorelease Summary: Small Gotify daemon to receive messages and forward them as desktop notifications. # (Apache-2.0 OR MIT) AND BSD-3-Clause # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR ISC OR MIT # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-3-Clause # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR Zlib # MIT OR Zlib OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT # Zlib OR Apache-2.0 OR MIT # # Creative Commons Attribution Public License (v4.0) # ----------------------------------------------------------------- # gotify-logo-small.svg # # LICENSE.dependencies contains a full license breakdown License: GPLv3 AND CC-BY-4.0 AND Apache-2.0 AND MIT AND 0BSD AND BSL-1.0 AND ISC AND Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND MPL-2.0 URL: https://github.com/desbma/gotify-desktop Source0: https://github.com/desbma/%{name}/archive/%{version}/%{name}-%{version}.tar.gz Source1: https://raw.githubusercontent.com/gotify/logo/master/gotify-logo-small.svg BuildRequires: cargo-rpm-macros >= 24 BuildRequires: desktop-file-utils # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} %global _description %{expand: Small Gotify daemon to receive messages and forward them as desktop notifications. Read Gotify messages, and forward them as standard desktop notification. Forward message priority. Auto reconnect if server connection is lost and get missed messages. Automatically download, cache, and show app icons.} %description %{_description} %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install desktop-file-install --mode=644 --dir=%{buildroot}%{_datadir}/applications desktop/%{name}.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop install -Dm 755 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gotify-logo-small.svg %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/gotify-desktop %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/scalable/apps/gotify-logo-small.svg %changelog %autochangelog