/
xfce4-session.spec
91 lines (77 loc) · 2.46 KB
/
xfce4-session.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define major 0
%define _disable_rebuild_configure 1
Summary: Xfce Session Manager
Name: xfce4-session
Version: 4.16.0
Release: 1
License: GPLv2+
Group: Graphical desktop/Xfce
URL: http://www.xfce.org
Source0: http://archive.xfce.org/src/xfce/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
Source2: xfce4.pam
BuildRequires: intltool
BuildRequires: xfce4-dev-tools
BuildRequires: perl(XML::Parser)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(systemd)
BuildRequires: iceauth
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(libxfce4ui-2)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfce4panel-2.0)
BuildRequires: pkgconfig(libwnck-3.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(polkit-gobject-1)
BuildConflicts: hal-devel
Requires: usermode-consoleonly
# (tpg) this satisfies xfce tips&tricks
#Suggests: fortune-mod
Requires: polkit-gnome
Requires: mate-polkit
Requires(pre): distro-xfce-config-common
Requires(post): distro-xfce-config-common
Obsoletes: xfce-session < 4.5.91
%rename xfce-utils
%description
The session manager allows the user to save sessions and
restore them after login. It is capable of saving several
different sessions. It comes with three splash screen engines.
And at last it helps you to log out, reboot, and shutdown the system.
%prep
%setup -q
%autopatch -p1
%build
NOCONFIGURE=1
%configure \
--enable-legacy-sm \
--enable-systemd \
--disable-static
%make_build
%install
%make_install
# (tpg) this file is in mandriva-xfce-config package
rm -rf %{buildroot}%{_sysconfdir}/xdg/autostart/xfce4-tips-autostart.desktop
rm -rf %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
# pam
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/xfce4
%find_lang %{name} %{name}.lang
%files -f %{name}.lang
%doc AUTHORS BUGS ChangeLog NEWS README* TODO
%doc doc/FAQ doc/README.Kiosk
%{_sysconfdir}/pam.d/xfce4
%{_sysconfdir}/xdg/autostart/*.desktop
%{_sysconfdir}/xdg/xfce4/Xft.xrdb
%{_sysconfdir}/xdg/xfce4/xinitrc
%{_bindir}/*
%{_datadir}/polkit-1/actions/org.xfce.session.policy
%{_datadir}/applications/xfce*
%{_iconsdir}/hicolor/*/*/*.{png,svg}
%{_libdir}/xfce4/session/xfsm-shutdown-helper
%{_datadir}/xsessions/xfce.desktop
%{_mandir}/man1/*