f02231bb52
This path is now the upstream default location since: https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/merge_requests/85 so we don't need to specify it manually. Doing so has an undesirable side effect: it disables the search path feature, so I cannot override the configuration in /usr/share by creating an /etc/gnome-initial-setup/vendor.conf as I would expect.
109 lines
3.6 KiB
RPMSpec
109 lines
3.6 KiB
RPMSpec
%global nm_version 1.2
|
|
%global nma_version 1.0
|
|
%global glib_required_version 2.63.1
|
|
%global gtk_required_version 3.11.3
|
|
%global geoclue_version 2.3.1
|
|
%global libhandy_version 1.5.90
|
|
|
|
%global tarball_version %%(echo %{version} | tr '~' '.')
|
|
|
|
Name: gnome-initial-setup
|
|
Version: 42.2
|
|
Release: %autorelease
|
|
Summary: Bootstrapping your OS
|
|
|
|
License: GPLv2+
|
|
URL: https://wiki.gnome.org/Design/OS/InitialSetup
|
|
Source0: https://download.gnome.org/sources/%{name}/42/%{name}-%{tarball_version}.tar.xz
|
|
Source1: vendor.conf
|
|
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: gcc
|
|
BuildRequires: meson
|
|
BuildRequires: pkgconfig(accountsservice)
|
|
BuildRequires: pkgconfig(cheese)
|
|
BuildRequires: pkgconfig(cheese-gtk) >= 3.3.5
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
BuildRequires: pkgconfig(geocode-glib-1.0)
|
|
BuildRequires: pkgconfig(gnome-desktop-4)
|
|
BuildRequires: pkgconfig(gstreamer-1.0)
|
|
BuildRequires: pkgconfig(goa-1.0)
|
|
BuildRequires: pkgconfig(goa-backend-1.0)
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk_required_version}
|
|
BuildRequires: pkgconfig(glib-2.0) >= %{glib_required_version}
|
|
BuildRequires: pkgconfig(gio-2.0) >= %{glib_required_version}
|
|
BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib_required_version}
|
|
BuildRequires: pkgconfig(gdm)
|
|
BuildRequires: pkgconfig(gweather4)
|
|
BuildRequires: pkgconfig(ibus-1.0)
|
|
BuildRequires: pkgconfig(iso-codes)
|
|
BuildRequires: pkgconfig(krb5)
|
|
BuildRequires: pkgconfig(libgeoclue-2.0) >= %{geoclue_version}
|
|
BuildRequires: pkgconfig(libhandy-1) >= %{libhandy_version}
|
|
BuildRequires: pkgconfig(libnm) >= %{nm_version}
|
|
BuildRequires: pkgconfig(libnma) >= %{nma_version}
|
|
BuildRequires: pkgconfig(libsecret-1)
|
|
BuildRequires: pkgconfig(packagekit-glib2)
|
|
BuildRequires: pkgconfig(polkit-gobject-1)
|
|
BuildRequires: pkgconfig(pwquality)
|
|
BuildRequires: pkgconfig(rest-0.7)
|
|
BuildRequires: pkgconfig(webkit2gtk-4.0)
|
|
|
|
# gnome-initial-setup is being run by gdm
|
|
Requires: gdm
|
|
Requires: geoclue2-libs%{?_isa} >= %{geoclue_version}
|
|
Requires: glib2%{?_isa} >= %{glib_required_version}
|
|
Requires: libhandy%{?_isa} >= %{libhandy_version}
|
|
# we install a rules file
|
|
Requires: polkit-js-engine
|
|
Requires: /usr/bin/gkbd-keyboard-display
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
Provides: user(%name)
|
|
|
|
%description
|
|
GNOME Initial Setup is an alternative to firstboot, providing
|
|
a good setup experience to welcome you to your system, and walks
|
|
you through configuring it. It is integrated with gdm.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{name}-%{tarball_version}
|
|
|
|
%build
|
|
%meson -Dparental_controls=disabled
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/gnome-initial-setup-copy-worker.desktop
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/gnome-initial-setup.desktop
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/gnome-initial-setup
|
|
cp %{SOURCE1} %{buildroot}%{_datadir}/gnome-initial-setup/
|
|
|
|
%find_lang %{name}
|
|
|
|
%pre
|
|
useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} &>/dev/null || :
|
|
|
|
%files -f %{name}.lang
|
|
%license COPYING
|
|
%doc NEWS README.md
|
|
%{_libexecdir}/gnome-initial-setup
|
|
%{_libexecdir}/gnome-initial-setup-copy-worker
|
|
%{_sysconfdir}/xdg/autostart/gnome-initial-setup-copy-worker.desktop
|
|
%{_sysconfdir}/xdg/autostart/gnome-initial-setup-first-login.desktop
|
|
%{_datadir}/applications/gnome-initial-setup.desktop
|
|
%{_datadir}/gnome-session/sessions/gnome-initial-setup.session
|
|
%{_datadir}/gnome-shell/modes/initial-setup.json
|
|
%{_datadir}/polkit-1/rules.d/20-gnome-initial-setup.rules
|
|
%{_userunitdir}/*
|
|
|
|
%dir %{_datadir}/gnome-initial-setup
|
|
%{_datadir}/gnome-initial-setup/vendor.conf
|
|
|
|
%changelog
|
|
%autochangelog
|