File cosmic-app-library.spec of Package cosmic-app-library
#
# spec file for package cosmic-app-library
#
# 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: cosmic-app-library
Version: 1.0.0~alpha.1
Release: 0
Summary: App Library program for the COSMIC Desktop Environment
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: 0BSD OR MIT OR Apache-2.0 AND Apache-2.0 AND Apache-2.0 OR MIT AND Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND CC0-1.0 AND GPL-3.0 AND ISC AND MIT AND MIT OR Apache-2.0 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 Unlicense OR MIT AND Zlib AND Zlib OR Apache-2.0 OR MIT
URL: https://github.com/pop-os/cosmic-applibrary/
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: wayland-devel
BuildRequires: just
BuildRequires: desktop-file-utils
%description
Cosmic App Library is an application launcher for the COSMIC desktop that lists all installed applications in a grid.
%prep
%autosetup -a1
%build
%{cargo_build}
%install
just rootdir=%{buildroot} prefix=%{_prefix} install
desktop-file-install \
--remove-category COSMIC \
--add-category X-COSMIC \
--delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/com.system76.CosmicAppLibrary.desktop
%files
%license LICENSE.md
%doc README.md
%{_bindir}/cosmic-app-library
%{_datadir}/applications/com.system76.CosmicAppLibrary.desktop
%dir %{_datadir}/icons/hicolor/
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/com.system76.CosmicAppLibrary.svg
%{_datadir}/metainfo/com.system76.CosmicAppLibrary.metainfo.xml
%changelog