2009-12-26 13:39:53 +01:00
|
|
|
#
|
2011-05-31 17:19:20 +02:00
|
|
|
# spec file for package lxsession
|
2009-12-26 13:39:53 +01:00
|
|
|
#
|
2013-09-10 12:42:51 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-12-26 13:39:53 +01:00
|
|
|
#
|
|
|
|
# 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: lxsession
|
2013-09-15 16:09:25 +02:00
|
|
|
Version: 0.4.9.3.git20130914
|
2013-09-10 12:42:51 +02:00
|
|
|
Release: 0
|
2009-12-26 13:39:53 +01:00
|
|
|
Summary: LXDE Session Manager, required for running the desktop environment
|
2013-09-10 12:42:51 +02:00
|
|
|
License: GPL-2.0
|
2010-07-14 00:31:45 +02:00
|
|
|
Group: System/GUI/LXDE
|
2009-12-26 13:39:53 +01:00
|
|
|
Url: http://www.lxde.org/
|
2013-09-10 12:42:51 +02:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2013-09-15 16:09:25 +02:00
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org - can't build gtk2 generated .c file with gtk3
|
|
|
|
Patch0: lxsession-0.4.9.3-gtk3-fix.patch
|
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org - don't bump libgee version, it's no sense
|
|
|
|
Patch1: lxsession-0.4.9.3-lower-libgee.patch
|
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org - hide_all() is no more in gtk3, replace with hide()
|
|
|
|
Patch2: lxsession-0.4.9.3-gtk3-hide_all.patch
|
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org - FileAttribute.Standard_Name doesn't exist in 0.14 vala
|
|
|
|
Patch3: lxsession-0.4.9.3-FileAttribute.Standard_Name.patch
|
2013-09-10 12:42:51 +02:00
|
|
|
BuildRequires: dbus-1-glib-devel
|
|
|
|
BuildRequires: docbook-utils
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%if 0%{?suse_version} <= 1220
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libgee-devel
|
2013-09-15 16:09:25 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libxslt
|
2013-09-10 12:42:51 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: polkit-devel
|
|
|
|
BuildRequires: vala >= 0.14
|
2009-12-26 13:39:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
LXSession is the standard session manager used by LXDE. The LXSession manager
|
|
|
|
is used to automatically start a set of applications and set up a working desktop
|
|
|
|
environment. Moreover, the session manager is able to remember the applications in
|
2013-09-10 12:42:51 +02:00
|
|
|
use when a user logs out and to restart them the next time the user logs in.
|
2009-12-26 13:39:53 +01:00
|
|
|
|
|
|
|
%prep
|
2013-09-10 12:42:51 +02:00
|
|
|
%setup -q
|
2013-09-15 16:09:25 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%if 0%{?suse_version} <= 1230
|
|
|
|
%patch1 -p1
|
|
|
|
%endif
|
2013-09-10 12:42:51 +02:00
|
|
|
%if 0%{?suse_version} > 1220
|
2013-09-15 16:09:25 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} <= 1210
|
|
|
|
%patch3 -p1
|
2013-09-10 12:42:51 +02:00
|
|
|
%endif
|
2009-12-26 13:39:53 +01:00
|
|
|
|
|
|
|
%build
|
2013-09-15 16:09:25 +02:00
|
|
|
autoreconf -fi
|
2013-09-10 12:42:51 +02:00
|
|
|
%configure \
|
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
--enable-gtk3 \
|
|
|
|
%endif
|
|
|
|
--enable-man
|
|
|
|
make %{?_smp_mflags} V=1
|
2009-12-26 13:39:53 +01:00
|
|
|
|
|
|
|
%install
|
2013-09-10 12:42:51 +02:00
|
|
|
%make_install
|
2009-12-26 13:39:53 +01:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2013-09-10 12:42:51 +02:00
|
|
|
# fix icon problems
|
|
|
|
# no such icon lxsession-default-apps
|
|
|
|
sed -i "3d" %{buildroot}%{_datadir}/applications/lxsession-default-apps.desktop
|
|
|
|
# why lxde use xfwm4 icon ?
|
|
|
|
sed -i "3d" %{buildroot}%{_datadir}/applications/lxsession-edit.desktop
|
|
|
|
|
|
|
|
%fdupes %{buildroot}
|
2009-12-26 13:39:53 +01:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,0755)
|
2013-09-10 12:42:51 +02:00
|
|
|
%doc AUTHORS ChangeLog README COPYING TODO
|
2010-12-04 20:07:37 +01:00
|
|
|
%{_bindir}/lxlock
|
2009-12-26 13:39:53 +01:00
|
|
|
%{_bindir}/lxsession
|
|
|
|
%{_bindir}/lxsession-logout
|
2013-09-10 12:42:51 +02:00
|
|
|
%{_bindir}/lxclipboard
|
|
|
|
%{_bindir}/lxpolkit
|
|
|
|
%{_bindir}/lxsession-default
|
|
|
|
%{_bindir}/lxsession-default-apps
|
|
|
|
%{_bindir}/lxsession-default-terminal
|
|
|
|
%{_bindir}/lxsession-edit
|
2013-09-15 16:09:25 +02:00
|
|
|
%{_bindir}/lxsession-db
|
|
|
|
%{_bindir}/lxsession-message-gtk
|
|
|
|
%{_bindir}/lxsession-xsettings
|
|
|
|
%{_bindir}/lxsettings-daemon
|
2013-09-10 12:42:51 +02:00
|
|
|
%{_datadir}/lxsession/
|
|
|
|
%{_datadir}/applications/lxsession-default-apps.desktop
|
|
|
|
%{_datadir}/applications/lxsession-edit.desktop
|
|
|
|
%{_mandir}/man1/*.1.gz
|
2009-12-26 13:39:53 +01:00
|
|
|
|
|
|
|
%changelog
|