## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname onboarding %global appname io.elementary.onboarding Name: elementary-onboarding Summary: Onboarding app for new users Version: 6.1.0 Release: %autorelease License: GPLv3+ URL: https://github.com/elementary/onboarding Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz # Patch to fix "NotShowIn" in group "Desktop Entry" contains an unregistered value "Installer" # https://github.com/elementary/onboarding/issues/154 Patch0: %{url}/pull/155.patch BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: libappstream-glib BuildRequires: meson BuildRequires: vala BuildRequires: pkgconfig(gee-0.8) BuildRequires: pkgconfig(glib-2.0) >= 2.64.0 BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(granite) >= 5.5.0 BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(libhandy-1) >= 0.80.0 Requires: hicolor-icon-theme %description Onboarding application for new users to the Pantheon DE. %prep %autosetup -n %{srcname}-%{version} -p1 %build %meson %meson_build %install %meson_install # Remove @2 scaled icons that's not supported by hicolor-icon-theme # - https://bugzilla.redhat.com/show_bug.cgi?id=1537318 # - https://gitlab.freedesktop.org/xdg/default-icon-theme/-/issues/2 # - https://src.fedoraproject.org/rpms/hicolor-icon-theme/pull-request/2 rm -r %{buildroot}/%{_datadir}/icons/hicolor/*@2/ %find_lang %{appname} %check desktop-file-validate \ %{buildroot}/%{_datadir}/applications/%{appname}.desktop desktop-file-validate \ %{buildroot}/%{_sysconfdir}/xdg/autostart/%{appname}.desktop appstream-util validate-relax --nonet \ %{buildroot}/%{_datadir}/metainfo/%{appname}.appdata.xml %files -f %{appname}.lang %license COPYING %doc README.md %config(noreplace) %{_sysconfdir}/xdg/autostart/%{appname}.desktop %{_bindir}/%{appname} %{_datadir}/applications/%{appname}.desktop %{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml %{_datadir}/metainfo/%{appname}.appdata.xml %{_datadir}/icons/hicolor/*/apps/%{appname}.svg %changelog * Thu Jul 21 2022 Fedora Release Engineering 6.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Feb 14 2022 Christopher Crouse 6.1.0-1 - Initial package import for F36; Fixes #RHBZ2033757