## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 %bcond check 1 %global app_id mobi.phosh.FirstBoot %global gettext_domain PhoshFirstBoot Name: phosh-first-boot Version: 0.1.0 Release: %autorelease Summary: First boot setup assistant for Phosh SourceLicense: GPL-3.0-only # FIXME: paste output of %%cargo_license_summary here once the vendored build completes. License: GPL-3.0-only URL: https://gitlab.gnome.org/World/Phosh/phosh-first-boot Source0: %{name}-%{version}.tar.gz # To regenerate vendor tarball: # dir="$(mktemp -d)"; version="$(cat phosh-first-boot.spec| grep ^Version: | awk '{print $2}')"; tar -C $dir --strip-components=1 -xvf phosh-first-boot-$version.tar.gz && patch -d $dir -p1 < 0001-Cargo.lock-match-package-version.patch && (cd $dir && cargo vendor --locked --versioned-dirs $dir/vendor) && tar -C $dir -cvzf vendor-$version.tar.gz vendor/ Source1: vendor-%{version}.tar.gz Patch0: 0001-Cargo.lock-match-package-version.patch ExclusiveArch: %{rust_arches} BuildRequires: cargo-rpm-macros >= 25 BuildRequires: desktop-file-utils BuildRequires: gettext-devel BuildRequires: glib2-devel BuildRequires: libxcrypt-devel BuildRequires: meson BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(libadwaita-1) BuildRequires: pkgconfig(pms-1.0) BuildRequires: pkgconfig(systemd) BuildRequires: systemd-rpm-macros #Buildrequires: libphosh-mobile-settings-devel Requires: dconf Requires: polkit Recommends: phrog Recommends: systemd-homed %description Phosh First Boot is a first boot assistant that helps users configure their system after booting a device for the first time. %prep %autosetup -p1 -a1 %cargo_prep -v vendor %build export GETTEXT_SYSTEM=1 %meson \ -Dsetup-user=greetd \ -Dsystemd_user_unit_dir=%{_userunitdir} \ -Dtmpfiles_dir=%{_tmpfilesdir} %meson_build %cargo_build %cargo_vendor_manifest %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install export GETTEXT_SYSTEM=1 %meson_install install -Dpm 0755 target/rpm/%{name} -t %{buildroot}%{_bindir} install -Dpm 0755 target/rpm/%{name}-importer -t %{buildroot}%{_libexecdir} %find_lang %{gettext_domain} %check %if %{with check} export GETTEXT_SYSTEM=1 %meson_test %cargo_test %endif %post %tmpfiles_create %{_tmpfilesdir}/%{name}.conf %files -f %{gettext_domain}.lang %license COPYING %license LICENSE.dependencies %license cargo-vendor.txt %doc NEWS README.md %{_bindir}/%{name} %{_libexecdir}/%{name}-importer %{_userunitdir}/%{name}-importer.service %{_tmpfilesdir}/%{name}.conf %{_datadir}/applications/%{app_id}.desktop %{_datadir}/glib-2.0/schemas/00_%{app_id}.gschema.override %{_datadir}/glib-2.0/schemas/%{app_id}.gschema.xml %{_datadir}/icons/hicolor/symbolic/apps/%{app_id}-symbolic.svg %{_datadir}/polkit-1/rules.d/20-%{name}.rules %changelog ## START: Generated by rpmautospec * Wed Aug 19 2026 John Doe - 0.1.0-1 - Uncommitted changes ## END: Generated by rpmautospec