## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 Name: stevia Version: 0.48.0 Release: %autorelease Summary: Alternative keyboard for Phosh License: GPL-3.0-or-later URL: https://gitlab.gnome.org/World/Phosh/stevia Source: %{url}/-/archive/v%{version_no_tilde _}/%{name}-v%{version_no_tilde _}.tar.gz ExcludeArch: %{ix86} BuildRequires: gcc BuildRequires: meson BuildRequires: pkgconfig(glib-2.0) >= 2.80 BuildRequires: pkgconfig(gio-2.0) >= 2.80 BuildRequires: pkgconfig(gobject-2.0) >= 2.80 BuildRequires: pkgconfig(gmobile) >= 0.2.0 BuildRequires: pkgconfig(gnome-desktop-3.0) >= 3.26 BuildRequires: pkgconfig(gsettings-desktop-schemas) >= 47 BuildRequires: pkgconfig(gtk+-3.0) >= 3.22 BuildRequires: pkgconfig(gtk+-wayland-3.0) >= 3.22 BuildRequires: pkgconfig(gdk-3.0) >= 3.22 BuildRequires: pkgconfig(gdk-wayland-3.0) >= 3.22 BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libfeedback-0.0) BuildRequires: pkgconfig(libhandy-1) >= 1.8.0 BuildRequires: pkgconfig(libsystemd) >= 241 BuildRequires: pkgconfig(wayland-client) >= 1.14 BuildRequires: pkgconfig(wayland-protocols) >= 1.12 BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(hunspell) BuildRequires: /usr/bin/fzf BuildRequires: /usr/bin/rst2man BuildRequires: /usr/bin/xvfb-run BuildRequires: gettext BuildRequires: systemd-rpm-macros BuildRequires: libappstream-glib BuildRequires: desktop-file-utils BuildRequires: words Requires(post): %{_bindir}/update-alternatives Requires(postun): %{_bindir}/update-alternatives Requires(preun): %{_bindir}/update-alternatives Provides: phosh-osk = 1.0 Provides: phosh-osk %description Stevia is an alternative keyboard for Phosh. The purpose of Stevia is: * to make typing pleasant and fast on touch screens * be helpful when debugging input-method related issues * be quick and easy to (cross)compile * to be easy to extend (hence the API documentation) %prep %autosetup -p1 -n %{name}-v%{version_no_tilde _} %conf %meson -Dman=true %build %meson_build %install %meson_install desktop-file-validate %{buildroot}%{_datadir}/applications/sm.puri.OSK0.desktop mv %{buildroot}%{_datadir}/applications/sm.puri.OSK0.desktop \ %{buildroot}%{_datadir}/applications/sm.puri.OSK0.desktop.stevia touch %{buildroot}%{_datadir}/applications/sm.puri.OSK0.desktop %find_lang phosh-osk-%{name} --with-man %check LC_ALL=C.UTF-8 xvfb-run sh <<'SH' %meson_test SH %postun if [ "$1" -ge "$1" ]; then if "$(readlink %{_sysconfdir}/alternatives/phosh-osk)" == "%{_datadir}/applications/sm.puri.OSK0.desktop.stevia" ]; then %{_bindir}/alternatives --set phosh-osk %{_datadir}/applications/sm.puri.OSK0.desktop.stevia fi fi %post update-alternatives --install %{_datadir}/applications/sm.puri.OSK0.desktop %{_datadir}/applications/sm.puri.OSK0.desktop.stevia %preun if [ $1 = 0 ]; then update-alternatives --remove phosh-osk %{_datadir}/applications/sm.puri.OSK0.desktop.stevia fi %files -f phosh-osk-%{name}.lang %ghost %{_datadir}/applications/sm.puri.OSK0.desktop %doc README.md %license COPYING %{_bindir}/phosh-osk-stevia %{_datadir}/applications/sm.puri.OSK0.desktop.stevia %{_datadir}/glib-2.0/schemas/mobi.phosh.osk.enums.xml %{_datadir}/glib-2.0/schemas/mobi.phosh.osk.gschema.xml %{_datadir}/metainfo/mobi.phosh.Stevia.metainfo.xml %{_datadir}/phosh-osk-stevia/ %{_mandir}/man1/phosh-osk-stevia.1* %changelog ## START: Generated by rpmautospec * Thu Oct 02 2025 Tomi Lähteenmäki - 0.48.0-3 - Use alternatives instead of conflict * Sat Sep 27 2025 Tomi Lähteenmäki - 0.48.0-2 - Review fixes * Thu Aug 14 2025 Tomi Lähteenmäki - 0.48.0-1 - Upstream release 0.48.0 ## END: Generated by rpmautospec