File psst.spec of Package psst
#
# spec file for package psst
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: psst
Version: 20250613+git.444b1a3
Release: 0
Summary: Fast and multi-platform Spotify client with native GUI
License: GPL-2.0
URL: https://github.com/jpochyla/psst
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.zst
Patch0: make-build-reproducible.patch
BuildRequires: cargo-packaging
BuildRequires: libopenssl-devel
BuildRequires: gtk3-devel
BuildRequires: cairo-devel
BuildRequires: alsa-devel
BuildRequires: git
BuildRequires: zstd
%description
Fast and multi-platform Spotify client with native GUI
%prep
%autosetup -a1 -p1
%build
%{cargo_build}
%install
install -Dm 755 target/release/%{name}-cli %{buildroot}%{_bindir}/%{name}-cli
install -Dm 755 target/release/%{name}-gui %{buildroot}%{_bindir}/%{name}-gui
install -Dm 644 psst-gui/assets/logo.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
install -Dm 644 .pkg/psst.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%license LICENSE.md
%doc README.md
%{_bindir}/%{name}-cli
%{_bindir}/%{name}-gui
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%changelog