gnome-session/gnome-session.spec

142 lines
3.9 KiB
RPMSpec
Raw Normal View History

%define po_package gnome-session-46
2013-05-15 15:14:55 +00:00
%if 0%{?fedora}
%else
%global with_session_selector 1
%endif
2021-02-23 20:07:17 +00:00
%global tarball_version %%(echo %{version} | tr '~' '.')
Name: gnome-session
Version: 46~alpha
Release: %autorelease
Summary: GNOME session manager
2016-09-19 19:45:47 +00:00
License: GPL-2.0-or-later
URL: https://gitlab.gnome.org/GNOME/gnome-session
Source: https://download.gnome.org/sources/gnome-session/46/%{name}-%{tarball_version}.tar.xz
2009-03-06 17:14:35 +00:00
# Blacklist NV30: https://bugzilla.redhat.com/show_bug.cgi?id=745202
Patch: gnome-session-3.3.92-nv30.patch
Patch: gnome-session-3.6.2-swrast.patch
# https://bugzilla.gnome.org/show_bug.cgi?id=772421
Patch: 0001-check-accelerated-gles-Use-eglGetPlatformDisplay-EXT.patch
# For https://fedoraproject.org/w/index.php?title=Changes/HiddenGrubMenu
# This should go upstream once systemd has a generic interface for this
Patch: 0001-Fedora-Set-grub-boot-flags-on-shutdown-reboot.patch
BuildRequires: meson
BuildRequires: gcc
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xau)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xrender)
BuildRequires: pkgconfig(xtrans)
BuildRequires: pkgconfig(xtst)
# this is so the configure checks find /usr/bin/halt etc.
BuildRequires: usermode
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: xmlto
BuildRequires: /usr/bin/xsltproc
2010-07-08 16:27:09 +00:00
# an artificial requires to make sure we get dconf, for now
Requires: dconf
2016-09-19 19:45:47 +00:00
Requires: system-logos
# Needed for gnome-settings-daemon
Requires: control-center-filesystem
Requires: gsettings-desktop-schemas >= 0.1.7
Requires: dbus
2016-09-19 19:45:47 +00:00
2024-01-18 14:28:56 +00:00
# https://github.com/containers/composefs/pull/229#issuecomment-1838735764
%if 0%{?rhel} >= 10
ExcludeArch: %{ix86}
%endif
2021-10-12 18:06:21 +00:00
%description
2009-03-03 17:35:53 +00:00
gnome-session manages a GNOME desktop or GDM login session. It starts up
2008-11-25 06:59:08 +00:00
the other core GNOME components and handles logout and saving the session.
%package xsession
2010-10-22 04:10:42 +00:00
Summary: Desktop file for gnome-session
2015-03-18 13:54:43 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: xorg-x11-server-Xorg%{?_isa}
Requires: gnome-shell
# The X11 session is deprecated and eventually will be removed
Provides: deprecated()
%description xsession
Desktop file to add GNOME to display manager session menu.
2014-04-08 14:16:34 +00:00
%package wayland-session
Summary: Desktop file for wayland based gnome session
2015-03-18 13:54:43 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: xorg-x11-server-Xwayland%{?_isa} >= 1.20.99.1
Requires: gnome-shell
2014-04-08 14:16:34 +00:00
%description wayland-session
Desktop file to add GNOME on wayland to display manager session menu.
%prep
2021-02-23 20:07:17 +00:00
%autosetup -p1 -n %{name}-%{tarball_version}
2011-01-14 12:37:28 +00:00
2008-12-04 15:12:25 +00:00
%build
%meson \
2018-02-09 14:19:30 +00:00
%if 0%{?with_session_selector}
-Dsession_selector=true \
2013-05-15 15:14:55 +00:00
%endif
%{nil}
2018-02-09 14:18:28 +00:00
%meson_build
%install
2018-02-09 14:55:52 +00:00
%meson_install
%find_lang %{po_package}
%ldconfig_scriptlets
2008-09-25 18:21:27 +00:00
%files xsession
%{_datadir}/xsessions/*
2014-04-08 14:16:34 +00:00
%files wayland-session
%{_datadir}/wayland-sessions/*
%files -f %{po_package}.lang
%doc AUTHORS NEWS README
%license COPYING
2022-03-22 08:06:44 +00:00
%{_bindir}/gnome-session*
2015-10-14 19:25:54 +00:00
%{_libexecdir}/gnome-session-binary
2011-03-08 04:54:33 +00:00
%{_libexecdir}/gnome-session-check-accelerated
2016-07-26 14:05:48 +00:00
%{_libexecdir}/gnome-session-check-accelerated-gl-helper
%{_libexecdir}/gnome-session-check-accelerated-gles-helper
%{_libexecdir}/gnome-session-ctl
%{_libexecdir}/gnome-session-failed
2022-03-22 08:06:44 +00:00
%{_mandir}/man1/gnome-session*1.*
%{_datadir}/gnome-session/
%dir %{_datadir}/xdg-desktop-portal
2023-09-17 09:00:05 +00:00
%{_datadir}/xdg-desktop-portal/gnome-portals.conf
%{_datadir}/doc/gnome-session/
2011-02-02 19:05:09 +00:00
%{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml
%{_userunitdir}/gnome-session*
%{_userunitdir}/gnome-launched-.scope.d/
%changelog
%autochangelog