1
0
forked from pool/xfce4-session
xfce4-session/xfce4-session.spec

163 lines
5.2 KiB
RPMSpec

#
# spec file for package xfce4-session
#
# Copyright (c) 2011 SUSE LINUX Products 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: xfce4-session
Version: 4.8.1
Release: 11
License: GPLv2+
Summary: Xfce Session manager
Url: http://www.xfce.org/projects/xfce4-session/
Group: System/GUI/XFCE
Source: %{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE xfce4-session-simple-splash-remove-shadows.patch gber@opensuse.org -- Improves readability of the simple splash engine text by removing the text shadows
Patch1: xfce4-session-simple-splash-remove-shadows.patch
# PATCH-FIX-UPSTREAM xfce4-session-4.8.1-fix-gdm_lang-usage.patch bnc#694203 bxo#7400 gber@opensuse.org -- Fixes GDM_LANG usage to be compatible with GDM3 (backported from upstream git)
Patch2: xfce4-session-4.8.1-fix-gdm_lang-usage.patch
BuildRequires: intltool
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(libwnck-1.0)
BuildRequires: pkgconfig(libxfce4ui-1)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfce4panel-1.0)
BuildRequires: pkgconfig(libxfcegui4-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: update-desktop-files
BuildRequires: xorg-x11
BuildRequires: libxslt
BuildRequires: xml2po
BuildRequires: docbook_4
BuildRequires: docbook-xsl-stylesheets
Requires: %{name}-branding >= %{version}
Requires: xfce-utils
Recommends: fortune
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
xfce4-session is the session manager for the Xfce desktop environment.
%package devel
License: GPLv2+
Summary: Development files for xfce4-session
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: pkgconfig(dbus-glib-1)
Requires: pkgconfig(libwnck-1.0)
Requires: pkgconfig(libxfce4ui-1)
Requires: pkgconfig(libxfce4util-1.0)
Requires: pkgconfig(libxfcegui4-1.0)
Requires: pkgconfig(libxfconf-0)
%description devel
xfce4-session is the session manager for the Xfce desktop environment.
This package contains development files needed to develop custom splash themes.
%package branding-upstream
License: GPLv2+
Summary: Upstream branding of xfce4-session
Supplements: packageand(%{name}:branding-upstream)
Provides: %{name}-branding = %{version}
Conflicts: otherproviders(%{name}-branding)
# BRAND: xfce4-session.xml: Control session parameters such as the tools and
# BRAND: applications started by default or the splash theme.
# BRAND: xfce4-tips-autostart.desktop: Control whether xfce4-tips is started
# BRAND: by default.
BuildArch: noarch
%description branding-upstream
This package provides the upstream look and feel for the Xfce Session Manager.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
%configure \
--docdir=%{_defaultdocdir}/%{name} \
--disable-static \
--enable-session-screenshots \
--enable-gnome \
--enable-libgnome-keyring \
--enable-gen-doc
make %{?_smp_mflags} V=1
%install
%make_install
%suse_update_desktop_file xfce-session-settings
%suse_update_desktop_file xfce4-session-logout
%suse_update_desktop_file xfce4-tips-autostart
install -p -m 644 AUTHORS BUGS COPYING ChangeLog NEWS README TODO \
%{buildroot}/%{_defaultdocdir}/%{name}
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/xfce4/session/splash-engines/*.la
%clean
rm -rf %{buildroot}
%post
%run_suseconfig -m gtk2
/sbin/ldconfig
%if 0%{?suse_version} >= 1140
%desktop_database_post
%icon_theme_cache_post
%endif
%postun
/sbin/ldconfig
%if 0%{?suse_version} >= 1140
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %{name}.lang
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%{_bindir}/xfce4-session
%{_bindir}/xfce4-session-logout
%{_bindir}/xfce4-session-settings
%{_bindir}/xfce4-tips
%{_libdir}/xfce4
%{_libdir}/*.so.*
%{_mandir}/*/*
%{_datadir}/themes/*
%{_datadir}/applications/*
%{_datadir}/icons/*/*
%{_datadir}/xfce4/
%files devel
%defattr(-,root,root)
%{_includedir}/xfce4/*/
%{_libdir}/pkgconfig/*
%{_libdir}/*.so
%files branding-upstream
%defattr(-,root,root)
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
%config %{_sysconfdir}/xdg/autostart/xfce4-tips-autostart.desktop
%changelog