File pantheon-appcenter.spec of Package pantheon-appcenter

#
# spec file for package pantheon-appcenter
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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/
#


%define         appid io.elementary.appcenter
Name:           pantheon-appcenter
Version:        8.3.2
Release:        0
Summary:        A Granite app store built on AppStream
License:        GPL-3.0-or-later
URL:            https://github.com/elementary/appcenter
Source0:        %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        %{name}.rpmlintrc
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gettext
BuildRequires:  hicolor-icon-theme
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  sassc
BuildRequires:  vala
BuildRequires:  pkgconfig(appstream)
BuildRequires:  pkgconfig(appstream-glib)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(flatpak)
BuildRequires:  pkgconfig(gee-0.8)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(granite-7)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libadwaita-1)
BuildRequires:  pkgconfig(libportal-gtk4)
BuildRequires:  pkgconfig(libsoup-3.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(polkit-gobject-1)
Provides:       elementary-appcenter = %{version}
Obsoletes:      elementary-appcenter < %{version}

%description
AppCenter is a native Granite app store built on AppStream and Packagekit.

%package -n     gnome-shell-search-provider-pantheon-appcenter
Summary:        Pantheon AppCenter search provider for GNOME Shell
Requires:       %{name} = %{version}
Supplements:    (%{name} and gnome-shell)
BuildArch:      noarch

%description -n gnome-shell-search-provider-pantheon-appcenter
AppCenter is a native Granite app store built on AppStream and Packagekit.

This package contains a search provider to enable GNOME Shell to get search
results from AppCenter.

%lang_package

%prep
%autosetup -n appcenter-%{version}

%build
%meson	\
    -Dcurated=false \
    -Dpayments=false
%meson_build

%install
%meson_install
%find_lang %{appid}
%fdupes %{buildroot}%{_datadir}

%files
%license COPYING
%doc README.md
%config(noreplace) %{_sysconfdir}/%{appid}/appcenter.hiddenapps
%{_bindir}/%{appid}
%{_datadir}/applications/%{appid}.desktop
%{_datadir}/dbus-1/services/%{appid}.service
%{_datadir}/glib-2.0/schemas/%{appid}.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{appid}.svg
%{_datadir}/icons/hicolor/symbolic/apps/%{appid}-symbolic.svg
%{_datadir}/metainfo/%{appid}.metainfo.xml
%{_datadir}/polkit-1/actions/%{appid}.policy
%{_sysconfdir}/%{appid}
%dir %{_datadir}/icons/hicolor/{128x128@2,128x128@2/apps,16x16@2,16x16@2/apps,24x24@2,24x24@2/apps,32x32@2,32x32@2/apps,64x64@2,64x64@2/apps}

%files -n gnome-shell-search-provider-pantheon-appcenter
%dir %{_datadir}/{gnome-shell,gnome-shell/search-providers}
%{_datadir}/gnome-shell/search-providers/%{appid}.search-provider.ini

%files lang -f %{appid}.lang

%changelog
openSUSE Build Service is sponsored by