File cinnamon-session.spec of Package cinnamon-session
#
# spec file for package cinnamon-session
#
# Copyright (c) 2017 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/
#
Name: cinnamon-session
Version: 3.4.1
Release: 0
Summary: The session manager for the Cinnamon Desktop
License: GPL-2.0+ and LGPL-2.1+
Group: System/GUI/Other
Url: https://github.com/linuxmint/cinnamon-session
Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}-logind.gschema.override
# PATCH-FIX-OPENSUSE cinnamon-session-fix-qt-themes.patch boo#1002900 sor.alexei@meowr.ru -- Use Gtk2 Platform Theme on Qt 5.7+ and no gnome theme on 5.6.
Patch0: cinnamon-session-fix-qt-themes.patch
BuildRequires: autoconf
BuildRequires: autoconf-archive
BuildRequires: automake
BuildRequires: docutils
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: tcpd-devel
BuildRequires: update-desktop-files
BuildRequires: xmlto
BuildRequires: xtrans
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.10.0
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libcanberra)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(pangox)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(upower-glib)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xtst)
Requires: cinnamon
Requires: cinnamon-settings-daemon
Requires: dbus-1-x11
Requires: upower >= 0.9.0
Recommends: %{name}-lang
%glib2_gsettings_schema_requires
%if 0%{?suse_version} > 1320
# Make native styling in Qt5 happen.
Requires: libqt5-qtstyleplugins-platformtheme-gtk2
%endif
%description
This packages contains the session manager for the Cinnamon Desktop.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
%if 0%{?suse_version} > 1320
--enable-qt57-theme-support
%else
--disable-qt57-theme-support
%endif
make %{?_smp_mflags} V=1
%install
%make_install
%find_lang %{name}-3.0 %{?no_lang_C}
# We should own this directory.
mkdir -p %{buildroot}%{_datadir}/%{name}/sessions/
# Fix documentation location.
mkdir -p %{buildroot}%{_docdir}/
mv -f %{buildroot}%{_datadir}/doc/%{name}/ \
%{buildroot}%{_docdir}/%{name}/
# Use systemd-logind for suspend by default.
install -Dpm 0644 %{SOURCE1} \
%{buildroot}%{_datadir}/glib-2.0/schemas/org.cinnamon.desktop.session.gschema.override
%post
%desktop_database_post
%icon_theme_cache_post
%glib2_gsettings_schema_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README README.md
%dir %{_docdir}/%{name}/dbus/
%doc %{_docdir}/%{name}/dbus/%{name}.html
%{_bindir}/%{name}
%{_bindir}/%{name}-quit
%{_libexecdir}/%{name}-check-accelerated*
%{_datadir}/%{name}/
%{_datadir}/glib-2.0/schemas/org.cinnamon.*
%{_datadir}/icons/hicolor/*/apps/%{name}-properties.*
%{_mandir}/man?/%{name}*.?%{?ext_man}
%files lang -f %{name}-3.0.lang
%defattr(-,root,root)
%changelog