Dominique Leuenberger
18a46a6676
1 OBS-URL: https://build.opensuse.org/request/show/427413 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=274
306 lines
12 KiB
RPMSpec
306 lines
12 KiB
RPMSpec
#
|
|
# spec file for package gnome-shell
|
|
#
|
|
# Copyright (c) 2016 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/
|
|
#
|
|
|
|
|
|
%global __requires_exclude typelib\\(Meta\\)
|
|
|
|
Name: gnome-shell
|
|
Version: 3.21.92
|
|
Release: 0
|
|
Summary: GNOME Shell
|
|
License: GPL-2.0+
|
|
Group: System/GUI/GNOME
|
|
Url: http://live.gnome.org/GnomeShell
|
|
Source: http://download.gnome.org/sources/gnome-shell/3.21/%{name}-%{version}.tar.xz
|
|
# SOURCE-FEATURE-SLE SLE-Classic specific core extension file, see bnc#862615
|
|
Source1: SLEClassicExt.js
|
|
# SOURCE-FEATURE-SLE The SLE theme, with icons/background/gnome-shell.css, works with gnome-shell-sle-theme.patch
|
|
Source2: SLE-theme.tar.gz
|
|
# PATCH-FIX-UPSTREAM gnome-shell-linking.patch bgo#768781 dimstar@opensuse.org -- Fix linking the various libs in private directories
|
|
Patch0: gnome-shell-linking.patch
|
|
# PATCH-NEEDS-REBASE gnome-shell-private-connection.patch bnc#751211 bgo#646187 dimstar@opensuse.org -- create private connections if the user is not authorized Was PATCH-FIX-UPSTREAM
|
|
Patch1: gnome-shell-private-connection.patch
|
|
# PATCH-FIX-OPENSUSE gnome-shell-disable-ibus-when-not-installed.patch bsc#987360 qzhao@suse.com -- disable ibus start when outof Chinese, Japanese, Korean area.
|
|
Patch2: gnome-shell-disable-ibus-when-not-installed.patch
|
|
# PATCH-FEATURE-SLE gnome-shell-gdm-login-applet.patch fate#314545 dliang@suse.com -- Add an applet on login UI to display suse icon, product name, hostname.
|
|
Patch3: gnome-shell-gdm-login-applet.patch
|
|
# PATCH-FEATURE-SLE gnome-shell-domain.patch fate#307773 dliang@suse.com -- Active Directory Integration
|
|
Patch4: gnome-shell-domain.patch
|
|
# PATCH-FIX-SLE gnome-shell-878951-hide-list-with-no-user.patch bnc#878951 dliang@suse.com -- hide use list when there is not user
|
|
Patch5: gnome-shell-878951-hide-list-with-no-user.patch
|
|
# PATCH-FIX-SLE gnome-shell-screen-disappear.patch bnc#870217 dliang@suse.com -- screen disapper.
|
|
Patch6: gnome-shell-screen-disappear.patch
|
|
# PATCH-FIX-SLE endSession-dialog-update-time-label-every-sec.patch bnc#886132 cxiong@suse.com -- update time label every second in end session dialog
|
|
Patch7: endSession-dialog-update-time-label-every-sec.patch
|
|
# PATCH-FEATURE-SLE gnome-shell-864872-unlock-by-mouse-motion.patch bnc#864872 dliang@suse.com -- 10px mouse motion to lift screen shield.
|
|
Patch8: gnome-shell-864872-unlock-by-mouse-motion.patch
|
|
# PATCH-FIX-SLE gnome-shell-lock-bg-on-primay.patch bnc#894050 dliang@suse.com -- display background of lock dialog on the primary screen.
|
|
Patch9: gnome-shell-lock-bg-on-primary.patch
|
|
# PATCH-FIX-SLE gnome-shell-970480-authprompt-wrapping-message.patch bnc#970480 tyang@suse.com -- fix wrapping message issue when password change operation fails.
|
|
Patch10: gnome-shell-970480-authprompt-wrapping-message.patch
|
|
# PATCH-FIX-SLE gs-fate318433-prevent-same-account-multi-logins.patch fate#318433 cxiong@suse.com -- prevent multiple simultaneous login.
|
|
Patch11: gs-fate318433-prevent-same-account-multi-logins.patch
|
|
# PATCH-FEATURE-SLE gnome-shell-sle-theme.patch dliang@suse.com -- Use sle theme avatar
|
|
Patch12: gnome-shell-sle-theme.patch
|
|
## NOTE: Keep SLE Classic pathes at bottom.
|
|
# PATCH-FEATURE-SLE gs-sle-classic-ext.patch bnc#862615 cxiong@suse.com -- add SLE Classic support
|
|
Patch1000: gs-sle-classic-ext.patch
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
BuildRequires: gcc-c++
|
|
%if !0%{?is_opensuse}
|
|
BuildRequires: translation-update-upstream
|
|
%endif
|
|
# Needed for patch2
|
|
BuildRequires: gnome-common
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: xsltproc
|
|
BuildRequires: python(abi) >= 3
|
|
# needed for directory ownership
|
|
BuildRequires: dbus-1
|
|
BuildRequires: pkgconfig(atk-bridge-2.0)
|
|
BuildRequires: pkgconfig(gcr-base-3) >= 3.7.5
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.45.3
|
|
BuildRequires: pkgconfig(gjs-1.0) >= 1.39.0
|
|
BuildRequires: pkgconfig(gnome-bluetooth-1.0) >= 3.9.0
|
|
BuildRequires: pkgconfig(gnome-desktop-3.0) >= 3.7.90
|
|
BuildRequires: pkgconfig(gnome-keybindings)
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.49.1
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas) >= 3.21.2
|
|
BuildRequires: pkgconfig(gstreamer-1.0) >= 0.11.92
|
|
BuildRequires: pkgconfig(gstreamer-base-1.0)
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.15.0
|
|
BuildRequires: pkgconfig(json-glib-1.0) >= 0.13.2
|
|
BuildRequires: pkgconfig(libcanberra)
|
|
BuildRequires: pkgconfig(libcanberra-gtk3)
|
|
BuildRequires: pkgconfig(libcroco-0.6) >= 0.6.8
|
|
BuildRequires: pkgconfig(libedataserver-1.2) >= 3.5.3
|
|
BuildRequires: pkgconfig(libgnome-menu-3.0) >= 3.5.3
|
|
BuildRequires: pkgconfig(libmutter) >= 3.21.92
|
|
BuildRequires: pkgconfig(libnm-glib)
|
|
BuildRequires: pkgconfig(libnm-gtk) >= 0.9.8
|
|
BuildRequires: pkgconfig(libnm-util) >= 0.9.8
|
|
BuildRequires: pkgconfig(libpulse) >= 2.0
|
|
BuildRequires: pkgconfig(libpulse-mainloop-glib)
|
|
BuildRequires: pkgconfig(libsecret-unstable)
|
|
BuildRequires: pkgconfig(libsoup-2.4)
|
|
BuildRequires: pkgconfig(libstartup-notification-1.0) >= 0.11
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
BuildRequires: pkgconfig(mutter-clutter-1.0) >= 1.26.1
|
|
BuildRequires: pkgconfig(mutter-cogl-pango-1.0)
|
|
BuildRequires: pkgconfig(polkit-agent-1) >= 0.100
|
|
BuildRequires: pkgconfig(telepathy-glib) >= 0.17.5
|
|
BuildRequires: pkgconfig(telepathy-logger-0.2) >= 0.2.4
|
|
BuildRequires: pkgconfig(xtst)
|
|
Requires: gdk-pixbuf-loader-rsvg
|
|
Requires: gnome-session
|
|
# For a GSettings schema and power system icon
|
|
Requires: gnome-settings-daemon
|
|
Requires: gsettings-desktop-schemas
|
|
## Finally, dependencies for session services that are needed for system icons and the user menu
|
|
# bluetooth system icon
|
|
Requires: gnome-bluetooth
|
|
# "System settings" menu item
|
|
Requires: gnome-control-center
|
|
# "High Contrast" in accessibility status icon
|
|
Requires: gnome-themes-accessibility
|
|
# 11.4 doesn't have typelib dependency
|
|
%if 0%{?suse_version} < 1210
|
|
Requires: libaccountsservice0
|
|
Requires: libcaribou0
|
|
Requires: libgdmgreeter1
|
|
%endif
|
|
# Due to now private typelib(Meta)
|
|
Requires: mutter
|
|
Recommends: %{name}-browser-plugin
|
|
Recommends: %{name}-calendar
|
|
Recommends: %{name}-lang
|
|
# The dateTime applet in the panel launches gnome-clocks upon user request
|
|
Recommends: gnome-clocks
|
|
Recommends: gnome-shell-search-provider-documents
|
|
# network system icon
|
|
Recommends: NetworkManager-gnome
|
|
#merged into gnome-shell in 3.19
|
|
Obsoletes: gnome-shell-wayland
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%glib2_gsettings_schema_requires
|
|
|
|
%description
|
|
The GNOME Shell redefines user interactions with the GNOME desktop. In
|
|
particular, it offers new paradigms for launching applications, accessing
|
|
documents, and organizing open windows in GNOME.
|
|
|
|
%package devel
|
|
Summary: GNOME Shell -- Development Files
|
|
Group: Development/Libraries/GNOME
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
The GNOME Shell redefines user interactions with the GNOME desktop. In
|
|
particular, it offers new paradigms for launching applications, accessing
|
|
documents, and organizing open windows in GNOME.
|
|
|
|
%package browser-plugin
|
|
Summary: GNOME Shell Browser Plugin for the Extensions Repository
|
|
Group: System/GUI/GNOME
|
|
Requires: %{name} = %{version}
|
|
Supplements: packageand(%{name}:MozillaFirefox)
|
|
|
|
%description browser-plugin
|
|
The GNOME Shell Browser Plugin provides integration with gnome-shell
|
|
and the corresponding extensions repository. The plugin allows the
|
|
extensions repository to provide good integration, letting the website
|
|
know which extensions are enabled and disabled, and allowing the website
|
|
to enable, disable and install them.
|
|
|
|
%package calendar
|
|
Summary: Evolution Calendar support for GNOME Shell
|
|
Group: System/GUI/GNOME
|
|
Requires: %{name} = %{version}
|
|
# The clock / calendar applet in the panel requires e-d-s (bnc#795793).
|
|
Requires: evolution-data-server
|
|
Supplements: packageand(%{name}:evolution-data-server)
|
|
|
|
%description calendar
|
|
This package adds support for Evolution Calendar, such as appointments
|
|
into GNOME Shell calendar.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
# Needs rebase
|
|
#patch1 -p1
|
|
%patch2 -p1
|
|
%if !0%{?is_opensuse}
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
%patch9 -p1
|
|
%patch10 -p1
|
|
%patch11 -p1
|
|
### FIXME: The patch currently don't work. Re-enable when it's fixed
|
|
%if 0
|
|
%patch12 -p1
|
|
%endif
|
|
%endif
|
|
%if !0%{?is_opensuse}
|
|
%patch1000 -p1
|
|
translation-update-upstream
|
|
%endif
|
|
cp %{S:1} js/ui/
|
|
|
|
%build
|
|
# Needed for patch2
|
|
autoreconf -fiv
|
|
export BROWSER_PLUGIN_DIR=%{_libdir}/browser-plugins
|
|
%configure \
|
|
--disable-static \
|
|
--libexecdir=%{_libexecdir}/%{name} \
|
|
--enable-compile-warnings=no
|
|
%__make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
# This is the directory where extensions get installed
|
|
install -d %{buildroot}%{_datadir}/gnome-shell/extensions
|
|
# This is the directory where search providers get installed
|
|
install -d %{buildroot}%{_datadir}/gnome-shell/search-providers
|
|
# Install SLE theme
|
|
# WARNING: some of the followings might NOT be effective at all, as core themes
|
|
# are packed as GResource.
|
|
tar xzvf %{SOURCE2}
|
|
install -d %{buildroot}%{_datadir}/gnome-shell/theme
|
|
cp -r SLE-theme/icons %{buildroot}%{_datadir}/
|
|
cp SLE-theme/theme/* %{buildroot}%{_datadir}/gnome-shell/theme
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
%suse_update_desktop_file org.gnome.Shell
|
|
%suse_update_desktop_file gnome-shell-extension-prefs
|
|
# Work around race, as reported in bnc#844891 & bgo#709313.
|
|
install -d %{buildroot}%{_datadir}/gnome-shell/modes
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post
|
|
%glib2_gsettings_schema_post
|
|
%desktop_database_post
|
|
|
|
%postun
|
|
%glib2_gsettings_schema_postun
|
|
%desktop_database_postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING README NEWS
|
|
%{_bindir}/gnome-shell
|
|
%{_bindir}/gnome-shell-extension-prefs
|
|
%exclude %{_libexecdir}/gnome-shell/gnome-shell-calendar-server
|
|
%{_libexecdir}/gnome-shell/
|
|
%if "%{_libdir}" != "%{_libexecdir}"
|
|
%{_libdir}/gnome-shell/
|
|
%endif
|
|
%dir %{_datadir}/GConf
|
|
%dir %{_datadir}/GConf/gsettings
|
|
%{_datadir}/GConf/gsettings/gnome-shell-overrides.convert
|
|
%{_datadir}/applications/org.gnome.Shell.desktop
|
|
%{_datadir}/applications/gnome-shell-extension-prefs.desktop
|
|
%{_datadir}/applications/org.gnome.Shell.PortalHelper.desktop
|
|
%{_datadir}/dbus-1/interfaces/org.gnome.Shell.Screencast.xml
|
|
%{_datadir}/dbus-1/interfaces/org.gnome.Shell.Screenshot.xml
|
|
%{_datadir}/dbus-1/interfaces/org.gnome.ShellSearchProvider.xml
|
|
%{_datadir}/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml
|
|
%{_datadir}/dbus-1/services/org.gnome.Shell.HotplugSniffer.service
|
|
%{_datadir}/dbus-1/services/org.gnome.Shell.PortalHelper.service
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.gschema.xml
|
|
%{_datadir}/gnome-control-center/keybindings/50-gnome-shell-system.xml
|
|
%{_datadir}/gnome-shell/
|
|
%{_datadir}/icons/*
|
|
%doc %{_mandir}/man?/gnome-shell.*
|
|
%dir %{_datadir}/xdg-desktop-portal
|
|
%dir %{_datadir}/xdg-desktop-portal/portals
|
|
%{_datadir}/xdg-desktop-portal/portals/gnome-shell.portal
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/gnome-shell-extension-tool
|
|
%{_bindir}/gnome-shell-perf-tool
|
|
%doc %{_datadir}/gtk-doc/html/st/
|
|
%doc %{_datadir}/gtk-doc/html/shell/
|
|
|
|
%files browser-plugin
|
|
%defattr(-,root,root)
|
|
%doc browser-plugin/README
|
|
%{_libdir}/browser-plugins/libgnome-shell-browser-plugin.*
|
|
|
|
%files calendar
|
|
%defattr(-,root,root)
|
|
%{_datadir}/applications/evolution-calendar.desktop
|
|
%{_libexecdir}/gnome-shell/gnome-shell-calendar-server
|
|
%{_datadir}/dbus-1/services/org.gnome.Shell.CalendarServer.service
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|