gnome-session/gnome-session.spec
Dominique Leuenberger 088502bb07 Accepting request 341752 from home:Zaitor:branches:GNOME:Factory
Bye bye gconf2 :-)

Packages left that I know of are virt-manager (where I suspect the dep is totaly bogus, as it requires gtk3 and dconf....
Then python-gconf is listed - something ain't right there :-)
But the biggest problem is Libreoffice - There I suspect we just have to wait for the gtk3 port to be complete.

OBS-URL: https://build.opensuse.org/request/show/341752
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-session?expand=0&rev=216
2015-11-02 12:58:52 +00:00

201 lines
6.4 KiB
RPMSpec

#
# spec file for package gnome-session
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define with_systemd 1
Name: gnome-session
Version: 3.18.1.2
Release: 0
Summary: Session Tools for the GNOME Desktop
License: GPL-2.0+
Group: System/GUI/GNOME
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/gnome-session/3.18/%{name}-%{version}.tar.xz
Source1: gnome
Source2: gnome.desktop
# PATCH-FIX-UPSTREAM gnome-session-ice-auth-for-suid.patch hpj@novell.com -- Carries ICE auth over to other UIDs in this session using an env var.
Patch0: gnome-session-ice-auth-for-suid.patch
BuildRequires: fdupes
BuildRequires: gnome-common
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: tcpd-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(dbus-glib-1) >= 0.76
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.35.0
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glib-2.0) >= 2.35.0
BuildRequires: pkgconfig(gnome-desktop-3.0) >= 3.9.91
BuildRequires: pkgconfig(gtk+-3.0) >= 2.90.7
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(json-glib-1.0) >= 0.10
%if 0%{?suse_version} >= 1220
BuildRequires: pkgconfig(libsystemd-daemon)
BuildRequires: pkgconfig(libsystemd-login)
%endif
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xau)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xrender)
BuildRequires: pkgconfig(xtrans)
BuildRequires: pkgconfig(xtst)
Requires: %{name}-core = %{version}
Requires: %{name}-default-session = %{version}
Recommends: %{name}-lang
Obsoletes: gnome-core
# There's no splash anymore, so no branding package.
Provides: %{name}-branding = %{version}
Obsoletes: %{name}-branding < %{version}
# Obsolete helpers that were in subpackages and that have been removed
Obsoletes: gnome-session-gtk1-support <= 2.31
Obsoletes: gnome-session-splash <= 2.31
# the fallback session was dropped in gnome 3.8.
Obsoletes: gnome-session-fallback-session < 3.8
# Since GNOME 3.8.0, the 'classic' mode is provided by gnome-shell-extensions.
Obsoletes: gnome2-look-and-feel <= 3.8.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides the basic session tools, like session management
functionality, for the GNOME Desktop.
%package default-session
Summary: Session Manager for GNOME -- Default GNOME Session
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Requires: gnome-settings-daemon
Requires: gnome-shell
%description default-session
This package contains the definition of the default GNOME session.
%package wayland
Summary: Session Manager for GNOME -- Wayland session
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Requires: gnome-settings-daemon
Requires: gnome-shell-wayland
%description wayland
This package contains the definition of the default GNOME session on Wayland.
%package core
Summary: Session Manager for GNOME -- Minimal Version
Group: System/GUI/GNOME
%if ! %{with_systemd}
Requires: ConsoleKit
%endif
Requires: dbus-1-x11
Requires: gsettings-desktop-schemas >= 0.1.7
Requires: hicolor-icon-theme
%glib2_gsettings_schema_requires
%description core
This package contains a minimal version of gnome-session, that can be
used for specific cases. The gnome-session package is needed for a fully
functional GNOME desktop.
%lang_package
%prep
%setup -q
# Disabled, as it fails
#translation-update-upstream
%patch0 -p1
%build
NOCONFIGURE=1 gnome-autogen.sh
%configure \
--enable-systemd \
--disable-gconf
%__make %{?jobs:-j%jobs} V=1
%install
%makeinstall
# install startup script and xsession file
install -d -m755 %{buildroot}%{_bindir}
install -m755 %SOURCE1 %{buildroot}%{_bindir}/gnome
install -d -m755 %{buildroot}%{_datadir}/xsessions
install -m644 %SOURCE2 %{buildroot}%{_datadir}/xsessions/gnome.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/gnome.desktop
%find_lang %{name}-3.0 %{?no_lang_C}
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%post core
%glib2_gsettings_schema_post
%icon_theme_cache_post
%postun core
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%files
%defattr (-, root, root)
%{_bindir}/gnome
%{_datadir}/xsessions/gnome.desktop
%{_datadir}/icons/hicolor/*/apps/session-properties*
%{_datadir}/gnome-session/session-properties.ui
%files default-session
%defattr (-, root, root)
%{_datadir}/gnome-session/sessions/gnome.session
%{_datadir}/gnome-session/sessions/gnome-dummy.session
%files wayland
%defattr (-, root, root)
%{_datadir}/gnome-session/sessions/gnome-wayland.session
%dir %{_datadir}/wayland-sessions
%{_datadir}/wayland-sessions/gnome-wayland.desktop
%files core
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/gnome-session
%{_bindir}/gnome-session-inhibit
%{_bindir}/gnome-session-quit
%{_datadir}/GConf/gsettings/gnome-session.convert
%{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml
%dir %{_datadir}/gnome-session
%dir %{_datadir}/gnome-session/sessions
%doc %{_mandir}/man1/gnome-session.1%{?ext_man}
%doc %{_mandir}/man1/gnome-session-inhibit.1%{?ext_man}
%doc %{_mandir}/man1/gnome-session-quit.1%{?ext_man}
%{_libexecdir}/gnome-session-binary
# Helper for the session definitions, to know if hardware is accelerated
%{_libexecdir}/gnome-session-check-accelerated
%{_libexecdir}/gnome-session-check-accelerated-helper
%{_libexecdir}/gnome-session-failed
%{_datadir}/gnome-session/hardware-compatibility
%files lang -f %{name}-3.0.lang
%changelog